boost::corosio::native_resolver

An asynchronous DNS resolver with devirtualized operations.

Synopsis

template<auto Backend>
class native_resolver
    : public resolver

Description

This class template inherits from resolver and shadows the resolve operations with versions that call the backend implementation directly, allowing the compiler to inline through the entire call chain.

Non‐async operations (cancel) remain unchanged and dispatch through the compiled library.

A native_resolver IS‐A resolver and can be passed to any function expecting resolver&.

Thread Safety

Same as resolver.

Base Classes

Name

Description

resolver

An asynchronous DNS resolver for coroutine I/O.

Types

Name

Description

handle

RAII wrapper for I/O object implementation lifetime.

implementation

Backend interface for DNS resolution operations.

io_service

Service interface for I/O object lifecycle management.

Member Functions

Name

Description

native_resolver [constructor] [deleted]

Constructors

operator= [deleted]

Assignment operators

cancel

Cancel any pending asynchronous operations.

context

Return the execution context.

resolve

resolve overloads

Protected Member Functions

Name

Description

operator= [deleted]

Move assign from another I/O object.

Protected Static Member Functions

Name

Description

create_handle

Create a handle bound to a service found in the context.

Protected Data Members

Name

Description

h_

The platform I/O handle owned by this object.

Template Parameters

Name

Description

Backend

A backend tag value (e.g., epoll).

See Also

resolver, epoll_t, iocp_t

Created with MrDocs