Boost C++ Libraries

PrevUpHomeNext

Type stream_behavior

boost::process::stream_behavior — Describes the possible states for a communication stream.

Synopsis

enum stream_behavior { close_stream, inherit_stream, redirect_stream, 
                       silent_stream };

Description

Describes the possible states for a child's communication stream.

close_stream

The stream is closed and hence the child process will not be allowed to access it.

inherit_stream

The child inherits the parent's handle for the data flow, thus effectively sharing it between the two processes.

redirect_stream

The child is connected to the parent so that they can send and receive data through the stream.

silent_stream

The child's stream is redirected to a null device so that its output is lost. It is important to see that this is different to close_stream because the child is still able to write data. If we closed, e.g. stdout, it's most likely that the child couldn't work at all!

Copyright © 2006 Julio M. Merino Vidal

PrevUpHomeNext