REXX Tutorial

TCP/IP Basics

One of the APIs to the TCP/IP protocol stack available is the socket API. A socket is a special type of file handle which is used to transfer data between two parties. The data that is written on one side of the socket can immediately be read on the other side. The transfer between the two parties is handled transparently by the underlying TCP/IP. Various applications have defined high level protocols on this socket interface for their purposes.

A client needs to follow the following steps to access a server via sockets:

A server needs some preparation steps before it can accept clients: The following graphic illustrates this flow: Socket connections flow chart
[ IBM REXX homepage | Next page | Tutorial Index | Object REXX homepage ]
[ IBM homepage | Order | Search | Contact IBM | Help | (C) | (TM) ]
This page is at http://www2.hursley.ibm.com/rexxtut/socktut2.htm