asio::ip::resolver_service< InternetProtocol > Class Template Reference

Default service implementation for a resolver. More...

#include <resolver_service.hpp>

Inheritance diagram for asio::ip::resolver_service< InternetProtocol >:

asio::detail::service_base< Type > asio::io_service::service

List of all members.

Public Types

typedef InternetProtocol protocol_type
 The protocol type.
typedef InternetProtocol::endpoint endpoint_type
 The endpoint type.
typedef
InternetProtocol::resolver_query 
query_type
 The query type.
typedef
InternetProtocol::resolver_iterator 
iterator_type
 The iterator type.
typedef
service_impl_type::implementation_type 
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.
iterator_type resolve (implementation_type &impl, const query_type &query, asio::error_code &ec)
 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.
iterator_type resolve (implementation_type &impl, const endpoint_type &endpoint, asio::error_code &ec)
 Resolve an endpoint to a list of entries.
template<typename ResolveHandler>
void async_resolve (implementation_type &impl, const endpoint_type &endpoint, ResolveHandler handler)
 Asynchronously resolve an endpoint to a list of entries.

Private Types

typedef
asio::detail::resolver_service
< InternetProtocol > 
service_impl_type

Private Attributes

service_impl_typeservice_impl_


Detailed Description

template<typename InternetProtocol>
class asio::ip::resolver_service< InternetProtocol >

Default service implementation for a resolver.

Definition at line 30 of file resolver_service.hpp.


Member Typedef Documentation

template<typename InternetProtocol>
typedef InternetProtocol asio::ip::resolver_service< InternetProtocol >::protocol_type

The protocol type.

Definition at line 45 of file resolver_service.hpp.

template<typename InternetProtocol>
typedef InternetProtocol::endpoint asio::ip::resolver_service< InternetProtocol >::endpoint_type

The endpoint type.

Definition at line 48 of file resolver_service.hpp.

template<typename InternetProtocol>
typedef InternetProtocol::resolver_query asio::ip::resolver_service< InternetProtocol >::query_type

The query type.

Definition at line 51 of file resolver_service.hpp.

template<typename InternetProtocol>
typedef InternetProtocol::resolver_iterator asio::ip::resolver_service< InternetProtocol >::iterator_type

The iterator type.

Definition at line 54 of file resolver_service.hpp.

template<typename InternetProtocol>
typedef asio::detail::resolver_service<InternetProtocol> asio::ip::resolver_service< InternetProtocol >::service_impl_type [private]

Definition at line 59 of file resolver_service.hpp.

template<typename InternetProtocol>
typedef service_impl_type::implementation_type asio::ip::resolver_service< InternetProtocol >::implementation_type

The type of a resolver implementation.

Definition at line 66 of file resolver_service.hpp.


Constructor & Destructor Documentation

template<typename InternetProtocol>
asio::ip::resolver_service< InternetProtocol >::resolver_service ( asio::io_service io_service  )  [inline, explicit]

Construct a new resolver service for the specified io_service.

Definition at line 70 of file resolver_service.hpp.


Member Function Documentation

template<typename InternetProtocol>
void asio::ip::resolver_service< InternetProtocol >::shutdown_service (  )  [inline, virtual]

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

Implements asio::io_service::service.

Definition at line 78 of file resolver_service.hpp.

template<typename InternetProtocol>
void asio::ip::resolver_service< InternetProtocol >::construct ( implementation_type impl  )  [inline]

template<typename InternetProtocol>
void asio::ip::resolver_service< InternetProtocol >::destroy ( implementation_type impl  )  [inline]

template<typename InternetProtocol>
void asio::ip::resolver_service< InternetProtocol >::cancel ( implementation_type impl  )  [inline]

Cancel pending asynchronous operations.

Definition at line 95 of file resolver_service.hpp.

References asio::detail::resolver_service< Protocol >::cancel(), and asio::ip::resolver_service< InternetProtocol >::service_impl_.

template<typename InternetProtocol>
iterator_type asio::ip::resolver_service< InternetProtocol >::resolve ( implementation_type impl,
const query_type query,
asio::error_code ec 
) [inline]

template<typename InternetProtocol>
template<typename Handler>
void asio::ip::resolver_service< InternetProtocol >::async_resolve ( implementation_type impl,
const query_type query,
Handler  handler 
) [inline]

Asynchronously resolve a query to a list of entries.

Definition at line 109 of file resolver_service.hpp.

References asio::detail::resolver_service< Protocol >::async_resolve(), and asio::ip::resolver_service< InternetProtocol >::service_impl_.

template<typename InternetProtocol>
iterator_type asio::ip::resolver_service< InternetProtocol >::resolve ( implementation_type impl,
const endpoint_type endpoint,
asio::error_code ec 
) [inline]

Resolve an endpoint to a list of entries.

Definition at line 116 of file resolver_service.hpp.

References asio::detail::resolver_service< Protocol >::resolve(), and asio::ip::resolver_service< InternetProtocol >::service_impl_.

template<typename InternetProtocol>
template<typename ResolveHandler>
void asio::ip::resolver_service< InternetProtocol >::async_resolve ( implementation_type impl,
const endpoint_type endpoint,
ResolveHandler  handler 
) [inline]

Asynchronously resolve an endpoint to a list of entries.

Definition at line 124 of file resolver_service.hpp.

References asio::detail::resolver_service< Protocol >::async_resolve(), and asio::ip::resolver_service< InternetProtocol >::service_impl_.


Member Data Documentation

template<typename InternetProtocol>
service_impl_type& asio::ip::resolver_service< InternetProtocol >::service_impl_ [private]


The documentation for this class was generated from the following file:

Generated on Sun May 25 00:21:36 2008 by  doxygen 1.5.6