asio 0.3.7 Home | Reference | Tutorial | Examples | Design
Reference Class Hierarchy | Class Index | Member Index

Async_Object Class Reference

Inherited by Async_Read_Stream, and Async_Write_Stream.

Inheritance diagram for Async_Object:

Inheritance graph
List of all members.

Detailed Description

Asynchronous object concept.

The asynchronous object concept provides callers with access to the io_service used to dispatch handlers for asynchronous operations. This allows the asynchronous object's operations to be wrapped in a higher-level operation, such that the handler for the higher-level operation be dispatched through the correct io_service.

Implemented By:
asio::basic_deadline_timer
asio::basic_datagram_socket
asio::basic_locking_dispatcher
asio::basic_socket_acceptor
asio::basic_stream_socket
asio::buffered_read_stream
asio::buffered_write_stream
asio::buffered_stream
asio::ipv4::basic_host_resolver
asio::ssl::stream


Public Types

typedef implementation_defined io_service_type
 The io_service type for this object.

Public Member Functions

io_service_typeio_service ()
 Get the io_service associated with the object.


Member Typedef Documentation

typedef implementation_defined Async_Object::io_service_type

The io_service type for this object.


Member Function Documentation

io_service_type& Async_Object::io_service (  ) 

Get the io_service associated with the object.

This function may be used to obtain the io_service object that the object uses to dispatch handlers for asynchronous operations.

Returns:
A reference to the io_service object that the object will use to dispatch handlers. Ownership is not transferred to the caller.

asio 0.3.7 Home | Reference | Tutorial | Examples | Design