z/OS Communications Server: IP CICS Sockets Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Basic socket calls

z/OS Communications Server: IP CICS Sockets Guide
SC27-3649-00

This topic contains an overview of the basic socket calls.

The following calls are used by the server:
SOCKET
Obtains a socket to read from or write to.
BIND
Associates a socket with a port number.
LISTEN
Tells TCP⁄IP that this process is listening for connections on this socket.
SELECT
Waits for activity on a socket.
ACCEPT
Accepts a connection from a client.
The following calls are used by a concurrent server to pass the socket from the parent server task (listener) to the child server task (user-written application).
GIVESOCKET
Gives a socket to a child server task.
TAKESOCKET
Accepts a socket from a parent server task.
GETCLIENTID
Optionally used by the parent server task to determine its own address space name (if unknown) prior to issuing the GIVESOCKET.
The following calls are used by the client:
SOCKET
Allocates a socket to read from or write to.
CONNECT
Allows a client to open a connection to a server’s port.
The following calls are used by both the client and the server:
WRITE
Sends data to the process on the other host.
READ
Receives data from the other host.
CLOSE
Terminates a connection, deallocating the socket.

For full discussion and examples of these calls, see Sockets extended API.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014