OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::WS::ClientSet::HostRetry Class Reference

#include <httpcliset.hpp>

Inheritance diagram for openvpn::WS::ClientSet::HostRetry:
[legend]
Collaboration diagram for openvpn::WS::ClientSet::HostRetry:
[legend]

Public Types

typedef RCPtr< HostRetryPtr
 
- Public Types inherited from openvpn::WS::ClientSet::ErrorRecovery
typedef RCPtr< ErrorRecoveryPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 HostRetry ()
 
template<typename T , typename... Args>
 HostRetry (T first, Args... args)
 
void shuffle (RandomAPI &prng)
 
std::string next_host ()
 
virtual void retry (TransactionSet &ts, Transaction &t) override
 
- 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.
 

Private Member Functions

void from_list (std::string arg)
 
void from_list (const char *arg)
 
template<typename T , typename... Args>
void from_list (T first, Args... args)
 

Private Attributes

size_t index = 0
 

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.
 

Detailed Description

Definition at line 430 of file httpcliset.hpp.

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ HostRetry() [1/2]

openvpn::WS::ClientSet::HostRetry::HostRetry ( )
inline

Definition at line 436 of file httpcliset.hpp.

◆ HostRetry() [2/2]

template<typename T , typename... Args>
openvpn::WS::ClientSet::HostRetry::HostRetry ( first,
Args...  args 
)
inline

Definition at line 441 of file httpcliset.hpp.

Member Function Documentation

◆ from_list() [1/3]

void openvpn::WS::ClientSet::HostRetry::from_list ( const char *  arg)
inlineprivate

Definition at line 473 of file httpcliset.hpp.

◆ from_list() [2/3]

void openvpn::WS::ClientSet::HostRetry::from_list ( std::string  arg)
inlineprivate

Definition at line 468 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ from_list() [3/3]

template<typename T , typename... Args>
void openvpn::WS::ClientSet::HostRetry::from_list ( first,
Args...  args 
)
inlineprivate

Definition at line 479 of file httpcliset.hpp.

◆ next_host()

std::string openvpn::WS::ClientSet::HostRetry::next_host ( )
inline

Definition at line 453 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ retry()

virtual void openvpn::WS::ClientSet::HostRetry::retry ( TransactionSet ts,
Transaction t 
)
inlineoverridevirtual

Implements openvpn::WS::ClientSet::ErrorRecovery.

Definition at line 462 of file httpcliset.hpp.

◆ shuffle()

void openvpn::WS::ClientSet::HostRetry::shuffle ( RandomAPI prng)
inline

Definition at line 447 of file httpcliset.hpp.

Member Data Documentation

◆ index

size_t openvpn::WS::ClientSet::HostRetry::index = 0
private

Definition at line 485 of file httpcliset.hpp.


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