[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 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.

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

Example Programs

Socketpair Communication Example Program

Checking for Pending Connections Example Program

Reading Internet Datagrams Example Program

Sending Internet Datagrams Example Program

Initiating Internet Stream Connections Example Program

Accepting Internet Stream Connections Example Program

Reading UNIX Datagrams Example Program

Sending UNIX Datagrams Example Program

Initiating a UNIX Stream Connection Example Program

Accepting UNIX Stream Connections Example Program

Sending Data on an ATM Socket PVC Client Example Program

Receiving Data on an ATM Socket PVC Server Example Program

Sending Data on an ATM Socket Rate-Enforced SVC Client Example Program

Receiving Data on an ATM Socket Rate-Enforced SVC Server Example Program

Sending Data on an ATM Socket SVC Client Example Program

Receiving Data on an ATM Socket SVC Server Example Program

Receiving Packets Over Ethernet Example Program

Sending Packets Over Ethernet Example Program

Analyzing Packets Over the Network Example Program


[ Previous | Next | Contents | Glossary | Home | Search ]