Set a timeout for SNMPProcessEvents

Kevin J. Schmidt kschmidt____mindspring.com
Sun Jan 26 00:04:01 CET 2003


I had the same question a while back. I use SNMPProcessPendingEvents().
It does not block. I also suggest using nanosleep() to sleep for a half
a second or so, too.

On Thu, 2003-01-23 at 08:37, Thomas Scheuermann wrote:
> 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





More information about the AGENTPP mailing list