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?
@ 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
SOCKADDR_IN6instead ofSOCKADDR_IN6? - isnullxbhin6_addris just a member of thesockaddr_in6structure. I just first wanted to deal with the output of the address itself, and only then usesockaddr_in6in the applications themselves. - zergon321