Default service implementation for a resolver. More...
#include <resolver_service.hpp>
Public Types | |
typedef InternetProtocol::endpoint | endpoint_type |
The endpoint type. | |
typedef service_impl_type::implementation_type | implementation_type |
The type of a resolver implementation. | |
typedef InternetProtocol::resolver_iterator | iterator_type |
The iterator type. | |
typedef InternetProtocol | protocol_type |
The protocol type. | |
typedef InternetProtocol::resolver_query | query_type |
The query type. | |
Public Member Functions | |
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 ResolveHandler > | |
void | async_resolve (implementation_type &impl, const endpoint_type &endpoint, ResolveHandler handler) |
Asynchronously resolve an endpoint to a list of entries. | |
void | cancel (implementation_type &impl) |
Cancel pending asynchronous operations. | |
void | construct (implementation_type &impl) |
Construct a new resolver implementation. | |
void | destroy (implementation_type &impl) |
Destroy a resolver implementation. | |
iterator_type | resolve (implementation_type &impl, const query_type &query, asio::error_code &ec) |
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. | |
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. | |
Private Types | |
typedef asio::detail::resolver_service < InternetProtocol > | service_impl_type |
Private Attributes | |
service_impl_type & | service_impl_ |
Default service implementation for a resolver.
Definition at line 30 of file ip/resolver_service.hpp.
typedef InternetProtocol::endpoint asio::ip::resolver_service< InternetProtocol >::endpoint_type |
The endpoint type.
Definition at line 48 of file ip/resolver_service.hpp.
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 ip/resolver_service.hpp.
typedef InternetProtocol::resolver_iterator asio::ip::resolver_service< InternetProtocol >::iterator_type |
The iterator type.
Definition at line 54 of file ip/resolver_service.hpp.
typedef InternetProtocol asio::ip::resolver_service< InternetProtocol >::protocol_type |
The protocol type.
Definition at line 45 of file ip/resolver_service.hpp.
typedef InternetProtocol::resolver_query asio::ip::resolver_service< InternetProtocol >::query_type |
The query type.
Definition at line 51 of file ip/resolver_service.hpp.
typedef asio::detail::resolver_service<InternetProtocol> asio::ip::resolver_service< InternetProtocol >::service_impl_type [private] |
Definition at line 59 of file ip/resolver_service.hpp.
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 ip/resolver_service.hpp.
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 ip/resolver_service.hpp.
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 ip/resolver_service.hpp.
void asio::ip::resolver_service< InternetProtocol >::cancel | ( | implementation_type & | impl | ) | [inline] |
Cancel pending asynchronous operations.
Definition at line 95 of file ip/resolver_service.hpp.
void asio::ip::resolver_service< InternetProtocol >::construct | ( | implementation_type & | impl | ) | [inline] |
Construct a new resolver implementation.
Definition at line 83 of file ip/resolver_service.hpp.
void asio::ip::resolver_service< InternetProtocol >::destroy | ( | implementation_type & | impl | ) | [inline] |
Destroy a resolver implementation.
Definition at line 89 of file ip/resolver_service.hpp.
iterator_type asio::ip::resolver_service< InternetProtocol >::resolve | ( | implementation_type & | impl, |
const query_type & | query, | ||
asio::error_code & | ec | ||
) | [inline] |
Resolve a query to a list of entries.
Definition at line 101 of file ip/resolver_service.hpp.
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 ip/resolver_service.hpp.
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 ip/resolver_service.hpp.
service_impl_type& asio::ip::resolver_service< InternetProtocol >::service_impl_ [private] |
Definition at line 132 of file ip/resolver_service.hpp.