#include <postream.hpp>
Public Member Functions | |
postream (detail::file_handle &fh) | |
detail::file_handle & | handle () |
void | close () |
The postream class represents an input communication channel with the child process. The child process reads data from this stream and the parent process can write to it through the postream object. In other words, from the child's point of view, the communication channel is an input one, but from the parent's point of view it is an output one; hence the confusing postream name.
postream objects cannot be copied because they own the file handle they use to communicate with the child and because they buffer data that flows through the communication channel.
A postream object behaves as a std::ostream stream in all senses. The class is only provided because it must provide a method to let the caller explicitly close the communication channel.
boost::process::postream::postream | ( | detail::file_handle & | fh | ) | [inline, explicit] |
detail::file_handle& boost::process::postream::handle | ( | ) | [inline] |
Returns the file handle managed by this stream.
The file handle must not be copied. Copying invalidates the source file handle making the postream unusable.
void boost::process::postream::close | ( | ) | [inline] |