Internet Address Manipulation
The following calls convert internet addresses and decimal notation, and
manipulate the network number and local network address portions of an internet
address:
inet_addr()
Translates dotted-decimal notation to
a 32-bit internet address (network-byte order).
inet_network()
Translates dotted-decimal notation to a network
number (host-byte order), and zeros in the host part.
inet_ntoa()
Translates 32-bit internet address (network-byte
order) to dotted-decimal notation.
inet_netof()
Extracts network number (host-byte order) from 32-bit
internet address (network-byte order).
inet_lnaof()
Extracts local network address (host-byte order)
from 32-bit internet address (network-byte order).
inet_makeaddr()
Constructs internet address (network-byte order)
from network number and local network address.
[Back: Network-Byte Order Translation]
[Next: Domain Name Resolution]