|
|
This section describes the connection-mode service of the Transport Interface. As discussed in the previous section, the connection-mode service can be illustrated using a client-server paradigm. The important concepts of connection-mode service will be presented using two programming examples. The examples are related: the first example illustrates how a client establishes a connection to a server and then communicates with it; the second example shows the server's side of the interaction. All examples discussed in this section are presented in a complete form in ``Examples''
In the examples, the client establishes a connection with a server process. The server then transfers a file to the client. The client, in turn, receives the data from the server and writes it to its standard output file.