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

Public Member Functions

 WatchdogThread (MyListener *parent_arg, openvpn_io::io_context &io_context_arg)
 
 ~WatchdogThread ()
 
void watch (pid_t pid)
 
void unwatch ()
 
- Public Member Functions inherited from openvpn::RC< thread_safe_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 Types

typedef RCPtr< WatchdogThreadPtr
 

Private Member Functions

void close_pipe_fds ()
 

Private Attributes

MyListenerparent
 
pid_t client_pid = -1
 
openvpn_io::io_context & io_context
 
int kq
 
int fds [2]
 
std::thread th
 

Friends

class MyListener
 

Additional Inherited Members

- Public Types inherited from openvpn::RC< thread_safe_refcount >
typedef RCPtr< RCPtr
 
- Static Public Member Functions inherited from openvpn::RC< thread_safe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 126 of file ovpnagent.cpp.

Member Typedef Documentation

◆ Ptr

Definition at line 129 of file ovpnagent.cpp.

Constructor & Destructor Documentation

◆ WatchdogThread()

MyListener::WatchdogThread::WatchdogThread ( MyListener parent_arg,
openvpn_io::io_context &  io_context_arg 
)
inline

Definition at line 135 of file ovpnagent.cpp.

◆ ~WatchdogThread()

MyListener::WatchdogThread::~WatchdogThread ( )
inline

Definition at line 140 of file ovpnagent.cpp.

Member Function Documentation

◆ close_pipe_fds()

void MyListener::WatchdogThread::close_pipe_fds ( )
inlineprivate

Definition at line 238 of file ovpnagent.cpp.

Here is the caller graph for this function:

◆ unwatch()

void MyListener::WatchdogThread::unwatch ( )
inline

Definition at line 226 of file ovpnagent.cpp.

Here is the caller graph for this function:

◆ watch()

void MyListener::WatchdogThread::watch ( pid_t  pid)
inline

Definition at line 152 of file ovpnagent.cpp.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ MyListener

friend class MyListener
friend

Definition at line 131 of file ovpnagent.cpp.

Member Data Documentation

◆ client_pid

pid_t MyListener::WatchdogThread::client_pid = -1
private

Definition at line 244 of file ovpnagent.cpp.

◆ fds

int MyListener::WatchdogThread::fds[2]
private

Definition at line 247 of file ovpnagent.cpp.

◆ io_context

openvpn_io::io_context& MyListener::WatchdogThread::io_context
private

Definition at line 245 of file ovpnagent.cpp.

◆ kq

int MyListener::WatchdogThread::kq
private

Definition at line 246 of file ovpnagent.cpp.

◆ parent

MyListener* MyListener::WatchdogThread::parent
private

Definition at line 132 of file ovpnagent.cpp.

◆ th

std::thread MyListener::WatchdogThread::th
private

Definition at line 248 of file ovpnagent.cpp.


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