use getaddrinfo() to get all the struct sockaddr info
getaddrinfo()
Change AF_INET to AF_INET6. Change PF_INET to PF_INET6.
AF_INET
AF_INET6
PF_INET
PF_INET6
Change INADDR_ANY assignments to in6addr_any assignments
INADDR_ANY
in6addr_any
Instead of inet_aton() or inet_addr(),use inet_pton()
inet_aton()
inet_addr()
inet_pton()
inet_ntoa(),use inet_ntop()
inet_ntoa()
inet_ntop()
etc...
Last updated 3 years ago
Was this helpful?