Connection-Oriented Transports

Example 4-20 copies a file from one host to another. The RPC send()
call reads standard input and sends the data to the server receive(),
which writes the data to standard output. This example also illustrates an
XDR procedure that behaves differently on serialization and on deserialization. A connection-oriented
transport is used.