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

Public Member Functions

 SetupClient (openvpn_io::io_context &io_context, const Config::Ptr &config_arg)
 
- Public Member Functions inherited from openvpn::TunWin::SetupBase
 OPENVPN_EXCEPTION (tun_win_setup)
 
virtual DWORD vpn_interface_index () const
 
- 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

template<class T >
static WS::ClientSet::TransactionSet::Ptr new_transaction_set (const std::string &host, int debug_level, const std::string &client_exe, T cb)
 
static void make_transaction (const std::string &method, const std::string &content, 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

HANDLE get_handle (std::ostream &os) override
 
void set_adapter_state (const TunWin::Util::TapNameGuidPair &tap) override
 
TunWin::Util::TapNameGuidPair get_adapter_state () override
 
HANDLE establish (const TunBuilderCapture &pull, const std::wstring &openvpn_app_path, Stop *stop, std::ostream &os, TunWin::RingBuffer::Ptr ring_buffer) override
 
void l2_finish (const TunBuilderCapture &pull, Stop *stop, std::ostream &os) override
 
bool l2_ready (const TunBuilderCapture &pull) override
 
void confirm () override
 
void set_service_fail_handler (std::function< void()> &&handler) override
 
void destroy (std::ostream &os) override
 
Json::Value get_json_result (std::ostream &os, WS::ClientSet::TransactionSet &ts)
 

Private Attributes

TunWin::Util::TapNameGuidPair tap_
 
Config::Ptr config
 
openvpn_io::windows::object_handle service_process
 
Win::Event confirm_event
 
Win::DestroyEvent destroy_event
 

Additional Inherited Members

- Public Types inherited from openvpn::TunWin::SetupBase
typedef RCPtr< SetupBasePtr
 
- 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 85 of file cmdagent.hpp.

Constructor & Destructor Documentation

◆ SetupClient()

openvpn::WinCommandAgent::SetupClient::SetupClient ( openvpn_io::io_context &  io_context,
const Config::Ptr config_arg 
)
inline

Definition at line 88 of file cmdagent.hpp.

Member Function Documentation

◆ confirm()

void openvpn::WinCommandAgent::SetupClient::confirm ( )
inlineoverrideprivatevirtual

Reimplemented from openvpn::TunWin::SetupBase.

Definition at line 265 of file cmdagent.hpp.

◆ destroy()

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

Implements openvpn::DestructorBase.

Definition at line 281 of file cmdagent.hpp.

◆ establish()

HANDLE openvpn::WinCommandAgent::SetupClient::establish ( const TunBuilderCapture pull,
const std::wstring &  openvpn_app_path,
Stop stop,
std::ostream &  os,
TunWin::RingBuffer::Ptr  ring_buffer 
)
inlineoverrideprivatevirtual

Implements openvpn::TunWin::SetupBase.

Definition at line 193 of file cmdagent.hpp.

◆ get_adapter_state()

TunWin::Util::TapNameGuidPair openvpn::WinCommandAgent::SetupClient::get_adapter_state ( )
inlineoverrideprivatevirtual

Implements openvpn::TunWin::SetupBase.

Definition at line 188 of file cmdagent.hpp.

◆ get_handle()

HANDLE openvpn::WinCommandAgent::SetupClient::get_handle ( std::ostream &  os)
inlineoverrideprivatevirtual

Implements openvpn::TunWin::SetupBase.

Definition at line 138 of file cmdagent.hpp.

◆ get_json_result()

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

Definition at line 288 of file cmdagent.hpp.

Here is the caller graph for this function:

◆ l2_finish()

void openvpn::WinCommandAgent::SetupClient::l2_finish ( const TunBuilderCapture pull,
Stop stop,
std::ostream &  os 
)
inlineoverrideprivatevirtual

Implements openvpn::TunWin::SetupBase.

Definition at line 253 of file cmdagent.hpp.

◆ l2_ready()

bool openvpn::WinCommandAgent::SetupClient::l2_ready ( const TunBuilderCapture pull)
inlineoverrideprivatevirtual

Implements openvpn::TunWin::SetupBase.

Definition at line 260 of file cmdagent.hpp.

◆ make_transaction()

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

Definition at line 127 of file cmdagent.hpp.

Here is the caller graph for this function:

◆ new_transaction_set()

template<class T >
static WS::ClientSet::TransactionSet::Ptr openvpn::WinCommandAgent::SetupClient::new_transaction_set ( const std::string &  host,
int  debug_level,
const std::string &  client_exe,
cb 
)
inlinestatic

Definition at line 96 of file cmdagent.hpp.

Here is the caller graph for this function:

◆ set_adapter_state()

void openvpn::WinCommandAgent::SetupClient::set_adapter_state ( const TunWin::Util::TapNameGuidPair tap)
inlineoverrideprivatevirtual

Implements openvpn::TunWin::SetupBase.

Definition at line 183 of file cmdagent.hpp.

◆ set_service_fail_handler()

void openvpn::WinCommandAgent::SetupClient::set_service_fail_handler ( std::function< void()> &&  handler)
inlineoverrideprivatevirtual

Reimplemented from openvpn::TunWin::SetupBase.

Definition at line 270 of file cmdagent.hpp.

Member Data Documentation

◆ config

Config::Ptr openvpn::WinCommandAgent::SetupClient::config
private

Definition at line 337 of file cmdagent.hpp.

◆ confirm_event

Win::Event openvpn::WinCommandAgent::SetupClient::confirm_event
private

Definition at line 339 of file cmdagent.hpp.

◆ destroy_event

Win::DestroyEvent openvpn::WinCommandAgent::SetupClient::destroy_event
private

Definition at line 340 of file cmdagent.hpp.

◆ service_process

openvpn_io::windows::object_handle openvpn::WinCommandAgent::SetupClient::service_process
private

Definition at line 338 of file cmdagent.hpp.

◆ tap_

TunWin::Util::TapNameGuidPair openvpn::WinCommandAgent::SetupClient::tap_
private

Definition at line 181 of file cmdagent.hpp.


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