Passing data into callbacks

Graham Leggett minfrin at sharp.fm
Thu Nov 6 12:14:07 CET 2008


Graham Leggett wrote:

> I have a callback that gets called when a socket becomes ready to be 
> accepted, and so far that works fine.
> 
> In order to properly accept the socket and set up various parameters, I 
> have to pass additional information about the socket to the callback, 
> and I am struggling to see a way to do this without using a global 
> variable.
> 
> Am I missing something?

Rather than reading ev.h, I should have been reading 
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod.

Sorry for the noise.

Regards,
Graham
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3287 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20081106/e1507c08/attachment.bin>


More information about the libev mailing list