OpenVPN 3 Core Library
|
#include <iostream>
#include <string>
#include <utility>
#include <unistd.h>
#include <openvpn/common/stringize.hpp>
#include <openvpn/log/logbase.hpp>
#include <openvpn/common/platform.hpp>
#include <openvpn/common/size.hpp>
#include <openvpn/common/exception.hpp>
#include <openvpn/common/rc.hpp>
#include <openvpn/common/runcontext.hpp>
#include <openvpn/common/file.hpp>
#include <openvpn/common/getopt.hpp>
#include <openvpn/common/scoped_fd.hpp>
#include <openvpn/common/daemon.hpp>
#include <openvpn/common/waitbarrier.hpp>
#include <openvpn/common/usergroup.hpp>
#include <openvpn/common/xmitfd.hpp>
#include <openvpn/buffer/bufstr.hpp>
#include <openvpn/buffer/buflist.hpp>
#include <openvpn/init/initprocess.hpp>
#include <openvpn/ssl/sslchoose.hpp>
#include <openvpn/ws/httpserv.hpp>
#include <openvpn/tun/mac/client/tunsetup.hpp>
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, MySessionStats > | MyRunContext |
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[]) |
#define HTTP_SERVER_VERSION "0.1.1" |
Definition at line 29 of file ovpnagent.cpp.
#define OVPNAGENT_NAME_STRING "ovpnagent" |
Definition at line 35 of file ovpnagent.cpp.
typedef RunContext<ServerThreadBase, MySessionStats> MyRunContext |
Definition at line 588 of file ovpnagent.cpp.
void log_version | ( | ) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 692 of file ovpnagent.cpp.
OPENVPN_SIMPLE_EXCEPTION | ( | usage | ) |
int ovpnagent | ( | const char * | sock_fn, |
const char * | log_fn, | ||
const bool | log_append, | ||
const char * | pid_fn, | ||
const char * | user, | ||
const char * | group | ||
) |
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 | ||
) |
Definition at line 627 of file ovpnagent.cpp.