RE: Using async sends

"Mathew Bielejeski" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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: <[email protected]>
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.