OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread Class Reference
Inheritance diagram for openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread:
[legend]
Collaboration diagram for openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread:
[legend]

Private Types

typedef RCPtr< ResolveThreadPtr
 

Private Member Functions

 ResolveThread (openvpn_io::io_context &io_context_arg, AsyncResolvable< RESOLVER_TYPE > *parent_arg, const std::string &host, const std::string &port)
 
void detach ()
 
bool is_detached () const
 
void post_callback (typename RESOLVER_TYPE::results_type results, openvpn_io::error_code error)
 

Private Attributes

openvpn_io::io_context & io_context
 
AsyncResolvable< RESOLVER_TYPE > * parent
 
std::atomic< bool > detached {false}
 

Friends

class AsyncResolvable< RESOLVER_TYPE >
 

Additional Inherited Members

- Public Types inherited from openvpn::RC< thread_safe_refcount >
typedef RCPtr< RCPtr
 
- Public Member Functions inherited from openvpn::RC< thread_safe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 
- Static Public Member Functions inherited from openvpn::RC< thread_safe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

template<typename RESOLVER_TYPE>
class openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread

Definition at line 30 of file asio.hpp.

Member Typedef Documentation

◆ Ptr

template<typename RESOLVER_TYPE >
typedef RCPtr<ResolveThread> openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread::Ptr
private

Definition at line 35 of file asio.hpp.

Constructor & Destructor Documentation

◆ ResolveThread()

template<typename RESOLVER_TYPE >
openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread::ResolveThread ( openvpn_io::io_context &  io_context_arg,
AsyncResolvable< RESOLVER_TYPE > *  parent_arg,
const std::string &  host,
const std::string &  port 
)
inlineprivate

Definition at line 41 of file asio.hpp.

Member Function Documentation

◆ detach()

template<typename RESOLVER_TYPE >
void openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread::detach ( )
inlineprivate

Definition at line 65 of file asio.hpp.

Here is the caller graph for this function:

◆ is_detached()

template<typename RESOLVER_TYPE >
bool openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread::is_detached ( ) const
inlineprivate

Definition at line 71 of file asio.hpp.

◆ post_callback()

template<typename RESOLVER_TYPE >
void openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread::post_callback ( typename RESOLVER_TYPE::results_type  results,
openvpn_io::error_code  error 
)
inlineprivate

Definition at line 76 of file asio.hpp.

Friends And Related Symbol Documentation

◆ AsyncResolvable< RESOLVER_TYPE >

template<typename RESOLVER_TYPE >
friend class AsyncResolvable< RESOLVER_TYPE >
friend

Definition at line 142 of file asio.hpp.

Member Data Documentation

◆ detached

template<typename RESOLVER_TYPE >
std::atomic<bool> openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread::detached {false}
private

Definition at line 39 of file asio.hpp.

◆ io_context

template<typename RESOLVER_TYPE >
openvpn_io::io_context& openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread::io_context
private

Definition at line 37 of file asio.hpp.

◆ parent

template<typename RESOLVER_TYPE >
AsyncResolvable<RESOLVER_TYPE>* openvpn::AsyncResolvable< RESOLVER_TYPE >::ResolveThread::parent
private

Definition at line 38 of file asio.hpp.


The documentation for this class was generated from the following file: