
316
CHAPTER 11 INTERPROCESS COMMUNICATION
Anonymous Pipes
The Windows anonymous pipes allow one-way (half-duplex), character-based IPC.
Each pipe has two handles: a read handle and a write handle. The
function is as follows.
The pipe handles are often inheritable; the next example shows the reasons.
, the pipe byte size, is only a suggestion, and specifies the default value.
In order for the pi pe to be used for IPC, there must be another process, and
that process requires one of the pipe handles. Assume that the parent process,
which calls
, wishes to write da ta for a child to use. The problem,
then, is to communicate the read handle (
) to the ch ...