#include <local_warning_server.hpp>
Public Member Functions | |
| LocalWarningServer (int http_port=81, int https_port=444, const std::string &bind_address="127.0.0.2", const std::string &cert_file="", const std::string &key_file="", const std::string &page_warning_path="") | |
| ~LocalWarningServer () | |
| void | start () |
| void | stop () |
Static Private Member Functions | |
| static void | on_request (SoupServer *, SoupServerMessage *, const char *, GHashTable *, gpointer) |
Private Attributes | |
| SoupServer * | server_ |
| int | http_port_ |
| int | https_port_ |
| std::string | bind_address_ |
| std::string | cert_file_ |
| std::string | key_file_ |
| std::string | page_warning_path_ |
| bool | running_ |
| GMainLoop * | loop_ |
| std::thread | loop_thread_ |
Definition at line 27 of file local_warning_server.hpp.
| LocalWarningServer::LocalWarningServer | ( | int | http_port = 81, |
| int | https_port = 444, | ||
| const std::string & | bind_address = "127.0.0.2", | ||
| const std::string & | cert_file = "", | ||
| const std::string & | key_file = "", | ||
| const std::string & | page_warning_path = "" ) |
Definition at line 234 of file local_warning_server.cpp.
References BastionGuard_LOCAL_WARNING_IP, BastionGuard_WARNING_DEFAULT_HTTP, BastionGuard_WARNING_DEFAULT_HTTPS, bind_address_, cert_file_, http_port_, https_port_, key_file_, loop_, page_warning_path_, running_, and server_.
Referenced by on_request().
| LocalWarningServer::~LocalWarningServer | ( | ) |
Definition at line 251 of file local_warning_server.cpp.
References stop().
|
staticprivate |
Definition at line 319 of file local_warning_server.cpp.
References _, BastionGuard_LOCAL_WARNING_IP, clean_domain(), extract_host(), html_escape(), is_trusted_domain(), and LocalWarningServer().
Referenced by start().
| void LocalWarningServer::start | ( | ) |
Definition at line 255 of file local_warning_server.cpp.
References _, bind_address_, cert_file_, http_port_, https_port_, key_file_, listen_one(), loop_, loop_thread_, on_request(), running_, and server_.
Referenced by main().
| void LocalWarningServer::stop | ( | ) |
Definition at line 302 of file local_warning_server.cpp.
References _, loop_, loop_thread_, running_, and server_.
Referenced by main(), and ~LocalWarningServer().
|
private |
Definition at line 46 of file local_warning_server.hpp.
Referenced by LocalWarningServer(), and start().
|
private |
Definition at line 47 of file local_warning_server.hpp.
Referenced by LocalWarningServer(), and start().
|
private |
Definition at line 44 of file local_warning_server.hpp.
Referenced by LocalWarningServer(), and start().
|
private |
Definition at line 45 of file local_warning_server.hpp.
Referenced by LocalWarningServer(), and start().
|
private |
Definition at line 48 of file local_warning_server.hpp.
Referenced by LocalWarningServer(), and start().
|
private |
Definition at line 51 of file local_warning_server.hpp.
Referenced by LocalWarningServer(), start(), and stop().
|
private |
Definition at line 52 of file local_warning_server.hpp.
|
private |
Definition at line 49 of file local_warning_server.hpp.
Referenced by LocalWarningServer().
|
private |
Definition at line 50 of file local_warning_server.hpp.
Referenced by LocalWarningServer(), start(), and stop().
|
private |
Definition at line 43 of file local_warning_server.hpp.
Referenced by LocalWarningServer(), start(), and stop().