Thanks for the response Niels! I was actually missing that entire loop as I 
thought it wasn't necessary for my case. I added in the loop as shown in the 
async example and now everything works! Would you happen to know the best way 
to get the value of the response?

Right now I am using print_variable to see the results.

Ex.
Say I get the system description:
SNMPv2-MIB::sysDescr.0 = STRING: Linux system.name kernel#...so on
How can I just retrieve what comes have STRING: and store it off in I a string?


Thanks!
Corey

-----Original Message-----
From: Niels Baggesen [mailto:n...@users.sourceforge.net]
Sent: Tuesday, March 18, 2014 5:40 PM
To: Pentasuglia, Corey; net-snmp-coders@lists.sourceforge.net
Subject: Re: Problems with async

Den 17-03-2014 12:54, Pentasuglia, Corey skrev:
> Is there anything I'm missing here? This app is in c++, so the
> callback is the only method that is declared with extern "C". If this
> is incorrect please let me know. I am not setting the void*, because I
> don't need to send any data to the callback. As a starting point I
> have a debug point on the callback method that doesn't get hit. The
> snmp_async_send does not show any errors being sent.

What is there looks OK, but I am missing the select loop that detects that 
responses have been received and calls snmp_read to handle them?

Have you checked with tcpdump/wireshark that the packets are flowing?

/Niels

--
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming
This message is intended only for the addressee and may contain information 
that is company confidential or privileged. Any technical data in this message 
may be exported only in accordance with the U.S. International Traffic in Arms 
Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 
CFR Parts 730-774). Unauthorized use is strictly prohibited and may be 
unlawful. If you are not the intended recipient, or the person responsible for 
delivering to the intended recipient, you should not read, copy, disclose or 
otherwise use this message. If you have received this email in error, please 
delete it, and advise the sender immediately.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to