Passing data into callbacks

Graham Leggett minfrin at
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

Sorry for the noise.

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