I didn't know of libevent.
The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also support callbacks due to signals or regular timeouts.
It seems useful to make portable programs that watch file descriptors. TODO: Try it.
Last update: 2010-01-22 (Rev 16621)

