[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Communications Programming Concepts

List of Socket Programming References

The list includes:

Kernel Service Subroutines

accept Accepts a connection on a socket to create a new socket.
bind Binds a name to a socket.
connect Connects two sockets.
getdomainname Gets the name of the current domain.
gethostid Gets the unique identifier of the current host.
gethostname Gets the unique name of the current host.
getpeername Gets the name of the peer socket.
getsockname Gets the socket name.
getsockopt Gets options on sockets.
listen Listens for socket connections and limits the backlog of incoming connections.
recv Receives messages from connected sockets.
recvfrom Receives messages from sockets.
recvmsg Receives a message from any socket.
send Sends messages from a connected socket.
sendmsg Sends a message from a socket by using a message structure.
sendto Sends messages through a socket.
send_file Sends the contents of a file through a socket.
setdomainname Sets the name of the current domain.
sethostid Sets the unique identifier of the current host.
sethostname Sets the unique name of the current host.
setsockopt Sets socket options.
shutdown Shuts down all socket send and receive operations.
socket Creates an end point for communication and returns a descriptor.
socketpair Creates a pair of connected sockets.

Network Library Subroutines

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.

Header Files

/usr/include/netinet/in.h Defines Internet constants and structures.
/usr/include/arpa/nameser.h Contains Internet name-server information.
/usr/include/netdb.h Contains data definitions for socket subroutines.
/usr/include/resolv.h Contains resolver global definitions and variables.
/usr/include/sys/socket.h Contains data definitions and socket structures.
/usr/include/sys/socketvar.h Defines the kernel structure per socket and contains buffer queues.
/usr/include/sys/types.h Contains data type definitions.
/usr/include/sys/un.h Defines structures for the UNIX Interprocess Communication domain.

Protocols

PF_UNIX Local communication
PF_INET Internet (TCP/IP)
PF_NS Xerox Network System (XNS) architecture

[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]