The following table lists the
network functions and the Berkeley Resolver routines
supported by the sockets API.
Figure 1-20. Socket Network Functions
| Operation | Description |
|---|---|
| dn_comp() | Compress an expanded domain name. |
| dn_expand() | Expand a compressed domain name. |
| dn_find() | Search for a compressed domain name from a list of previously compressed domain names. |
| dn_skipname() | Skip over a compressed domain name. |
| endhostent() | Close the nameserver database. |
| endhostent_r() | Close the nameserver database. |
| endnetent() | Close the network database. |
| endnetent_r() | Close the network database. |
| endprotoent() | Close the protocol database. |
| endprotoent_r() | Close the protocol database. |
| endservent() | Close the service database. |
| endservent_r() | Close the service database. |
| gethostbyaddr() | Provide information about host given an Internet address. |
| gethostbyaddr_r() | Provide information about host given an Internet address. |
| gethostbyname() | Provide information about host given a host name. |
| gethostbyname_r() | Provide information about host given a host name. |
| gethostent() | Get next host entry from the nameserver database. |
| gethostent_r() | Get next host entry from the nameserver database. |
| _getlong() | Get long byte quantities from a byte stream. |
| getnetbyaddr() | Get information from the network database about a given internet address. |
| getnetbyaddr_r() | Get information from the network database about a given internet address. |
| getnetbyname() | Get information from the network database about a given domain name. |
| getnetbyname_r() | Get information from the network database about a given domain name. |
| getnetent() | Get network entry from the network database. |
| getnetent_r() | Get network entry from the network database. |
| getprotobyname() | Get information regarding a protocol given the protocol name. |
| getprotobyname_r() | Get information regarding a protocol given the protocol name. |
| getprotobynumber() | Get information regarding a protocol given the protocol number. |
| getprotobynumber_r() | Get information regarding a protocol given the protocol number. |
| getprotoent() | Get next protocol entry in the protocol data base. |
| getprotoent_r() | Get next protocol entry in the protocol data base. |
| getservbyname() | Get port number for a given service name. |
| getservbyname_r() | Get port number for a given service name. |
| getservbyport() | Get service name given a port number. |
| getservbyport_r() | Get service name given a port number. |
| getservent() | Get next service entry from the service database. |
| getservent_r() | Get next service entry from the service database. |
| _getshort() | Get short byte quantities from a byte stream. |
| htonl() | Convert a long (4 byte) integer from local host byte order to the network byte order. |
| htons() | Convert a short (2 byte) integer from local host byte order to the network byte order. |
| inet_addr() | Translate the full address from dotted decimal format to a 32-bit Internet address. |
| inet_lnaof() | Separate the local portion of an Internet address. |
| inet_makeaddr() | Formulate an Internet address that combines a network address with the local address of a host. |
| inet_netof() | Separate the network portion of an Internet address. |
| inet_network() | Translate the network portion of the address from dotted decimal format to a 32-bit Internet address. |
| inet_ntoa() | Translate from 32-bit Internet address to a dotted decimal format. |
| inet_ntoa_r() | Translate from 32-bit Internet address to a dotted decimal format. |
| ns_addr() | Translate a network services address from human readable format to a 12-byte hexadecimal address. |
| ns_ntoa() | Translate a network services address from a 12-byte address to a human readable format. |
| ns_ntoa_r() | Translate a network services address from a 12-byte address to a human readable format. |
| ntohl() | Convert a long (4 byte) integer from network byte order to the local host byte order. |
| ntohs() | Convert a short (2 byte) integer from network byte order to the local host byte order. |
| _putlong() | Put long byte quantities into a byte stream. |
| _putshort() | Put short byte quantities into a byte stream. |
| res_close() | Close a socket and reset the _res structure1. |
| res_init() | Initialize _res structure for domain name server. |
| res_mkquery() | Form a domain name query and place it in a buffer in memory. |
| res_query() | Form a domain name query and send it to the domain name server. |
| res_search() | Search for a domain name from a list of domain names. |
| res_send() | Send the query formed in res_mkquery to the domain name server. |
| res_xlate() | Translate standard DNS packets between ASCII and EBCDIC1. |
| sethostent() | Open the nameserver database. |
| sethostent_r() | Open the nameserver database. |
| setnetent() | Open the network database. |
| setnetent_r() | Open the network database. |
| setprotoent() | Open the protocol database. |
| setprotoent_r() | Open the protocol database. |
| setservent() | Open the service database. |
| setservent_r() | Open the service database. |
Note:
| |
|
Top
| Sockets APIs UNIX-Type APIs | APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |