Re: Integrating AgentX into a C++ program with a Main Event Loop

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Sverre Moe <[email protected]> writes:

> I have a C++ program built around glibmm Main Event Loop and need to
> create an SNMP AgentX in it to be used along Net-SNMP own snmpd. I
> can't find any information how to integrate it other than the Tutorial
> "Instrumenting your own code with agentx subagent support" which I
> find a little shortcoming.

The right thing to do would be to get the sockets to watch out of
net-snmp (using snmp_select_info) and then pass those sockets to your
external event loop.

The other option is to do the inverse, and pass your other application
sockets into the net-snmp select routine instead.
-- 
Wes Hardaker
SPARTA, Inc.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.