OpenVPN 3 Core Library
Loading...
Searching...
No Matches
ovpnagent.cpp File Reference
Include dependency graph for ovpnagent.cpp:

Go to the source code of this file.

Classes

class  MySessionStats
 
struct  ThreadCommon
 
class  MyListener
 
class  MyListener::WatchdogThread
 
class  MyClientInstance
 
class  MyClientFactory
 
class  ServerThread
 

Macros

#define HTTP_SERVER_VERSION   "0.1.1"
 
#define OVPNAGENT_NAME_STRING   "ovpnagent"
 

Typedefs

typedef RunContext< ServerThreadBase, MySessionStatsMyRunContext
 

Functions

void log_version ()
 
void work (openvpn_io::io_context &io_context, ThreadCommon &tc, MyRunContext &runctx, const unsigned int unit)
 
void worker_thread (ThreadCommon &tc, MyRunContext &runctx, const unsigned int unit)
 
int ovpnagent (const char *sock_fn, const char *log_fn, const bool log_append, const char *pid_fn, const char *user, const char *group)
 
 OPENVPN_SIMPLE_EXCEPTION (usage)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ HTTP_SERVER_VERSION

#define HTTP_SERVER_VERSION   "0.1.1"

Definition at line 29 of file ovpnagent.cpp.

◆ OVPNAGENT_NAME_STRING

#define OVPNAGENT_NAME_STRING   "ovpnagent"

Definition at line 35 of file ovpnagent.cpp.

Typedef Documentation

◆ MyRunContext

Function Documentation

◆ log_version()

void log_version ( )

Definition at line 59 of file ovpnagent.cpp.

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 692 of file ovpnagent.cpp.

◆ OPENVPN_SIMPLE_EXCEPTION()

OPENVPN_SIMPLE_EXCEPTION ( usage  )

◆ ovpnagent()

int ovpnagent ( const char *  sock_fn,
const char *  log_fn,
const bool  log_append,
const char *  pid_fn,
const char *  user,
const char *  group 
)

Definition at line 646 of file ovpnagent.cpp.

Here is the caller graph for this function:

◆ work()

void work ( openvpn_io::io_context &  io_context,
ThreadCommon tc,
MyRunContext runctx,
const unsigned int  unit 
)

Definition at line 590 of file ovpnagent.cpp.

Here is the caller graph for this function:

◆ worker_thread()

void worker_thread ( ThreadCommon tc,
MyRunContext runctx,
const unsigned int  unit 
)

Definition at line 627 of file ovpnagent.cpp.