Hi,
For the following data
#define GAP 10
snmp_alarm_register(GAP,SA_REPEAT,my_func,NULL)
Will the function my_func will be executed every 10 seconds or every one second?
The documentation is a bit confusing
* @param flags is an unsigned integer that specifies how frequent the callback
* function is called in seconds. Should be SA_REPEAT or 0. If
* flags is set with SA_REPEAT, then the registered callback function
* will be called every SA_REPEAT seconds. If flags is 0 then the
* function will only be called once and then removed from the
* registered alarm list.
The SA_REPEAT is predefined at the snmp_alarm.h fie, and as far as I understand
is not to be changed.
Isaac Eliassi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders