[iolib-devel] socket-of?

Matthew Mondor mm_lists at pulsar-zone.net
Tue Jan 27 21:45:06 UTC 2009


I've been trying to use the multiplexer and am ambiguous as to two
things:

event-base appears to be a class which the user must instanciate.  I
assume that this is to allow extending the class to allow using user
data like kqueue does via the udata to have those passed around to event
handlers?  If so, it's interesting that the event handler functions do
not get this object passed along, and that a custom lambda function
should pass it to another level of custom handler functions.

The event handler functions are provided an fd rather than a socket.
Is there an easy provided way to obtain the associated socket from an
fd, or must a custom index or hash table be used for this?

Thanks,
-- 
Matt




More information about the iolib-devel mailing list