Hi,
I have a problem of how to update the Object data of a Class from within a Callback function that is not a member function of that Class, its just a C function.
void CallBack( int reason, Snmp *snmp, Pdu &pdu, SnmpTarget &target, void *cd) // just a C function not a member function
{
// can i update the contents of the Object
// or the flow be passed to one of the member functions
}
Class A {
private:
/* data members */
public:
void example ( );
void example1 ( );
}
void A::example ()
{
/******
status = snmp.notify_register(oidc, targetc, CallBack, NULL);
}
In the above dummy coding very similar to my actuall requirement i call back function "CallBack" is called by snmp.notify_register.
Can i update the private data members of the Class or can i sent the control back to one of the member functions of that Class with the all the data members updated.
Thanks in Advance
Regards
SAK