Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

ip::basic_resolver

Provides endpoint resolution functionality.

template<
    typename InternetProtocol,
    typename ResolverService = resolver_service<InternetProtocol>>
class basic_resolver :
  public basic_io_object< ResolverService >
Types

Name

Description

endpoint_type

The endpoint type.

implementation_type

The underlying implementation type of I/O object.

iterator

The iterator type.

protocol_type

The protocol type.

query

The query type.

service_type

The type of the service that will be used to provide I/O operations.

Member Functions

Name

Description

async_resolve

Asynchronously perform forward resolution of a query to a list of entries.

Asynchronously perform reverse resolution of an endpoint to a list of entries.

basic_resolver

Constructor.

cancel

Cancel any asynchronous operations that are waiting on the resolver.

get_io_service

Get the io_service associated with the object.

resolve

Perform forward resolution of a query to a list of entries.

Perform reverse resolution of an endpoint to a list of entries.

Protected Member Functions

Name

Description

get_implementation

Get the underlying implementation of the I/O object.

get_service

Get the service associated with the I/O object.

Protected Data Members

Name

Description

implementation

(Deprecated: Use get_implementation().) The underlying implementation of the I/O object.

service

(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.

Thread Safety

Distinct objects: Safe.

Shared objects: Unsafe.

Requirements

Header: boost/asio/ip/basic_resolver.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext