All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Types | Private Attributes
asio::posix::stream_descriptor_service Class Reference

Default service implementation for a stream descriptor. More...

#include <stream_descriptor_service.hpp>

Inheritance diagram for asio::posix::stream_descriptor_service:
Inheritance graph
[legend]

List of all members.

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_typeservice_impl_

Detailed Description

Default service implementation for a stream descriptor.

Definition at line 46 of file stream_descriptor_service.hpp.


Member Typedef Documentation

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.

Definition at line 72 of file stream_descriptor_service.hpp.


Constructor & Destructor Documentation

Construct a new stream descriptor service for the specified io_service.

Definition at line 91 of file stream_descriptor_service.hpp.


Member Function Documentation

Assign an existing native descriptor to a stream descriptor.

Definition at line 115 of file stream_descriptor_service.hpp.

template<typename MutableBufferSequence , typename ReadHandler >
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.

template<typename ConstBufferSequence , typename WriteHandler >
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.

Cancel all asynchronous operations associated with the descriptor.

Definition at line 141 of file stream_descriptor_service.hpp.

Close a stream descriptor implementation.

Definition at line 128 of file stream_descriptor_service.hpp.

Construct a new stream descriptor implementation.

Definition at line 103 of file stream_descriptor_service.hpp.

Destroy a stream descriptor implementation.

Definition at line 109 of file stream_descriptor_service.hpp.

template<typename IoControlCommand >
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.

Determine whether the descriptor is open.

Definition at line 122 of file stream_descriptor_service.hpp.

Get the native descriptor implementation.

Definition at line 135 of file stream_descriptor_service.hpp.

template<typename MutableBufferSequence >
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.

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.

template<typename ConstBufferSequence >
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.


Member Data Documentation

Definition at line 189 of file stream_descriptor_service.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:41