Author: Kazu Yamamoto Created: 26 Dec 2003 Modified: 14 Jan 2004 Keyword: IPv4, IPv6, socket API, UNIX, gethostbyname(), getaddrinfo() Introduction Since IPv6 is now supported in many UNIX(-like) operating systems, including MacOS/Linux/BSD variants, you may want to modify your IPv4-only program to support both IPv4 and IPv6. You can easily find new socket API defined in RFC3493, "Basic Soc