OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::ClientAPI::Private::ClientState Class Reference
Collaboration diagram for openvpn::ClientAPI::Private::ClientState:
[legend]

Public Member Functions

template<typename SESSION_STATS , typename CLIENT_EVENTS >
void attach (OpenVPNClient *parent, openvpn_io::io_context *io_context, Stop *async_stop_global)
 
 ClientState ()
 
 ~ClientState ()
 
void enable_foreign_thread_access ()
 
bool is_foreign_thread_access ()
 
openvpn_io::io_context * io_context ()
 
Stopasync_stop_local ()
 
Stopasync_stop_global ()
 
void trigger_async_stop_local ()
 
void on_disconnect ()
 
void setup_async_stop_scopes ()
 

Public Attributes

OptionList options
 
EvalConfig eval
 
MySocketProtect socket_protect
 
MyReconnectNotify reconnect_notify
 
MyRemoteOverride remote_override
 
ClientCreds::Ptr creds
 
MySessionStats::Ptr stats
 
MyClientEvents::Ptr events
 
ClientConnect::Ptr session
 
std::unique_ptr< MyClockTickclock_tick
 
ClientConfigParsed clientconf
 
ProtoContextCompressionOptions::Ptr proto_context_options
 
PeerInfo::Set::Ptr extra_peer_info
 
HTTPProxyTransport::Options::Ptr http_proxy_options
 
InitProcess::Init init
 

Private Member Functions

 ClientState (const ClientState &)=delete
 
ClientStateoperator= (const ClientState &)=delete
 

Private Attributes

bool attach_called = false
 
Stop async_stop_local_
 
Stopasync_stop_global_ = nullptr
 
std::unique_ptr< AsioStopScopestop_scope_local
 
std::unique_ptr< AsioStopScopestop_scope_global
 
openvpn_io::io_context * io_context_ = nullptr
 
bool io_context_owned = false
 
std::atomic< bool > foreign_thread_ready {false}
 

Detailed Description

Definition at line 428 of file ovpncli.cpp.

Constructor & Destructor Documentation

◆ ClientState() [1/2]

openvpn::ClientAPI::Private::ClientState::ClientState ( )
inline

Definition at line 496 of file ovpncli.cpp.

◆ ~ClientState()

openvpn::ClientAPI::Private::ClientState::~ClientState ( )
inline

Definition at line 500 of file ovpncli.cpp.

◆ ClientState() [2/2]

openvpn::ClientAPI::Private::ClientState::ClientState ( const ClientState )
privatedelete

Member Function Documentation

◆ async_stop_global()

Stop * openvpn::ClientAPI::Private::ClientState::async_stop_global ( )
inline

Definition at line 544 of file ovpncli.cpp.

Here is the caller graph for this function:

◆ async_stop_local()

Stop * openvpn::ClientAPI::Private::ClientState::async_stop_local ( )
inline

Definition at line 539 of file ovpncli.cpp.

Here is the caller graph for this function:

◆ attach()

template<typename SESSION_STATS , typename CLIENT_EVENTS >
void openvpn::ClientAPI::Private::ClientState::attach ( OpenVPNClient parent,
openvpn_io::io_context *  io_context,
Stop async_stop_global 
)
inline

Definition at line 457 of file ovpncli.cpp.

Here is the caller graph for this function:

◆ enable_foreign_thread_access()

void openvpn::ClientAPI::Private::ClientState::enable_foreign_thread_access ( )
inline

Definition at line 520 of file ovpncli.cpp.

Here is the caller graph for this function:

◆ io_context()

openvpn_io::io_context * openvpn::ClientAPI::Private::ClientState::io_context ( )
inline

Definition at line 532 of file ovpncli.cpp.

Here is the caller graph for this function:

◆ is_foreign_thread_access()

bool openvpn::ClientAPI::Private::ClientState::is_foreign_thread_access ( )
inline

Definition at line 525 of file ovpncli.cpp.

Here is the caller graph for this function:

◆ on_disconnect()

void openvpn::ClientAPI::Private::ClientState::on_disconnect ( )
inline

Definition at line 555 of file ovpncli.cpp.

Here is the caller graph for this function:

◆ operator=()

ClientState & openvpn::ClientAPI::Private::ClientState::operator= ( const ClientState )
privatedelete

◆ setup_async_stop_scopes()

void openvpn::ClientAPI::Private::ClientState::setup_async_stop_scopes ( )
inline

Definition at line 561 of file ovpncli.cpp.

Here is the caller graph for this function:

◆ trigger_async_stop_local()

void openvpn::ClientAPI::Private::ClientState::trigger_async_stop_local ( )
inline

Definition at line 549 of file ovpncli.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ async_stop_global_

Stop* openvpn::ClientAPI::Private::ClientState::async_stop_global_ = nullptr
private

Definition at line 581 of file ovpncli.cpp.

◆ async_stop_local_

Stop openvpn::ClientAPI::Private::ClientState::async_stop_local_
private

Definition at line 580 of file ovpncli.cpp.

◆ attach_called

bool openvpn::ClientAPI::Private::ClientState::attach_called = false
private

Definition at line 578 of file ovpncli.cpp.

◆ clientconf

ClientConfigParsed openvpn::ClientAPI::Private::ClientState::clientconf

Definition at line 444 of file ovpncli.cpp.

◆ clock_tick

std::unique_ptr<MyClockTick> openvpn::ClientAPI::Private::ClientState::clock_tick

Definition at line 441 of file ovpncli.cpp.

◆ creds

ClientCreds::Ptr openvpn::ClientAPI::Private::ClientState::creds

Definition at line 437 of file ovpncli.cpp.

◆ eval

EvalConfig openvpn::ClientAPI::Private::ClientState::eval

Definition at line 433 of file ovpncli.cpp.

◆ events

MyClientEvents::Ptr openvpn::ClientAPI::Private::ClientState::events

Definition at line 439 of file ovpncli.cpp.

◆ extra_peer_info

PeerInfo::Set::Ptr openvpn::ClientAPI::Private::ClientState::extra_peer_info

Definition at line 447 of file ovpncli.cpp.

◆ foreign_thread_ready

std::atomic<bool> openvpn::ClientAPI::Private::ClientState::foreign_thread_ready {false}
private

Definition at line 589 of file ovpncli.cpp.

◆ http_proxy_options

HTTPProxyTransport::Options::Ptr openvpn::ClientAPI::Private::ClientState::http_proxy_options

Definition at line 448 of file ovpncli.cpp.

◆ init

InitProcess::Init openvpn::ClientAPI::Private::ClientState::init

Definition at line 454 of file ovpncli.cpp.

◆ io_context_

openvpn_io::io_context* openvpn::ClientAPI::Private::ClientState::io_context_ = nullptr
private

Definition at line 586 of file ovpncli.cpp.

◆ io_context_owned

bool openvpn::ClientAPI::Private::ClientState::io_context_owned = false
private

Definition at line 587 of file ovpncli.cpp.

◆ options

OptionList openvpn::ClientAPI::Private::ClientState::options

Definition at line 432 of file ovpncli.cpp.

◆ proto_context_options

ProtoContextCompressionOptions::Ptr openvpn::ClientAPI::Private::ClientState::proto_context_options

Definition at line 446 of file ovpncli.cpp.

◆ reconnect_notify

MyReconnectNotify openvpn::ClientAPI::Private::ClientState::reconnect_notify

Definition at line 435 of file ovpncli.cpp.

◆ remote_override

MyRemoteOverride openvpn::ClientAPI::Private::ClientState::remote_override

Definition at line 436 of file ovpncli.cpp.

◆ session

ClientConnect::Ptr openvpn::ClientAPI::Private::ClientState::session

Definition at line 440 of file ovpncli.cpp.

◆ socket_protect

MySocketProtect openvpn::ClientAPI::Private::ClientState::socket_protect

Definition at line 434 of file ovpncli.cpp.

◆ stats

MySessionStats::Ptr openvpn::ClientAPI::Private::ClientState::stats

Definition at line 438 of file ovpncli.cpp.

◆ stop_scope_global

std::unique_ptr<AsioStopScope> openvpn::ClientAPI::Private::ClientState::stop_scope_global
private

Definition at line 584 of file ovpncli.cpp.

◆ stop_scope_local

std::unique_ptr<AsioStopScope> openvpn::ClientAPI::Private::ClientState::stop_scope_local
private

Definition at line 583 of file ovpncli.cpp.


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