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 to view this page for the latest version.
PrevUpHomeNext

posix::stream_descriptor

Typedef for the typical usage of a stream-oriented descriptor.

typedef basic_stream_descriptor stream_descriptor;
Types

Name

Description

bytes_readable

IO control command to get the amount of data that can be read without blocking.

implementation_type

The underlying implementation type of I/O object.

lowest_layer_type

A basic_descriptor is always the lowest layer.

native_type

The native representation of a descriptor.

non_blocking_io

IO control command to set the blocking mode of the descriptor.

service_type

The type of the service that will be used to provide I/O operations.

Member Functions

Name

Description

assign

Assign an existing native descriptor to the descriptor.

async_read_some

Start an asynchronous read.

async_write_some

Start an asynchronous write.

basic_stream_descriptor

Construct a basic_stream_descriptor without opening it.

Construct a basic_stream_descriptor on an existing native descriptor.

cancel

Cancel all asynchronous operations associated with the descriptor.

close

Close the descriptor.

get_io_service

Get the io_service associated with the object.

io_control

Perform an IO control command on the descriptor.

io_service

(Deprecated: use get_io_service().) Get the io_service associated with the object.

is_open

Determine whether the descriptor is open.

lowest_layer

Get a reference to the lowest layer.

Get a const reference to the lowest layer.

native

Get the native descriptor representation.

read_some

Read some data from the descriptor.

write_some

Write some data to the descriptor.

Protected Data Members

Name

Description

implementation

The underlying implementation of the I/O object.

service

The service associated with the I/O object.

The posix::basic_stream_descriptor class template provides asynchronous and blocking stream-oriented descriptor functionality.

Thread Safety

Distinct objects: Safe.

Shared objects: Unsafe.

Requirements

Header: boost/asio/posix/stream_descriptor.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext