[AGENT++] Async processing

Jochen Katz katz at agentpp.com
Sun Jan 23 21:39:30 CET 2005


Hi,

> Can someone please tell me how to know if there has been any
> events as a result of calling SNMPProcessPendingEvents() ?
> (ie without tracking something myself in the callback function)

there currently is no way to get this information. And with the current 
event list it would be complicated to add this feature...

> And then again while stepping into the code, i think i noticed a
> Sleep being called in win32 implementation. Why is a Sleep required
> in an Async setup ?

It's there to have the same "delay" for WIN32 and other systems. If you 
do "while (true) SNMPProcessPendingEvents();" on Unix you will get a CPU 
usage of 0%. For WIN32 without the sleep you will get 100%.

Regards,
   Jochen




More information about the AGENTPP mailing list