I see on the other thread:
"Note that it's this 'snmp_sess_transport' API works with
the opaque (session_list) pointer - *NOT* the "netsnmp_session"
pointer returned by 'snmp_open()'.
So you probably want something like:
netsnmp_session *sess = snmp_open(...);
netsnmp_transport *t = snmp_sess_transport(
snmp_sess_pointer( sess ));
int sock = t->socket;
"
the code as above is really using snmp_open() instead of snmp_sess_open(), I
am confused.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders