Click to See Complete Forum and Search --> : how to get in6_addr structure from string containing ipv6 address?


SlackDeb
February 11th, 2010, 03:42 PM
Hi,
I have Windows xp and Visual C++ 6.0 with sdk.
i have ipv6 address as like "fe80::20f:eaff:fe5d:25b0"


How to get in6_addr structure for the above ip address ?.

Thanks in Advance

i know for ipv4, we have "inet_addr" Function

The inet_addr function converts a string containing an IPv4 dotted-decimal address into a proper address for the IN_ADDR structure.

Is there any API for ipv6?.:thumb:

Richard.J
February 12th, 2010, 04:26 AM
I think inet_pton is what you are looking for.