Re: [Libevent-users] Compiling libevent on Windows

2010-08-13 Thread Nick Mathewson
On Fri, Aug 13, 2010 at 3:59 AM, Gilad Benjamini wrote: > and one more to end the day... > event_struct.h has this code >   #ifndef TAILQ_ENTRY >   #define _EVENT_DEFINED_TQENTRY >   #define TAILQ_ENTRY(type)                                            \ >   struct {                                

Re: [Libevent-users] Ability to shutdown() socket with bufferevents?

2010-08-13 Thread Nick Mathewson
On Tue, Jul 27, 2010 at 2:42 PM, Corey Stup wrote: >> Right now there's no way to make a bufferevent call shutdown() itself, >> but what if you have a write handler on the client bufferevent just >> call shutdown() manually on the fd to send a FIN when the write buffer >> is empty?  You can get th

Re: [Libevent-users] deadlock in version 2.0.5

2010-08-13 Thread Nick Mathewson
On Thu, Aug 12, 2010 at 2:31 AM, Avi Bab wrote: > The scenario – Ick. I've added this one to the bugtracker as https://sourceforge.net/tracker/index.php?func=detail&aid=3044479&group_id=50884&atid=461322 ; further discussion there. >From what I can see now, there doesn't seem to be a better sol

Re: [Libevent-users] Compiling libevent on Windows

2010-08-13 Thread Nick Mathewson
On Fri, Aug 13, 2010 at 3:35 AM, Gilad Benjamini wrote: > I tried compiling libevent on Windows, using WinDDK. > I initially had some issues with Makefile.nmake, and then abandoned it in > favor of the simple "sources" file, used by the "build" utility. Hi, Gilad! FYI, it is *way way easier* for

Re: [Libevent-users] Include order in Makefile.nmake

2010-08-13 Thread Nick Mathewson
On Thu, Aug 12, 2010 at 3:18 PM, Gilad Benjamini wrote: > Makefile.nmake in the tarball has this line >    CFLAGS=/Iinclude /Icompat /IWIN32-Code /DWIN32 /DHAVE_CONFIG_H /EHsc /I. > > event-config.h exists in both include/event2 and WIN32-Code/event2 > > Therefore, the file is taken from the wrong

RE: [Libevent-users] Compiling libevent on Windows

2010-08-13 Thread Gilad Benjamini
and one more to end the day... event_struct.h has this code #ifndef TAILQ_ENTRY #define _EVENT_DEFINED_TQENTRY #define TAILQ_ENTRY(type)\ struct { \ struct type *tqe_next; /*

[Libevent-users] Compiling libevent on Windows

2010-08-13 Thread Gilad Benjamini
I tried compiling libevent on Windows, using WinDDK. I initially had some issues with Makefile.nmake, and then abandoned it in favor of the simple "sources" file, used by the "build" utility. There were then a few issues that prevent compilation on Windows. I'm presenting them as-is and not as a pa