[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 Nick Mathewson
On Mon, Jan 14, 2013 at 9:48 AM, simon zhang wrote: > 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] On windows, you need to invoke WSAStartu

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

2013-01-14 Thread Dodd, Timothy
That is a runtime error, right? You need to initialize windsock before using it. See, for example: http://msdn.microsoft.com/en-us/library/windows/desktop/ms738566(v=vs.85).aspx. There's documentation on runtime winsock errors here: http://msdn.microsoft.com/en-us/library/windows/desktop/m

ReĀ : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread ssod
It serms that this is not the way it should be done. The whole buffer event should be removed and created again, until the server starts to respond. Unfortunately this method causes a segmentation fault. I had no idea of how such a simple problem can be solved with libevent. I couldn't be able t

Re: Re : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread Nick Mathewson
On Mon, Jan 14, 2013 at 5:52 PM, wrote: > It serms that this is not the way it should be done. The whole buffer event > should be removed and created again, until the server starts to respond. > Unfortunately this method causes a segmentation fault. I had no idea of how > such a simple problem

Re: Re : [Libevent-users] libevent client tries to reconnect to a lost server

2013-01-14 Thread Sashan Govender
On Tue, Jan 15, 2013 at 9:52 AM, wrote: > It serms that this is not the way it should be done. The whole buffer > event should be removed and created again, until the server starts to > respond. Unfortunately this method causes a segmentation fault. I had no > idea of how such a simple problem ca

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

2013-01-14 Thread simon zhang
Thank you.I have make it work in winxp. 2013/1/15 Dodd, Timothy > That is a runtime error, right? You need to initialize windsock before > using it. See, for example: > http://msdn.microsoft.com/en-us/library/windows/desktop/ms738566(v=vs.85).aspx. > There's documentation on runtime winsock e