Set a timeout for SNMPProcessEvents

Jonathan Black jblack____ridgewaysystems.com
Fri Jan 24 10:40:35 CET 2003


You could consider using Agentpp::Snmpx::get_session_fds() to retrieve the
file descriptor of the SNMP port & then use select() with a timeout to
perform the wait. This will trigger when a read event occurs on the fd, and
you can use Agentpp::RequestList::receive() to perform the read, and
Agentpp::Mib::process_request() to process it.

Jon Black 
Principal Software Engineer 
Ridgeway Systems & Software
http:\\www.ridgewaysystems.com
 



-----Original Message-----
From: Thomas Scheuermann [mailto:ths____barco.com] 
Sent: 23 January 2003 13:37
To: agentpp-dl____agentpp.com
Subject: Set a timeout for SNMPProcessEvents


Hello,

how can I set a timeout that SNMPProcessEvents doesn't block infinite ? I
want to wait for an event, but if the event doesn't come, SNMPProcessEvents
blocks. If I call SNMPGetNextTimeout right before SNMPProcessEvents I get
-1, which means wait infinite.

How can I change this ?

regards,

Thomas
-- 
Thomas Scheuermann
Software Design Engineer
Barco Control Rooms
D - 76229 Karlsruhe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20030124/5ce67b82/attachment.htm 


More information about the AGENTPP mailing list