-
February 11th, 2010, 04:42 PM
#1
how to get in6_addr structure from string containing ipv6 address?
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?.
-
February 12th, 2010, 05:26 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|