Hello

I am new to snmp, and I have a quetion about trying to communicate  with
different timeouts.

Is there any way to implement it with one session? or
Do I need to create 3 different sessions ?

What I want to do is to get response in 100mSec for first try, in 200mSec
for Second try, and in 500mSec for third try.
If I get correct response from first try, then do not try 2nd and 3rd try.

--  Souce code sample
 --   init_snmp("snmpdemoapp");
  --  /*
 --    * Initialize a "session" that defines who we're going to talk to
 --    */
 --   snmp_sess_init( &session );                   /* set up defaults */
 --   session.peername = strdup("test.net-snmp.org");
 --   session.timeout = 1000     //    only one timeout ???
 --   session.retries = 3
Thank you in advance,
Brandon
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to