...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Typedef for the typical usage of a stream-oriented descriptor.
typedef basic_stream_descriptor stream_descriptor;
Name |
Description |
---|---|
IO control command to get the amount of data that can be read without blocking. |
|
The underlying implementation type of I/O object. |
|
A basic_descriptor is always the lowest layer. |
|
The native representation of a descriptor. |
|
IO control command to set the blocking mode of the descriptor. |
|
The type of the service that will be used to provide I/O operations. |
Name |
Description |
---|---|
Assign an existing native descriptor to the descriptor. |
|
Start an asynchronous read. |
|
Start an asynchronous write. |
|
Construct a basic_stream_descriptor without opening it. Construct a basic_stream_descriptor on an existing native descriptor. |
|
Cancel all asynchronous operations associated with the descriptor. |
|
Close the descriptor. |
|
Get the io_service associated with the object. |
|
Perform an IO control command on the descriptor. |
|
(Deprecated: use get_io_service().) Get the io_service associated with the object. |
|
Determine whether the descriptor is open. |
|
Get a reference to the lowest layer. Get a const reference to the lowest layer. |
|
Get the native descriptor representation. |
|
Read some data from the descriptor. |
|
Write some data to the descriptor. |
Name |
Description |
---|---|
The underlying implementation of the I/O object. |
|
The service associated with the I/O object. |
The posix::basic_stream_descriptor
class template
provides asynchronous and blocking stream-oriented descriptor functionality.
Distinct objects: Safe.
Shared objects: Unsafe.
Header: boost/asio/posix/stream_descriptor.hpp
Convenience header: boost/asio.hpp