The following is a list of network-related calls:
The getnetbyname() call takes a network name and returns a netent structure, which contains the name of the network, aliases, network address family, and network number. The netent structure is defined in the <NETDB.H> header file. The getnetbyaddr() call maps the network number into a netent structure.
The database for these calls is provided by the ETC\NETWORKS file.
The setnetent(), getnetent(), and endnetent() calls open, provide sequential access to, and close the ETC\NETWORKS file.