$search
Default service implementation for a stream descriptor. More...
#include <stream_descriptor_service.hpp>

Public Types | |
| typedef service_impl_type::implementation_type | implementation_type |
| The type of a stream descriptor implementation. | |
| typedef service_impl_type::native_type | native_type |
| The native descriptor type. | |
Public Member Functions | |
| asio::error_code | assign (implementation_type &impl, const native_type &native_descriptor, asio::error_code &ec) |
| Assign an existing native descriptor to a stream descriptor. | |
| template<typename MutableBufferSequence , typename ReadHandler > | |
| void | async_read_some (implementation_type &impl, const MutableBufferSequence &buffers, ReadHandler descriptorr) |
| Start an asynchronous read. | |
| template<typename ConstBufferSequence , typename WriteHandler > | |
| void | async_write_some (implementation_type &impl, const ConstBufferSequence &buffers, WriteHandler descriptorr) |
| Start an asynchronous write. | |
| asio::error_code | cancel (implementation_type &impl, asio::error_code &ec) |
| Cancel all asynchronous operations associated with the descriptor. | |
| asio::error_code | close (implementation_type &impl, asio::error_code &ec) |
| Close a stream descriptor implementation. | |
| void | construct (implementation_type &impl) |
| Construct a new stream descriptor implementation. | |
| void | destroy (implementation_type &impl) |
| Destroy a stream descriptor implementation. | |
| template<typename IoControlCommand > | |
| asio::error_code | io_control (implementation_type &impl, IoControlCommand &command, asio::error_code &ec) |
| Perform an IO control command on the descriptor. | |
| bool | is_open (const implementation_type &impl) const |
| Determine whether the descriptor is open. | |
| native_type | native (implementation_type &impl) |
| Get the native descriptor implementation. | |
| template<typename MutableBufferSequence > | |
| std::size_t | read_some (implementation_type &impl, const MutableBufferSequence &buffers, asio::error_code &ec) |
| Read some data from the stream. | |
| void | shutdown_service () |
| Destroy all user-defined descriptorr objects owned by the service. | |
| stream_descriptor_service (asio::io_service &io_service) | |
| Construct a new stream descriptor service for the specified io_service. | |
| template<typename ConstBufferSequence > | |
| std::size_t | write_some (implementation_type &impl, const ConstBufferSequence &buffers, asio::error_code &ec) |
| Write the given data to the stream. | |
Private Types | |
| typedef detail::reactive_descriptor_service < detail::select_reactor < false > > | service_impl_type |
Private Attributes | |
| service_impl_type & | service_impl_ |
Default service implementation for a stream descriptor.
Definition at line 46 of file stream_descriptor_service.hpp.
| typedef service_impl_type::implementation_type asio::posix::stream_descriptor_service::implementation_type |
The type of a stream descriptor implementation.
Definition at line 80 of file stream_descriptor_service.hpp.
The native descriptor type.
Definition at line 87 of file stream_descriptor_service.hpp.
typedef detail::reactive_descriptor_service< detail::select_reactor<false> > asio::posix::stream_descriptor_service::service_impl_type [private] |
Definition at line 72 of file stream_descriptor_service.hpp.
| asio::posix::stream_descriptor_service::stream_descriptor_service | ( | asio::io_service & | io_service | ) | [inline, explicit] |
Construct a new stream descriptor service for the specified io_service.
Definition at line 91 of file stream_descriptor_service.hpp.
| asio::error_code asio::posix::stream_descriptor_service::assign | ( | implementation_type & | impl, | |
| const native_type & | native_descriptor, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Assign an existing native descriptor to a stream descriptor.
Definition at line 115 of file stream_descriptor_service.hpp.
| void asio::posix::stream_descriptor_service::async_read_some | ( | implementation_type & | impl, | |
| const MutableBufferSequence & | buffers, | |||
| ReadHandler | descriptorr | |||
| ) | [inline] |
Start an asynchronous read.
Definition at line 181 of file stream_descriptor_service.hpp.
| void asio::posix::stream_descriptor_service::async_write_some | ( | implementation_type & | impl, | |
| const ConstBufferSequence & | buffers, | |||
| WriteHandler | descriptorr | |||
| ) | [inline] |
Start an asynchronous write.
Definition at line 165 of file stream_descriptor_service.hpp.
| asio::error_code asio::posix::stream_descriptor_service::cancel | ( | implementation_type & | impl, | |
| asio::error_code & | ec | |||
| ) | [inline] |
Cancel all asynchronous operations associated with the descriptor.
Definition at line 141 of file stream_descriptor_service.hpp.
| asio::error_code asio::posix::stream_descriptor_service::close | ( | implementation_type & | impl, | |
| asio::error_code & | ec | |||
| ) | [inline] |
Close a stream descriptor implementation.
Definition at line 128 of file stream_descriptor_service.hpp.
| void asio::posix::stream_descriptor_service::construct | ( | implementation_type & | impl | ) | [inline] |
Construct a new stream descriptor implementation.
Definition at line 103 of file stream_descriptor_service.hpp.
| void asio::posix::stream_descriptor_service::destroy | ( | implementation_type & | impl | ) | [inline] |
Destroy a stream descriptor implementation.
Definition at line 109 of file stream_descriptor_service.hpp.
| asio::error_code asio::posix::stream_descriptor_service::io_control | ( | implementation_type & | impl, | |
| IoControlCommand & | command, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Perform an IO control command on the descriptor.
Definition at line 149 of file stream_descriptor_service.hpp.
| bool asio::posix::stream_descriptor_service::is_open | ( | const implementation_type & | impl | ) | const [inline] |
Determine whether the descriptor is open.
Definition at line 122 of file stream_descriptor_service.hpp.
| native_type asio::posix::stream_descriptor_service::native | ( | implementation_type & | impl | ) | [inline] |
Get the native descriptor implementation.
Definition at line 135 of file stream_descriptor_service.hpp.
| std::size_t asio::posix::stream_descriptor_service::read_some | ( | implementation_type & | impl, | |
| const MutableBufferSequence & | buffers, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Read some data from the stream.
Definition at line 173 of file stream_descriptor_service.hpp.
| void asio::posix::stream_descriptor_service::shutdown_service | ( | ) | [inline, virtual] |
Destroy all user-defined descriptorr objects owned by the service.
Implements asio::io_service::service.
Definition at line 98 of file stream_descriptor_service.hpp.
| std::size_t asio::posix::stream_descriptor_service::write_some | ( | implementation_type & | impl, | |
| const ConstBufferSequence & | buffers, | |||
| asio::error_code & | ec | |||
| ) | [inline] |
Write the given data to the stream.
Definition at line 157 of file stream_descriptor_service.hpp.
Definition at line 189 of file stream_descriptor_service.hpp.