Arkadiusz et al,
It can be replaced only with
evtimer_add(); // fire every 1 second to do the same as
find_out_if_there_is_something
in_internal_buffers_to_be_written_to_sockets
() as in previous example; then event_add(EV_WRITE); fi
event_add(EV_READ on listening sockets)
event_dispatch()
unfortunately I have to fire evtimer() thing to add EV_WRITE
events. Doesn't
sound good but I see no other way without bigger code refactoring.
I've also had issues with high CPU usage over a select-based
algorithm (on Gentoo Linux using epoll() as well as Mac OSX using
kqueue()), though i'm not sure if it's due to libevent or just my
code. The thing about 1-second timers is that I want to use libevent
to write a video server, so if there is space on a socket to send
bytes, I want to send them immediately rather than wait until the
timer expires.
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