To get  a data using IPv4,

we just set dotted ip address to 'peername' field like below.


session.peername = "xx.xx.xx.xx"


Detailed example is net-snmp site.

http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application<To%20get%20a%20data%20using%20IPv4,%20we%20just%20set%20dotted%20ip%20address%20to%20'peername'%20field%20like%20below.%20session.peername%20=%20%22xx.xx.xx.xx%22%20Detailed%20example%20is%20net-snmp%20site.%20http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application>


If I want to use IPv6 address (xx:xx:xx:xx:xx:xx:xx:xx) , how do i set IPv6
address.


'peername' is only for domain or dotted IP address(IPv4). So if i set IPv6
address to 'peername',   Unknown host  error is happened.


Please tell me how to i get a data using IPv6.


Thank you for reading.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to