Advanced Topics for Stream Sockets
Using Read and Write to Make Stream Sockets Transparent
Using Read and Write to Make Stream
Sockets Transparent
An example application of read and write with stream sockets is to fork
a command with a socket descriptor as stdout. The peer process can
read input from the command. The command can be any command and
does not have to know that stdout is a socket. It might use printf,
which results in the use of write. Thus, the stream sockets are
transparent.
80
Chapter 3