Re: where is the "send" code?

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 06/11/2007, HongGuo Liu <[email protected]> wrote:
>  I can't find the code which establish the socket.

In general, this tends to be handled by a call to 'snmp_open'.
In the case of the Net-SNMP agent, it's actually done at a
slightly lower level.

Have a look at the routine snmp_agent.c:init_master_agent()
Towards the end, there's a loop containing a call
   transport = netsnmp_transport_open_server("snmp", cptr);

That's the bit that actually establishes the socket to listen on.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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.