The doxygen for event_set has the following text:

"The events can be either EV_READ, EV_WRITE, or both. Indicating that an application can read or write from the file descriptor respectively without blocking.

"The function fn will be called with the file descriptor that triggered the event and the type of event which will be either EV_TIMEOUT, EV_SIGNAL, EV_READ, or EV_WRITE. The additional flag EV_PERSIST makes an event_add() persistent until event_del() has been called."

I believe it should read

"The events can be any combination of EV_READ, EV_WRITE, and EV_SIGNAL, to indicate that an application can read or write from the file descriptor, or that the file descriptor (interpreted as a signal) has been caught. The additional flag EV_PERSIST makes an event_add() persistent until event_del() has been called.

"The function fn will be called with the file descriptor that triggered the event and the type of event which will be either EV_TIMEOUT, EV_SIGNAL, EV_READ, or EV_WRITE."

I'm still digging around in here, if I find much more to add I'll probably submit a documentation patch.
--
 Matthew Weigel
 hacker
 unique & idempot . ent
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to