Richard,
Ask yourself why you use libevent :)
If I understand you correctly (which I quite possibly don't) you
propose
something like this:
for(;;) {
accept_new_connections(); /* Doesn't block */
event_loop(EVLOOP_NONBLOCK);
}
But this negates the point of libevent since you're now polling for
events in a loop (very inefficient). Instead, just let libevent
tell you
when something of interest (such as write readiness or incoming
connections)
happens.
Yeah -- right after I sent the reply, I thought of that ... I should
put the listening socket on the event queue along with all of the
other sockets to the clients :-) It was late, and I was tired :-)
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users