Decreasing the wait in RequestList::receive
Frank Fock
Frank.Fock____t-online.de
Thu Jan 25 19:14:36 CET 2001
Hi Gary,
You can even use a value of 0 (no waiting) as parameter for the
receive method. You would then have to check the SNMP port
for incoming messages by any other means.
When you modify (update) the values of your Mib before
calling process_request AND multi-threading is enabled, then
make sure that you lock (and unlock) the Mib instance by
mib->lock_mib();
and then lock each instance you want to update by
MibEntry->start_synch();
// update
MibEntry->end_synch();
...
Mib->unlock_mib();
Best regards,
Frank
"Simpson, Gary" wrote:
> I was wandering if I can pass in a value of 3 seconds or so into
> RequestList::receive, instead of 120 seconds, so that I can call another
> method in the main loop to look for trap requests. Is it important what
> this value is set to and does it matter if it is set to such a low value?
>
--
Frank Fock - AGENT++
Email: fock____agentpp.com
Fax: +49 7195 177108
More information about the AGENTPP
mailing list