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

2013-01-13 Thread Yutong Wu
use getsocketopt to get socket error no or use tcpdump to check what happened 2013/1/13 > What I need : a libevent client which tries to reconnect periodically > after loosing connection with the server. > > To solve this problem I add evtimer that becomes active once the > connection with the s

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

2013-01-09 Thread Yutong Wu
for performance, use eventfd instead on linux, refer to memcached 2013/1/10 Yutong Wu > sorry, I misread, you can create two socket to simulate socket pair on > windows, for performance, use eventfd instead > > > 2013/1/10 Nick Mathewson > >> On Wed, Jan 9, 2013 at 2:0

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

2013-01-09 Thread Yutong Wu
sorry, I misread, you can create two socket to simulate socket pair on windows, for performance, use eventfd instead 2013/1/10 Nick Mathewson > On Wed, Jan 9, 2013 at 2:09 PM, simon zhang wrote: > > I wanted some linux code work in the windows.This is a multi thread > > program.I hope that the