OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::RemoteList::BulkResolve Class Reference

#include <remotelist.hpp>

Inheritance diagram for openvpn::RemoteList::BulkResolve:
[legend]
Collaboration diagram for openvpn::RemoteList::BulkResolve:
[legend]

Classes

struct  NotifyCallback
 

Public Types

typedef RCPtr< BulkResolvePtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 BulkResolve (openvpn_io::io_context &io_context_arg, const RemoteList::Ptr &remote_list_arg, const SessionStats::Ptr &stats_arg)
 
bool work_available () const
 
void start (NotifyCallback *notify_callback_arg)
 
void cancel ()
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_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.
 

Protected Member Functions

void resolve_next ()
 
void resolve_callback (const openvpn_io::error_code &error, results_type results) override
 
- Protected Member Functions inherited from openvpn::AsyncResolvable< RESOLVER_TYPE >
 AsyncResolvable (openvpn_io::io_context &io_context_arg)
 
virtual ~AsyncResolvable ()
 
virtual void async_resolve_name (const std::string &host, const std::string &port)
 
void async_resolve_lock ()
 
void async_resolve_cancel ()
 
 AsyncResolvable (openvpn_io::io_context &io_context_arg)
 
virtual void async_resolve_name (const std::string &host, const std::string &port)
 
void async_resolve_lock ()
 
void async_resolve_cancel ()
 

Protected Attributes

NotifyCallbacknotify_callback
 
RemoteList::Ptr remote_list
 
SessionStats::Ptr stats
 
size_t index
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 
- Protected Types inherited from openvpn::AsyncResolvable< RESOLVER_TYPE >
using resolver_type = RESOLVER_TYPE
 
using results_type = typename RESOLVER_TYPE::results_type
 
using resolver_type = RESOLVER_TYPE
 
using results_type = typename RESOLVER_TYPE::results_type
 

Detailed Description

Definition at line 301 of file remotelist.hpp.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ BulkResolve()

openvpn::RemoteList::BulkResolve::BulkResolve ( openvpn_io::io_context &  io_context_arg,
const RemoteList::Ptr remote_list_arg,
const SessionStats::Ptr stats_arg 
)
inline

Definition at line 314 of file remotelist.hpp.

Member Function Documentation

◆ cancel()

void openvpn::RemoteList::BulkResolve::cancel ( )
inline

Definition at line 350 of file remotelist.hpp.

Here is the caller graph for this function:

◆ resolve_callback()

void openvpn::RemoteList::BulkResolve::resolve_callback ( const openvpn_io::error_code &  error,
results_type  results 
)
inlineoverrideprotectedvirtual

Implements openvpn::AsyncResolvable< RESOLVER_TYPE >.

Definition at line 388 of file remotelist.hpp.

◆ resolve_next()

void openvpn::RemoteList::BulkResolve::resolve_next ( )
inlineprotected

Definition at line 358 of file remotelist.hpp.

Here is the caller graph for this function:

◆ start()

void openvpn::RemoteList::BulkResolve::start ( NotifyCallback notify_callback_arg)
inline

Definition at line 331 of file remotelist.hpp.

◆ work_available()

bool openvpn::RemoteList::BulkResolve::work_available ( ) const
inline

Definition at line 326 of file remotelist.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ index

size_t openvpn::RemoteList::BulkResolve::index
protected

Definition at line 430 of file remotelist.hpp.

◆ notify_callback

NotifyCallback* openvpn::RemoteList::BulkResolve::notify_callback
protected

Definition at line 427 of file remotelist.hpp.

◆ remote_list

RemoteList::Ptr openvpn::RemoteList::BulkResolve::remote_list
protected

Definition at line 428 of file remotelist.hpp.

◆ stats

SessionStats::Ptr openvpn::RemoteList::BulkResolve::stats
protected

Definition at line 429 of file remotelist.hpp.


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