Go to the source code of this file.
Functions | |
| static std::string | now_iso () |
| static bool | read_exact (std::istream &in, void *buf, std::size_t n) |
| json | read_message () |
| void | send_message (const json &j) |
| static std::string | str_tolower (std::string s) |
| static std::string | str_trim (std::string s) |
| static std::time_t | to_time_t (fs::file_time_type ftime) |
| static void | reload_blacklist_if_needed () |
| static std::string | extract_host_from_url (const std::string &url) |
| json | action_set_lang (const json &req) |
| json | action_restart_scanner (const json &) |
| json | action_open_page (const json &req) |
| json | action_ping (const json &) |
| json | action_check_url (const json &req) |
| json | action_get_mail_config (const json &) |
| json | dispatch (const json &req) |
| int | main () |
Variables | |
| static std::unordered_set< std::string > | cached_bl |
| static std::time_t | cached_bl_mtime = 0 |
| static fs::path | cached_bl_path |
Definition at line 174 of file native_host.cpp.
References action_check_url(), cached_bl, extract_host_from_url(), and reload_blacklist_if_needed().
Referenced by action_check_url(), and dispatch().
Definition at line 221 of file native_host.cpp.
References action_get_mail_config().
Referenced by action_get_mail_config(), and dispatch().
Definition at line 171 of file native_host.cpp.
References action_open_page().
Referenced by action_open_page(), and dispatch().
Definition at line 172 of file native_host.cpp.
References action_ping(), and now_iso().
Referenced by action_ping(), and dispatch().
Definition at line 170 of file native_host.cpp.
References action_restart_scanner().
Referenced by action_restart_scanner(), and dispatch().
Definition at line 169 of file native_host.cpp.
References action_set_lang().
Referenced by action_set_lang(), and dispatch().
Definition at line 247 of file native_host.cpp.
References action_check_url(), action_get_mail_config(), action_open_page(), action_ping(), action_restart_scanner(), action_set_lang(), and dispatch().
Referenced by dispatch(), and main().
|
static |
Definition at line 156 of file native_host.cpp.
References extract_host_from_url(), str_tolower(), and str_trim().
| int main | ( | void | ) |
Definition at line 263 of file native_host.cpp.
References dispatch(), main(), now_iso(), read_message(), and send_message().
|
static |
Definition at line 43 of file native_host.cpp.
References now_iso().
Referenced by action_ping(), main(), and now_iso().
|
static |
Definition at line 55 of file native_host.cpp.
References read_exact().
Referenced by read_exact(), and read_message().
| json read_message | ( | ) |
Definition at line 67 of file native_host.cpp.
References read_exact(), and read_message().
Referenced by main(), and read_message().
|
static |
Definition at line 120 of file native_host.cpp.
References cached_bl, cached_bl_mtime, cached_bl_path, reload_blacklist_if_needed(), str_tolower(), str_trim(), and to_time_t().
Referenced by action_check_url(), and reload_blacklist_if_needed().
| void send_message | ( | const json & | j | ) |
Definition at line 80 of file native_host.cpp.
References send_message().
Referenced by main(), and send_message().
|
inlinestatic |
Definition at line 97 of file native_host.cpp.
References str_tolower().
Referenced by extract_host_from_url(), reload_blacklist_if_needed(), and str_tolower().
|
inlinestatic |
Definition at line 102 of file native_host.cpp.
References str_trim().
Referenced by extract_host_from_url(), reload_blacklist_if_needed(), and str_trim().
|
static |
Definition at line 111 of file native_host.cpp.
References to_time_t().
Referenced by reload_blacklist_if_needed(), and to_time_t().
|
static |
Definition at line 93 of file native_host.cpp.
Referenced by action_check_url(), and reload_blacklist_if_needed().
|
static |
Definition at line 94 of file native_host.cpp.
Referenced by reload_blacklist_if_needed().
|
static |
Definition at line 95 of file native_host.cpp.
Referenced by reload_blacklist_if_needed().