On Sun, Mar 08, 2009 at 07:28:58PM -0400, Nick Mathewson wrote:
> On Sat, Mar 07, 2009 at 01:45:21PM -0500, Thor Lancelot Simon wrote:
>  [...]
> > I see two ways to handle this.  One is with very, very nasty application
> > logic, and the other is to simply set two separate events with the SSL
> > fd, each waiting on EV_WRITE.  So when the SSL fd comes ready for write --
> > I'd hope -- both my pending SSL_read() and my pending SSL_write() would
> > be invoked, each from a separate event's callback.
> 
> The first way is what you have to do with Libevent 1.4.x and earlier;
> Libevent only supports one _pending_ event at a time per fd/operation
> pair.  In other words, it's okay to have two events set to watch
> EV_WRITE on the same FD, but you can only ever add one at a time.

Just to clarify: I can add two events, one for EV_READ and one for
EV_WRITE, on the same FD, with different callbacks, and that _will_
work as expected?

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

Reply via email to