ch4
use
getaddrinfo()to get all the struct sockaddr infoChange
AF_INETtoAF_INET6. ChangePF_INETtoPF_INET6.Change
INADDR_ANYassignments toin6addr_anyassignmentsInstead of
inet_aton()orinet_addr(),useinet_pton()inet_ntoa(),useinet_ntop()etc...
Last updated
Was this helpful?