2009/6/25 Viveka Nathan K <[email protected]>: > I would like to know, similar to register a callback function for trap in > Perl, On receiving trap, can I do any registration in C++ application ?
The 'snmptrapd' receiver uses a handler mechanism for processing incoming traps. You can use "netsnmp_add_global_traphandler" to register a routine to be called for all incoming traps, or "netsnmp_add_traphandler" for a routine to be called for a specific trap OID. See the code files 'snmptrapd.c' and 'snmptrapd_handlers.c' for details. Dave ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
