[Libevent-users] How to distinguish connect/write event on win32

2008-08-15 Thread liusifan
Hi, all I try to add nonblocking connect for libevent-iocp backend. Currently, when we use nonblocking connect with libevent, the source maybe like this: s = socket( ... ); setnonblock( s ); connect(s,(struct sockaddr *)dest_addr,(socklen_t)sizeof(dest_addr)); event_add( ... ); event_loop();

[Libevent-users] Integrate iocp backend with libevent-1.4.5-stable

2008-07-11 Thread liusifan
Hi, http://spserver.googlecode.com/files/libevent-1.4.5-stable-iocp-1.zip Integrate iocp backend with libevent-1.4.5-stable. The win32iocp source code is the same as libevent-main-iocp-1.zip Changes since libevent-1.4.4-iocp-3.zip: 1.Remove EV_ACCEPT flag, use getsockopt(SO_ACCEPTCONN) to

Re: [Libevent-users] connected event missing on Solaris 10

2008-06-20 Thread liusifan
Hi, arthur Try this : /* * Disable event ports when this environment variable is set */ if (getenv(EVENT_NOEVPORT)) return (NULL); Best regards, liusifan 2008-06-21 My porxy is built with libevent v1.4.4-stable. After accepting client

Re: AW: [Libevent-users] win32 iocp patch for libevent main trunk

2008-06-16 Thread liusifan
Hi, Richter Thanks for your tips ! The way you mention works well. The full package: http://spserver.googlecode.com/files/libevent-main-iocp-1.zip Changes: 1.Remove EV_ACCEPT flag, use getsockopt(SO_ACCEPTCONN) to distinguish accept/read, so it's compatible with the old code now. 2.Using

Re: [Libevent-users] [WINDOWS] Libevent

2008-06-15 Thread liusifan
Hi, juanito Which version are you using? You can try this one: http://www.monkey.org/~provos/libevent-1.4.4-stable.tar.gz Best regards, Stephen Liu 2008-06-16 Hi, Anyone could give me some tips how to compile libevent with windows ? When openning WIN32-Prj\libevent.dsw, it says the

[Libevent-users] event-min_heap_idx may be not -1 after min_heap_pop

2008-06-12 Thread liusifan
0; } liusifan 2008-06-12 ___ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users

[Libevent-users] patch for building libevent with vs2008

2008-06-12 Thread liusifan
Hi, all Libevent svn main trunk cannot build with vs2008. The patch is in attachment. Changes: Rename INPUT to EVRPC_INPUT and OUTPUT to EVRPC_INPUT The following definition is conflict with system header. == libevent/evrpc.h enum

Re: [Libevent-users] Integrate Windows I/O Completion Port into Libevent

2008-06-03 Thread liusifan
Mostly test cases of regress.c are passed. These are some changes since the libevent-1.4.4-iocp.zip Please check the diff file as attachment. The following test cases are failure or cann't be compiled. I will pay more time to get these test cases to pass. test_bufferevent_watermarks(); fail,

Re: Re: [Libevent-users] A server framework library based on libeventthat implements the Half-Sync/

2007-05-10 Thread liusifan
, liusifan [EMAIL PROTECTED]   2007-05-10 ___ Libevent-users mailing list Libevent-users@monkey.org http://monkey.org/mailman/listinfo/libevent-users

Re: [Libevent-users] BUG report about evhttp_htmlescape() in evhttp(libevent-1.3b)

2007-05-10 Thread liusifan
Hi, Please look at the comment of the function: /* * Replaces , , , ' and with lt;, gt;, quot;, * #039; and amp; correspondingly. * * The returned string needs to be freed by the caller. */ char * evhttp_htmlescape(const char *html) liusifan

Re: Re: [Libevent-users] A server framework library based on

2007-05-10 Thread liusifan
of libevent: LIBEVENT_INCL = -Ipath_to_libevent_include LIBEVENT_LIB = -Lpath_to_libevent_library -levent best regard, liusifan [EMAIL PROTECTED]   2007-05-11 === 2007-05-11 00:59:56 您在来信中写道:=== Hi Liusifan! $ svn checkout

Re: Re: [Libevent-users] HTTP proxy based on evhttp layer?

2007-05-10 Thread liusifan
Hi,Elliot Niels announces here http://monkeymail.org/archives/libevent-users/2007-February/000547.html best regards, stephen === 2007-05-11 00:36:27 您在来信中写道:=== James Yonan wrote: I'd like to know if anyone has developed a simple HTTP proxy based on the evhttp layer? This would