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

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

2013-01-13 Thread ssod
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 server is lost. The evtimer callback calls bufferevent_socket_connect(), but this function returns

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

2013-01-13 Thread ssod
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 server is lost. The evtimer callback calls bufferevent_socket_connect(), but this function returns