Reputation: 41
How can I receive traps using C or C++ and net-snmp module. I need sample code but the examples at http://www.net-snmp.org/ use syscalls but not API methods.
Upvotes: 3
Views: 7250
Reputation: 4970
The net-snmp site does have comprehensive coding tutorials.
Look at http://www.net-snmp.org/wiki/index.php/Tutorials#Coding_Tutorials
EDIT: Also see source code for snmptrapd as a guide for how to receive traps.
Upvotes: 0