[Libevent-users] a question of evbuffer_pullup

2012-08-23 Thread simon zhang
I don't understand “must first ensure that the front of the buffer really is contiguous”. I can get 100 bytes from evbuffer by evbuffer_pullup() or evbuffer_remove(). evbuffer_pullup():get some contiguous data. evbuffer_remove():get some discontinuous data??? Some discontinuous data??Why we need

[Libevent-users] Can the pipe be used in event_new function as file descriptor(evutil_socket_t) in windows?

2013-01-09 Thread simon zhang
I wanted some linux code work in the windows.This is a multi thread program.I hope that the parent thread and child thread to pass data through the pipe. But no file descriptor in windows.The CreatePipe function can creat a pipe with read HANDLE and write HANDLE.But libevent don't konw HANDLE.I can

Re: [Libevent-users] some static compiled error in mingw+msys

2013-01-11 Thread simon zhang
Thank you.It was compiled successfully. 2013/1/12 Dodd, Timothy > Looks like you need to link against the winsock library (Ws2_32.lib). > > tim > > From: simon zhang > Reply-To: "libevent-us...@freehaven.net" > Date: Friday, January 11, 2013 2:28 PM >

[Libevent-users] some error about evsig_init in winxp.

2013-01-14 Thread simon zhang
I compile the code as DLL in winxp with libevent.The compiler is msvc90.But It have some error as the following: evsig_init:socketpair:Successful WSAStartup not yet performed [WSANOTINITIALISED] How to make it work correctly? I have tried to compile in mingw and have the same error. The dll is a

Re: [Libevent-users] some error about evsig_init in winxp.

2013-01-14 Thread simon zhang
n runtime winsock errors here: > http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx > . > > Hope this helps, > Tim > > From: simon zhang > Reply-To: "libevent-us...@freehaven.net" > Date: Monday, January 14, 2013 12:48 PM > To: &