11 #ifndef ASIO_IP_RESOLVER_SERVICE_HPP 12 #define ASIO_IP_RESOLVER_SERVICE_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 25 #if defined(ASIO_WINDOWS_RUNTIME) 37 template <
typename InternetProtocol>
39 #if defined(GENERATING_DOCUMENTATION)
43 resolver_service<InternetProtocol> >
47 #if defined(GENERATING_DOCUMENTATION) 66 #if defined(ASIO_WINDOWS_RUNTIME) 67 typedef asio::detail::winrt_resolver_service<InternetProtocol>
76 #if defined(GENERATING_DOCUMENTATION) 86 service_impl_(io_service)
105 service_impl_.
cancel(impl);
109 iterator_type
resolve(implementation_type& impl,
const query_type&
query,
112 return service_impl_.
resolve(impl, query, ec);
116 template <
typename ResolveHandler>
119 async_resolve(implementation_type& impl, const query_type&
query,
135 return service_impl_.
resolve(impl, endpoint, ec);
139 template <
typename ResolveHandler>
156 void shutdown_service()
176 #endif // ASIO_IP_RESOLVER_SERVICE_HPP ASIO_DECL void destroy(implementation_type &)
ASIO_DECL void construct(implementation_type &impl)
An query to be passed to a resolver.
Class used to uniquely identify a service.
Provides core I/O functionality.
asio::basic_streambuf< Allocator > MatchCondition enable_if< is_match_condition< MatchCondition >::value >::type *detail::async_result_init< ReadHandler, void(asio::error_code, std::size_t)> init(ASIO_MOVE_CAST(ReadHandler)(handler))
void destroy(implementation_type &impl)
Destroy a resolver implementation.
service_impl_type::implementation_type implementation_type
The type of a resolver implementation.
void async_resolve(implementation_type &impl, const query_type &query, Handler &handler)
iterator_type resolve(implementation_type &impl, const query_type &query, asio::error_code &ec)
Resolve a query to a list of entries.
resolver_service(asio::io_service &io_service)
Construct a new resolver service for the specified io_service.
ASIO_DECL void fork_service(asio::io_service::fork_event fork_ev)
ASIO_DECL void cancel(implementation_type &impl)
void construct(implementation_type &impl)
Construct a new resolver implementation.
ASIO_INITFN_RESULT_TYPE(ResolveHandler, void(asio::error_code, iterator_type)) async_resolve(implementation_type &impl
Asynchronously resolve a query to a list of entries.
void cancel(implementation_type &impl)
Cancel pending asynchronous operations.
fork_event
Fork-related event notifications.
iterator_type resolve(implementation_type &impl, const endpoint_type &endpoint, asio::error_code &ec)
Resolve an endpoint to a list of entries.
Class to represent an error code value.
socket_ops::shared_cancel_token_type implementation_type
An iterator over the entries produced by a resolver.
static asio::detail::service_id< resolver_service< InternetProtocol > > id
const endpoint_type & endpoint
Default service implementation for a resolver.
handler_type< Handler, Signature >::type handler
const query_type ASIO_MOVE_ARG(ResolveHandler) handler)
InternetProtocol::endpoint endpoint_type
The endpoint type.
#define ASIO_MOVE_CAST(type)
async_result< typename handler_type< Handler, Signature >::type > result
service_base(asio::io_service &io_service)
Base class for all io_service services.
ASIO_DECL void shutdown_service()
basic_resolver_query< InternetProtocol > query_type
The query type.
basic_resolver_iterator< InternetProtocol > iterator_type
The iterator type.
iterator_type resolve(implementation_type &, const query_type &query, asio::error_code &ec)
InternetProtocol protocol_type
The protocol type.