We are using the single session api to communicate with SNMP agent.
Once we have the session open, can we change the timeouts "on the fly"?
struct snmp_session session, *sptr;
session.peername = ip;
session.community = (u_char*)community;
session.community_len = strlen(community);
session.version = SNMP_VERSION_2c;
session.retries = retries;
session.timeout = timeout;
sessp = snmp_sess_open(&session);
sptr = snmp_sess_session(sessp);
//sometime later
sptr->timeout = new_timeout1;
//sometime later
sptr->timeout = new_timeout2;
-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_idt02&alloc_id135&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders