I have this piece of code that does snmp_send and expects to get
response asynchorously.
req = snmp_pdu_create(SNMP_MSG_GETBULK);
if(req) {
snmp_add_null_var(req, someoid, someoid_len);
if (!snmp_send(sess, req)) : failed sending the request " << endl;
snmp_perror("snmp_send");
snmp_free_pdu(req);
}
}
I failed on snmp_send but if I change to:
req = snmp_pdu_create(SNMP_MSG_GET);
It runs okay. I suspect snmp_send will handle SNMP_MSG_BULKGET just as
it handles with SNM_MSG_GET, right? What did I miss?
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders