...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A descriptor is always the lowest layer.
typedef descriptor lowest_layer_type;
Name |
Description |
---|---|
IO control command to get the amount of data that can be read without blocking. |
|
The type of the executor associated with the object. |
|
A descriptor is always the lowest layer. |
|
The native representation of a descriptor. |
|
Wait types. |
Name |
Description |
---|---|
Assign an existing native descriptor to the descriptor. |
|
Asynchronously wait for the descriptor to become ready to read, ready to write, or to have pending error conditions. |
|
Cancel all asynchronous operations associated with the descriptor. |
|
Close the descriptor. |
|
Construct a descriptor without opening it. Construct a descriptor on an existing native descriptor. Move-construct a descriptor from another. |
|
Get the executor associated with the object. |
|
(Deprecated: Use get_executor().) Get the io_context associated with the object. |
|
(Deprecated: Use get_executor().) Get the io_context associated with the object. |
|
Perform an IO control command on the descriptor. |
|
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. |
|
Gets the non-blocking mode of the native descriptor implementation. Sets the non-blocking mode of the native descriptor implementation. |
|
Gets the non-blocking mode of the descriptor. Sets the non-blocking mode of the descriptor. |
|
Move-assign a descriptor from another. |
|
Release ownership of the native descriptor implementation. |
|
Wait for the descriptor to become ready to read, ready to write, or to have pending error conditions. |
Name |
Description |
---|---|
Protected destructor to prevent deletion through this type. |
The posix::descriptor
class template provides the ability to wrap a POSIX descriptor.
Distinct objects: Safe.
Shared objects: Unsafe.
Header: boost/asio/posix/descriptor.hpp
Convenience header: boost/asio.hpp