Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function is_stream_handle

boost::this_process::is_stream_handle

Synopsis

// In header: <boost/process/handles.hpp>


bool is_stream_handle(native_handle_type handle);
bool is_stream_handle(native_handle_type handle, std::error_code & ec);

Description

Determines if a given handle is a a stream-handle, i.e. any handle that can be used with read and write functions. Stream handles include pipes, regular files and sockets.

Returns:

Indicates if it's a stream handle.


PrevUpHomeNext