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

asio::resolver_service< Protocol > Class Template Reference

Inherits asio::io_service::service.

Inheritance diagram for asio::resolver_service< Protocol >:

Inheritance graph
List of all members.

Detailed Description

template<typename Protocol>
class asio::resolver_service< Protocol >

Default service implementation for a resolver.


Public Types

typedef Protocol protocol_type
 The protocol type.
typedef Protocol::endpoint endpoint_type
 The endpoint type.
typedef Protocol::resolver_query query_type
 The query type.
typedef Protocol::resolver_iterator iterator_type
 The iterator type.
typedef implementation_defined implementation_type
 The type of a resolver implementation.

Public Member Functions

 resolver_service (asio::io_service &io_service)
 Construct a new resolver service for the specified io_service.
void shutdown_service ()
 Destroy all user-defined handler objects owned by the service.
void construct (implementation_type &impl)
 Construct a new resolver implementation.
void destroy (implementation_type &impl)
 Destroy a resolver implementation.
void cancel (implementation_type &impl)
 Cancel pending asynchronous operations.
template<typename Error_Handler>
iterator_type resolve (implementation_type &impl, const query_type &query, Error_Handler error_handler)
 Resolve a query to a list of entries.
template<typename Handler>
void async_resolve (implementation_type &impl, const query_type &query, Handler handler)
 Asynchronously resolve a query to a list of entries.
template<typename Error_Handler>
iterator_type resolve (implementation_type &impl, const endpoint_type &endpoint, Error_Handler error_handler)
 Resolve an endpoint to a list of entries.
template<typename Handler>
void async_resolve (implementation_type &impl, const endpoint_type &endpoint, Handler handler)
 Asynchronously resolve an endpoint to a list of entries.
io_serviceowner ()
 Get the io_service object that owns the service.


Member Typedef Documentation

template<typename Protocol>
typedef Protocol asio::resolver_service< Protocol >::protocol_type

The protocol type.

template<typename Protocol>
typedef Protocol::endpoint asio::resolver_service< Protocol >::endpoint_type

The endpoint type.

template<typename Protocol>
typedef Protocol::resolver_query asio::resolver_service< Protocol >::query_type

The query type.

template<typename Protocol>
typedef Protocol::resolver_iterator asio::resolver_service< Protocol >::iterator_type

The iterator type.

template<typename Protocol>
typedef implementation_defined asio::resolver_service< Protocol >::implementation_type

The type of a resolver implementation.


Constructor & Destructor Documentation

template<typename Protocol>
asio::resolver_service< Protocol >::resolver_service ( asio::io_service io_service  )  [explicit]

Construct a new resolver service for the specified io_service.


Member Function Documentation

template<typename Protocol>
void asio::resolver_service< Protocol >::shutdown_service (  )  [virtual]

Destroy all user-defined handler objects owned by the service.

Implements asio::io_service::service.

template<typename Protocol>
void asio::resolver_service< Protocol >::construct ( implementation_type impl  ) 

Construct a new resolver implementation.

template<typename Protocol>
void asio::resolver_service< Protocol >::destroy ( implementation_type impl  ) 

Destroy a resolver implementation.

template<typename Protocol>
void asio::resolver_service< Protocol >::cancel ( implementation_type impl  ) 

Cancel pending asynchronous operations.

template<typename Protocol>
template<typename Error_Handler>
iterator_type asio::resolver_service< Protocol >::resolve ( implementation_type impl,
const query_type query,
Error_Handler  error_handler 
)

Resolve a query to a list of entries.

template<typename Protocol>
template<typename Handler>
void asio::resolver_service< Protocol >::async_resolve ( implementation_type impl,
const query_type query,
Handler  handler 
)

Asynchronously resolve a query to a list of entries.

template<typename Protocol>
template<typename Error_Handler>
iterator_type asio::resolver_service< Protocol >::resolve ( implementation_type impl,
const endpoint_type endpoint,
Error_Handler  error_handler 
)

Resolve an endpoint to a list of entries.

template<typename Protocol>
template<typename Handler>
void asio::resolver_service< Protocol >::async_resolve ( implementation_type impl,
const endpoint_type endpoint,
Handler  handler 
)

Asynchronously resolve an endpoint to a list of entries.

io_service & asio::io_service::service::owner (  )  [inherited]

Get the io_service object that owns the service.

asio 0.3.7 Home | Reference | Tutorial | Examples | Design