Ed Fair <quackspasm@....>
writes:

> I'm trying to understand the extended session API, as documented in 
> snmp_api.h.  These
> three functions require an netsnmp_transport_s*.   How can I initialize this 
> structure?


You can get the transport from your session handle using snmp_sess_transport(). 
 For
example (untested and no error checking):

struct snmp_session session_str;
void *sess_hdl = NULL;
netsnmp_transport *transport;


snmp_sess_init(&session_str);
sess_hdl = snmp_sess_open(&session_str);

transport = snmp_sess_transport(sess_hdl);



-Drew



_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to