OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::UnixCommandAgent::SetupClient Class Reference
Inheritance diagram for openvpn::UnixCommandAgent::SetupClient:
[legend]
Collaboration diagram for openvpn::UnixCommandAgent::SetupClient:
[legend]

Public Member Functions

 SetupClient (const Config::Ptr &config_arg)
 
- Public Member Functions inherited from openvpn::DestructorBase
virtual ~DestructorBase ()=default
 
- 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.
 

Static Public Member Functions

static WS::ClientSet::TransactionSet::Ptr new_transaction_set (const std::string &host, int debug_level)
 
static void make_transaction (const std::string &method, const std::string &content, const bool keepalive, WS::ClientSet::TransactionSet::Ptr ts)
 
- 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.
 

Private Member Functions

int establish (const TunBuilderCapture &pull, TunBuilderSetup::Config *tbs_config, Stop *stop, std::ostream &os) override
 
void destroy (std::ostream &os) override
 
Json::Value get_json_result (std::ostream &os, WS::ClientSet::TransactionSet &ts)
 

Private Attributes

Config::Ptr config
 

Additional Inherited Members

- Public Types inherited from openvpn::TunBuilderSetup::Base
typedef RCPtr< BasePtr
 
- Public Types inherited from openvpn::DestructorBase
typedef RCPtr< DestructorBasePtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Detailed Description

Definition at line 89 of file cmdagent.hpp.

Constructor & Destructor Documentation

◆ SetupClient()

openvpn::UnixCommandAgent::SetupClient::SetupClient ( const Config::Ptr config_arg)
inline

Definition at line 92 of file cmdagent.hpp.

Member Function Documentation

◆ destroy()

void openvpn::UnixCommandAgent::SetupClient::destroy ( std::ostream &  os)
inlineoverrideprivatevirtual

Implements openvpn::DestructorBase.

Definition at line 216 of file cmdagent.hpp.

◆ establish()

int openvpn::UnixCommandAgent::SetupClient::establish ( const TunBuilderCapture pull,
TunBuilderSetup::Config tbs_config,
Stop stop,
std::ostream &  os 
)
inlineoverrideprivatevirtual

Implements openvpn::TunBuilderSetup::Base.

Definition at line 141 of file cmdagent.hpp.

◆ get_json_result()

Json::Value openvpn::UnixCommandAgent::SetupClient::get_json_result ( std::ostream &  os,
WS::ClientSet::TransactionSet ts 
)
inlineprivate

Definition at line 242 of file cmdagent.hpp.

Here is the caller graph for this function:

◆ make_transaction()

static void openvpn::UnixCommandAgent::SetupClient::make_transaction ( const std::string &  method,
const std::string &  content,
const bool  keepalive,
WS::ClientSet::TransactionSet::Ptr  ts 
)
inlinestatic

Definition at line 126 of file cmdagent.hpp.

Here is the caller graph for this function:

◆ new_transaction_set()

static WS::ClientSet::TransactionSet::Ptr openvpn::UnixCommandAgent::SetupClient::new_transaction_set ( const std::string &  host,
int  debug_level 
)
inlinestatic

Definition at line 97 of file cmdagent.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ config

Config::Ptr openvpn::UnixCommandAgent::SetupClient::config
private

Definition at line 283 of file cmdagent.hpp.


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