174 n Handbook of IPv4 to IPv6 Transition
::FFFF:<IPv4-address>
Applications may use AF_INET6 sockets by simply encoding the destination’s
IPv4 address as an IPv4-mapped IPv6 address and passing that address, within a
sockaddr_in6 structure, in the TCP connect() or UDP sendto() call.
9.3.3 Name-to-Address Translation Functions
e most common function for translating names to addresses in IPv4 is gethost-
byname(). It is still retained for backward compatibility but is inadequate for IPv6
because there is no way to specify anything about the types of addresses desired
(IPv4, IPv6, and so on).
e getaddrinfo() function, defined in [RFC3493], solves these problems.
e getaddrinfo function returns a linked list of addrinfo structures that con