On 22 January 2013 10:23, Geet Bhatia <geetbhati...@gmail.com> wrote:
> I am trying to build a simple C trap receiver.

Is there any reason why you don't wish to use the standard 'snmptrapd'
application?


> Here I am calling function netsnmp_transport_open_server with application
> name and udp:162 as parameters. But this function is returning NULL every
> time.

Who are you running the application as?  Root, or an unprivileged user?
Is there another application already listening on this socket?
What happens if you specify a different port to listen on?

Does anything get logged?
Try setting the debug flag 'tdomain' - what gets logged then?

Dave

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to