I want to write a C program which receives snmptraps sent from another machine and parses them. I am able to do this from the command line, but have no idea on how to implement this in C.
I searched online and found most code was in ruby or the atleast C++ which had a traplistener class.
Is there any way to receive snmptraps from within a C program ?