Network Library Subroutines

This section list different network library subroutines.

Item Description
dn_comp Compresses a domain name.
dn_expand Expands a compressed domain name.
endhostent Ends retrieval of network host entries.
endnetent Closes the networks file.
endprotoent Closes the /etc/protocols file.
endservent Closes the /etc/service file entry.
gethostbyaddr Gets network host entry by address.
gethostbyname Gets network host entry by name.
gethostent Gets host entry from the /etc/hosts file.
getnetbyaddr Gets network entry by address.
getnetbyname Gets network entry by name.
getnetent Gets network entry.
getprotobyname Gets protocol entry from the /etc/protocols file by protocol name.
getprotobynumber Gets a protocol entry from the /etc/protocols file by number.
getprotoent Gets protocol entry from the /etc/protocols file.
_getlong Retrieves long byte quantities.
_getshort Retrieves short byte quantities.
getservbyname Gets service entry by name.
getservbyport Gets service entry by port.
getservent Gets services file entry.
htonl Converts an unsigned long integer from host byte order to Internet-network byte order.
htons Converts an unsigned short integer from host byte order to Internet-network byte order.
inet_addr Converts Internet addresses to Internet numbers.
inet_lnaof Separates local Internet addresses into their network number and local network address.
inet_makeaddr Makes an Internet address.
inet_netof Separates network Internet addresses into their network number and local network address.
inet_network Converts Internet network addresses in . (dot) notation to Internet numbers.
inet_ntoa Converts an Internet address into an ASCII string.
ntohl Converts an unsigned long integer from Internet-network standard byte order to host byte order.
ntohs Converts an unsigned short integer from Internet-network byte order to host byte order.
_putlong Places long byte quantities into the byte stream.
_putshort Places short byte quantities into the byte stream.
rcmd Allows execution of commands on a remote host.
res_init Searches for a default domain name and Internet address.
res_mkquery Makes query messages for name server.
res_query Provides an interface to the server query mechanism.
res_search Makes a query and awaits a response.
res_send Sends a query to a name server and retrieves a response.
rexec Allows command execution on a remote host.
rresvport Retrieves a socket with a privileged address.
ruserok Allows servers to authenticate clients.
sethostent Opens network host file.
setnetent Opens and rewinds the network file.
setprotoent Opens and rewinds the /etc/protocols file.
setservent. Opens and rewinds the service file.
socks5tcp_connect Connect to a SOCKS version 5 server and request a connection to an external destination.
socks5tcp_bind Connect to a SOCKS version 5 server and request a listening socket for incoming remote connections.
socks5tcp_accept Awaits an incoming connection to a socket from a previous socks5tcp_bind call.
socks5udp_associate Connects to a SOCKS version 5 server and requests a UDP association for subsequent UDP socket communications.
socks5udp_sendto Send UDP packets through a SOCKS version 5 server.
socks5_getserv Returns the address of the SOCKS version 5 server (if any) to use when connecting to a given destination.