asio C++ library

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.

executor_type

The type of the executor associated with the object.

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_executor

Get the executor associated with the object.

get_io_service

(Deprecated: Use get_executor().) 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.

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: asio/ip/basic_resolver.hpp

Convenience header: asio.hpp


PrevUpHomeNext