Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::ip::resolver_service< InternetProtocol > Class Template Reference

Default service implementation for a resolver. More...

#include <resolver_service.hpp>

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

Public Types

typedef InternetProtocol protocol_type
 The protocol type. More...
 
typedef InternetProtocol::endpoint endpoint_type
 The endpoint type. More...
 
typedef basic_resolver_query
< InternetProtocol > 
query_type
 The query type. More...
 
typedef
basic_resolver_iterator
< InternetProtocol > 
iterator_type
 The iterator type. More...
 
typedef
service_impl_type::implementation_type 
implementation_type
 The type of a resolver implementation. More...
 

Public Member Functions

 resolver_service (boost::asio::io_service &io_service)
 Construct a new resolver service for the specified io_service. More...
 
void construct (implementation_type &impl)
 Construct a new resolver implementation. More...
 
void destroy (implementation_type &impl)
 Destroy a resolver implementation. More...
 
void cancel (implementation_type &impl)
 Cancel pending asynchronous operations. More...
 
iterator_type resolve (implementation_type &impl, const query_type &query, boost::system::error_code &ec)
 Resolve a query to a list of entries. More...
 
template<typename ResolveHandler >
 BOOST_ASIO_INITFN_RESULT_TYPE (ResolveHandler, void(boost::system::error_code, iterator_type)) async_resolve(implementation_type &impl
 Asynchronously resolve a query to a list of entries. More...
 
const query_type BOOST_ASIO_MOVE_ARG (ResolveHandler) handler)
 
iterator_type resolve (implementation_type &impl, const endpoint_type &endpoint, boost::system::error_code &ec)
 Resolve an endpoint to a list of entries. More...
 
template<typename ResolveHandler >
 BOOST_ASIO_INITFN_RESULT_TYPE (ResolveHandler, void(boost::system::error_code, iterator_type)) async_resolve(implementation_type &impl
 Asynchronously resolve an endpoint to a list of entries. More...
 
const endpoint_type BOOST_ASIO_MOVE_ARG (ResolveHandler) handler)
 
boost::asio::io_serviceget_io_service ()
 Get the io_service object that owns the service. More...
 

Public Attributes

const query_typequery
 
const endpoint_typeendpoint
 

Static Public Attributes

static
boost::asio::detail::service_id
< resolver_service
< InternetProtocol > > 
id
 

Detailed Description

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

Default service implementation for a resolver.

Member Typedef Documentation

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

The endpoint type.

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

The type of a resolver implementation.

template<typename InternetProtocol >
typedef basic_resolver_iterator<InternetProtocol> boost::asio::ip::resolver_service< InternetProtocol >::iterator_type

The iterator type.

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

The protocol type.

template<typename InternetProtocol >
typedef basic_resolver_query<InternetProtocol> boost::asio::ip::resolver_service< InternetProtocol >::query_type

The query type.

Constructor & Destructor Documentation

template<typename InternetProtocol >
boost::asio::ip::resolver_service< InternetProtocol >::resolver_service ( boost::asio::io_service io_service)
inlineexplicit

Construct a new resolver service for the specified io_service.

Member Function Documentation

template<typename InternetProtocol >
template<typename ResolveHandler >
boost::asio::ip::resolver_service< InternetProtocol >::BOOST_ASIO_INITFN_RESULT_TYPE ( ResolveHandler  ,
void(boost::system::error_code, iterator_type  
)

Asynchronously resolve a query to a list of entries.

template<typename InternetProtocol >
template<typename ResolveHandler >
boost::asio::ip::resolver_service< InternetProtocol >::BOOST_ASIO_INITFN_RESULT_TYPE ( ResolveHandler  ,
void(boost::system::error_code, iterator_type  
)

Asynchronously resolve an endpoint to a list of entries.

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

Cancel pending asynchronous operations.

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

Construct a new resolver implementation.

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

Destroy a resolver implementation.

boost::asio::io_service& boost::asio::io_service::service::get_io_service ( )
inherited

Get the io_service object that owns the service.

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

Resolve a query to a list of entries.

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

Resolve an endpoint to a list of entries.

Member Data Documentation

template<typename InternetProtocol >
const endpoint_type& boost::asio::ip::resolver_service< InternetProtocol >::endpoint
boost::asio::detail::service_id<resolver_service< InternetProtocol > > boost::asio::detail::service_base< resolver_service< InternetProtocol > >::id
staticinherited
template<typename InternetProtocol >
const query_type& boost::asio::ip::resolver_service< InternetProtocol >::query

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