If I get a structure with IPv6 addresses using the HOSTENT* gethostbyname(const char* name) function, how can I display them using the in6_addr structure?

  • one
    here the guy tells about it cplusplus.com/forum/beginner/86649/#msg464988 - perfect
  • @ zergon321, just wondering: why did SOCKADDR_IN6 instead of SOCKADDR_IN6 ? - isnullxbh
  • one
    @isnullxbh, a structure variable of type in6_addr is just a member of the sockaddr_in6 structure. I just first wanted to deal with the output of the address itself, and only then use sockaddr_in6 in the applications themselves. - zergon321

0