Re: about a multi-ev_loop server

2012-07-16 Thread Marc Lehmann
On Mon, Jul 16, 2012 at 08:48:01AM +0800, debuguo waterawo...@gmail.com wrote: In accept ev_loop I put a pair of ev_io and ev_timer to monitor the file descriptor returned from socket, once the ev_io get EV_READ event, the server accept the connect and get the file descriptor, then dispatch it

about a multi-ev_loop server

2012-07-15 Thread debuguo
Hello everyone, I am working at a multi-ev_loop network program based on libev. The server has several ev_loops, one is for accept the connect from the client, the others for recv and send data with the client. For example, I create 4 ev_loop, one ev_loop for accept, the other 3 ev_loop for