...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Provides endpoint resolution functionality.
template< typename InternetProtocol, typename ResolverService = resolver_service<InternetProtocol>> class basic_resolver : public basic_io_object< ResolverService >
Name |
Description |
---|---|
The endpoint type. |
|
The underlying implementation type of I/O object. |
|
The iterator type. |
|
The protocol type. |
|
The query type. |
|
The type of the service that will be used to provide I/O operations. |
Name |
Description |
---|---|
Asynchronously perform forward resolution of a query to a list of entries. Asynchronously perform reverse resolution of an endpoint to a list of entries. |
|
Constructor. |
|
Cancel any asynchronous operations that are waiting on the resolver. |
|
Get the io_service associated with the object. |
|
Perform forward resolution of a query to a list of entries. Perform reverse resolution of an endpoint to a list of entries. |
Name |
Description |
---|---|
Get the underlying implementation of the I/O object. |
|
Get the service associated with the I/O object. |
Name |
Description |
---|---|
(Deprecated: Use get_implementation().) The underlying implementation of the I/O object. |
|
(Deprecated: Use get_service().) The service associated with the I/O object. |
The ip::basic_resolver
class template provides the ability to resolve a query to a list of endpoints.
Distinct objects: Safe.
Shared objects: Unsafe.
Header: boost/asio/ip/basic_resolver.hpp
Convenience header: boost/asio.hpp