Yes, that's fine.  As long as its a different event type.

Niels.

On 3/31/06, Edward Chan <[EMAIL PROTECTED]> wrote:
>
>
> Is it ok to use 2 different struct event's for the same fd?  In other words,
> can I do something like this:
>
> event_set(&wevent, fd, EV_WRITE, onWriteNotify, arg);
> event_add(&wevent, 0);
> ...
> event_set(&revent, fd, EV_READ, onReadNotify, arg);
> event_add(&revent, 0);
> _______________________________________________
> Libevent-users mailing list
> Libevent-users@monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>
>
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to