February 11th, 2010, 04:42 PM
how to get in6_addr structure from string containing ipv6 address?
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?.
February 12th, 2010, 05:26 AM
Re: how to get in6_addr structure from string containing ipv6 address?
I think inet_pton is what you are looking for.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!