Provides POSIX descriptor functionality.
template< typename DescriptorService> class basic_descriptor : public basic_io_object< DescriptorService >, public posix::descriptor_base
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. |
|
(Deprecated: Use native_handle_type.) The native representation of a descriptor. |
|
(Deprecated: Use non_blocking().) 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. |
|
Construct a basic_descriptor without opening it. Construct a basic_descriptor on an existing native descriptor. Move-construct a basic_descriptor from another. |
|
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. |
|
Determine whether the descriptor is open. |
|
Get a reference to the lowest layer. Get a const reference to the lowest layer. |
|
(Deprecated: Use native_handle().) Get the native descriptor representation. |
|
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 basic_descriptor from another. |
|
Release ownership of the native descriptor implementation. |
Name |
Description |
---|---|
Get the underlying implementation of the I/O object. |
|
Get the service associated with the I/O object. |
|
Protected destructor to prevent deletion through this type. |
Name |
Description |
---|---|
(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. |
|
(Deprecated: Use get_service().) The service associated with the I/O object. |
The posix::basic_descriptor
class template
provides the ability to wrap a POSIX descriptor.
Distinct objects: Safe.
Shared objects: Unsafe.
Header: asio/posix/basic_descriptor.hpp
Convenience header: asio.hpp