TCP/IP Programming Manual

Table 13 Support Routines (continued)
FunctionsRoutine Name
Gets the name of the host that has a specified Internet address and
provides an error-number value to maintain a thread-safe
environment. (Supported by NonStop TCP/IP only.)
getipnodebyaddr (page 114)
Provides lookups for IPv4/IPv6 hosts. (Supported by NonStop
TCP/IPv6 only.)
getipnodebyname (page 116)
Translates a protocol-independent host address to a hostname and
gives the service name. (Supported by NonStop TCP/IPv6 only.)
getnameinfo (page 117)
Gets the name of the network with the specified network address.getnetbyaddr (page 119)
Gets the Internet address of the network with the specified namegetnetbyname (page 120)
Gets the protocol with the specified namegetprotobyname (page 122)
Gets the protocol with the specified protocol numbergetprotobynumber (page 123)
Gets the service port number for a given service namegetservbyname (page 124)
Gets the service name for a given port numbergetservbyport (page 125)
Frees dynamic memory allocated by the if_nameindex function.
(Supported by NonStop TCP/IPv6 only.)
if_freenameindex (page 130)
Maps an interface index to its corresponding name. (Supported by
NonStop TCP/IPv6 only.)
if_indextoname (page 131)
Gets all interface names and indexes. (Supported by NonStop
TCP/IPv6 only.)
if_nameindex (page 132)
Maps an interface name to its corresponding index. (Supported by
NonStop TCP/IP only.)
if_nametoindex (page 133)
Converts an Internet address from dotted-decimal format to binary
format
inet_addr (page 134)
Breaks apart an Internet address and returns the local address portioninet_lnaof (page 135)
Combines a network address and a local address to create an
Internet address
inet_makeaddr (page 135)
Breaks apart an Internet address and returns the network address
portion
inet_netof (page 136)
Converts an Internet address from dotted-decimal format to binary
format and returns the network address portion
inet_network (page 136)
Converts an Internet address from binary format to dotted-decimal
format
inet_ntoa (page 137)
Converts a binary IPv6 or IPv4 address to a character string.
(Supported by Parallel Library TCP/IP only.)
inet_ntop (page 138)
Converts a character string to a binary IPv6 or IPv4 address.
(Supported by NonStop TCP/IPv6 only.)
inet_pton (page 139)
Frees the memory of one or more addrinfo structures previously
created by the lwres_getaddrinfo function. (Supported by
NonStop TCP/IP only.)
lwres_freeaddrinfo (page 140)
Frees the memory of one or more hostent structures returned by
the lwres_getipnodebyaddr or lwres_getipnodebyname functions.
(Supported for NonStop TCP/IPv6 only.)
lwres_freehostent (page 141)
Aids applications in printing error messages based on the EAI_ codes
returned by the lwres_getaddrinfo function. (Supported for NonStop
TCP/IPv6 only.)
lwres_gai_strerror (page 141)
84 Library Routines