[Libevent-users] A different "cb_arg" for each client

Ycrux ycrux at club-internet.fr
Sun Mar 9 11:28:46 EDT 2008


Hi guys !

I'd like to have a different "cb_arg" argument
returned by the registered evhttp callback "cb" for
each client in:

void(* *cb* )(struct evhttp_request 
<http://monkey.org/%7Eprovos/libevent/doxygen/structevhttp__request.html> 
*, void * cb_arg)

For this purpose, is it possible to call "evhttp_set_gencb"
one time for each connected client?

What's the bestion solution for that please?
Any advice will be very welcome.

Thanks in advance,

cheers
Y.



More information about the Libevent-users mailing list