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

Click here to view the latest version of this page.
PrevUpHomeNext

posix::stream_descriptor_service

Default service implementation for a stream descriptor.

class stream_descriptor_service :
  public io_service::service
Types

Name

Description

implementation_type

The type of a stream descriptor implementation.

native_handle_type

The native descriptor type.

native_type

(Deprecated: Use native_handle_type.) The native descriptor type.

Member Functions

Name

Description

assign

Assign an existing native descriptor to a stream descriptor.

async_read_some

Start an asynchronous read.

async_write_some

Start an asynchronous write.

cancel

Cancel all asynchronous operations associated with the descriptor.

close

Close a stream descriptor implementation.

construct

Construct a new stream descriptor implementation.

destroy

Destroy a stream descriptor implementation.

get_io_service

Get the io_service object that owns the service.

io_control

Perform an IO control command on the descriptor.

is_open

Determine whether the descriptor is open.

move_assign

Move-assign from another stream descriptor implementation.

move_construct

Move-construct a new stream descriptor implementation.

native

(Deprecated: Use native_handle().) Get the native descriptor implementation.

native_handle

Get the native descriptor implementation.

native_non_blocking

Gets the non-blocking mode of the native descriptor implementation.

Sets the non-blocking mode of the native descriptor implementation.

non_blocking

Gets the non-blocking mode of the descriptor.

Sets the non-blocking mode of the descriptor.

read_some

Read some data from the stream.

release

Release ownership of the native descriptor implementation.

stream_descriptor_service

Construct a new stream descriptor service for the specified io_service.

write_some

Write the given data to the stream.

Data Members

Name

Description

id

The unique service identifier.

Requirements

Header: boost/asio/posix/stream_descriptor_service.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext