Passing data into callbacks

Graham Leggett minfrin at
Thu Nov 6 12:06:53 CET 2008

Hi all,

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?

-------------- 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: <>

More information about the libev mailing list