z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Call sequence in stream socket sessions

z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
SC27-3660-00

This topic describes a typical stream socket session.

Use stream sockets for both passive (server) and active (client) processes. While some calls are necessary for both types, others are role specific. See Sample C socket programs for sample socket communication client and server programs. All connections exist until closed by the socket. During the connection, data is delivered, or an error code is returned by TCP/IP.

Figure 1 shows the general sequence of calls for most socket routines using stream sockets.

Figure 1. A typical stream socket session
Flow chart of eight processes that shows how a client and the server build connection in a stream socket session.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014