[AGENT++] How to map callback_data
Jochen Katz
katz at agentpp.com
Wed Oct 20 22:23:33 CEST 2010
Hi,
> I am using the asynchronous calls for requests and responses.
> Do you have any idea how to use the callback_data to map the response to
> our request programatically.
as callback_data is a void pointer, you can pass in anything. Just pass
the information that is needed to find your request.
If your requests are in an array you could use:
long index = 100;
status = snmp.get_next( pdu, *target, callback,(void*)index);
In the callback:
long index = (long)callback_data;
Regards,
Jochen
More information about the AGENTPP
mailing list