Is network byte order pointless under IPv6?
问题 If we use a 32-bit integer to store an IPv4 address, then the byte order of the integer must be considered. However, as there is no built-in 128-bit integer type under almost all platforms, an IPv6 address must be stored into a byte array, so, I think the byte order is no longer a problem. Am I correct? Or is there a corresponding function htonlXXX for IPv6? 回答1: IPv6 does require network byte order for ipv6 addresses. hton and ntoh are all about converting the address from how you have it