7.1 TCP/IP for z/OS

The TMA TCP for IMS product makes use of the following TCP/IP for z/OS services by issuing the appropriate API calls.

TCP/IP for z/OS Service Description
accept Accept a TCP/IP connection request
bind Bind a socket to an IP address and port
close Close a socket and free associated resources
connect Initiate a TCP/IP connection with a specified IP address and port
fcntl Set the operational characteristics of a socket
gethostbyaddr Resolve an IP address into a domain name
gethostbyname Resolve a hostname into a domain name
htonl Convert a long integer from host to network byte order
htons Convert a short integer from host to network byte order
inet_network Convert an IP address from character format to internal format
inet_ntoa Convert an IP address from internal format to character format
listen Initiate listening on a socket bound to an IP address and port
read Read data on a TCP/IP connection
selectex Wait on one or more socket FDs to be posted, a timeout to occur, or an ECB to be posted
setsockopt Set socket-related processing options
socket Obtain (allocate) a socket descriptor for a TCP/IP connection
shutdown Shut down a TCP/IP connection
write Write data to a TCP/IP connection