how to explicitly specify a snnp port number other than 161?
"xiao ren" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, All
If there is an agent, it's listening port number is not 161, say 1161. How to specify this in its manager's source code? May I use it as:
netsnmp_session session;
session.peername = strdup("192.168.1.2:1161");
.......
I check snmp_api.h and found that there is a "remote_port" member in snmp_session struct, but it was outdated.
--------------
xiao ren
2008-08-30
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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