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

Public Member Functions

 MyService ()
 
void service_work (DWORD argc, LPWSTR *argv) override
 
void service_stop () override
 
- Public Member Functions inherited from openvpn::Win::Service
 OPENVPN_EXCEPTION (winsvc_error)
 
 Service (const Config &config_arg)
 
virtual ~Service ()=default
 
bool is_service () const
 
void install ()
 
void remove ()
 
void start ()
 
void report_service_running ()
 

Static Private Member Functions

static Config config ()
 
static std::string log_fn ()
 

Private Attributes

std::unique_ptr< openvpn_io::io_context > io_context
 
MyListener::Ptr listener
 
LogBase::Ptr log
 

Detailed Description

Definition at line 885 of file ovpnagent.cpp.

Constructor & Destructor Documentation

◆ MyService()

MyService::MyService ( )
inline

Definition at line 888 of file ovpnagent.cpp.

Member Function Documentation

◆ config()

static Config MyService::config ( )
inlinestaticprivate

Definition at line 969 of file ovpnagent.cpp.

◆ log_fn()

static std::string MyService::log_fn ( )
inlinestaticprivate

Definition at line 979 of file ovpnagent.cpp.

Here is the caller graph for this function:

◆ service_stop()

void MyService::service_stop ( )
inlineoverridevirtual

Implements openvpn::Win::Service.

Definition at line 957 of file ovpnagent.cpp.

◆ service_work()

void MyService::service_work ( DWORD  argc,
LPWSTR *  argv 
)
inlineoverridevirtual

Implements openvpn::Win::Service.

Definition at line 893 of file ovpnagent.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ io_context

std::unique_ptr<openvpn_io::io_context> MyService::io_context
private

Definition at line 987 of file ovpnagent.cpp.

◆ listener

MyListener::Ptr MyService::listener
private

Definition at line 988 of file ovpnagent.cpp.

◆ log

LogBase::Ptr MyService::log
private

Definition at line 989 of file ovpnagent.cpp.


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