I figured out what my problem was; I was misreading the example code in asyncapp.c
---------------------------------------------------------------------- Message: 1 Date: Fri, 29 Sep 2006 16:34:36 -0700 From: "Mathew Bielejeski" <[EMAIL PROTECTED]> Subject: Using async sends To: <net-snmp-users@lists.sourceforge.net> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users