Using async sends
"Mathew Bielejeski" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I am trying to set up an asynchronous send with a callback in my code but it
doesn't seem to be working. My debugger never hits the breakpoint in my
callback function.
Here is what I have
int testCallback(int operator, struct snmp_session * session, int reqid,
struct snmp_pdu * pdu, void * data);
{
Return 1;
}
In my code I have
Int retval = snmp_sess_async_send(currSession, pdu, testCallback, 0);
Is there something I need to do first in order for callbacks to work?
If I change the code to use a synchronous send (snmp_sess_synch_response)
everything works correctly.
Mathew Bielejeski
http://www.neon.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users