12#ifndef OPENVPN_CLIENT_ASYNC_RESOLVE_GENERIC_H
13#define OPENVPN_CLIENT_ASYNC_RESOLVE_GENERIC_H
21template <
typename RESOLVER_TYPE>
22class AsyncResolvable :
public virtual RC<thread_unsafe_refcount>
54 [self =
Ptr(
this)](
const openvpn_io::error_code &error,
results_type results)
57 self->resolve_callback(error, results); });
#define OPENVPN_ASYNC_HANDLER
RESOLVER_TYPE resolver_type
void async_resolve_cancel()
AsyncResolvable(openvpn_io::io_context &io_context_arg)
void async_resolve_lock()
RCPtr< AsyncResolvable > Ptr
openvpn_io::io_context & io_context
typename RESOLVER_TYPE::results_type results_type
virtual void async_resolve_name(const std::string &host, const std::string &port)
virtual void resolve_callback(const openvpn_io::error_code &error, results_type results)=0