Dear List,

   I have a situation where multiple file descriptors are monitored by
libevent, and an event on one of the descriptors leads to a change of
flags for the other.

I have one incoming connection and one outgoing connction; the
incoming is flagged EV_READ and the outgoing lays dormant without
flags (because I still want it monitored for the other guy closing the
connection).

In the callback for the incoming connection, I want to read data, then
change the flags for the outgoing connection to EV_WRITE.

Do I have to remove the outgoing connection using event_del, then use
event_set to create a proper struct event, then re-add it with
event_add?

Or does libevent only hold a reference to my struct event structure so
that I can change the flags on the struct and they get used auto-
matically? (In that case, what about changing the timeout, as it is
not part of struct event?)

Thank you,
Frederik

-- 
Frederik Ramm  ##  eMail [EMAIL PROTECTED]  ##  N49°00.09' E008°23.33'

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to