CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    20

    Thumbs up 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?.

  2. #2
    Join Date
    May 2001
    Location
    Germany
    Posts
    1,158

    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
  •  





Click Here to Expand Forum to Full Width

Featured