Wesnoth addon server. More...
#include "server/campaignd/server.hpp"#include "filesystem.hpp"#include "lexical_cast.hpp"#include "log.hpp"#include "serialization/base64.hpp"#include "serialization/binary_or_text.hpp"#include "serialization/chrono.hpp"#include "serialization/parser.hpp"#include "serialization/string_utils.hpp"#include "serialization/unicode.hpp"#include "addon/validation.hpp"#include "server/campaignd/addon_utils.hpp"#include "server/campaignd/auth.hpp"#include "server/campaignd/blacklist.hpp"#include "server/campaignd/control.hpp"#include "server/campaignd/fs_commit.hpp"#include "server/campaignd/options.hpp"#include "game_version.hpp"#include "hash.hpp"#include "utils/optimer.hpp"#include <csignal>#include <iomanip>#include <iostream>#include <utility>#include <errno.h>Go to the source code of this file.
Namespaces | |
| campaignd | |
Macros | |
| #define | DBG_CS LOG_STREAM(debug, log_campaignd) |
| #define | LOG_CS LOG_STREAM(info, log_campaignd) |
| #define | WRN_CS LOG_STREAM(warn, log_campaignd) |
| #define | ERR_CS LOG_STREAM(err, log_campaignd) |
| #define | ERR_CONFIG LOG_STREAM(err, log_config) |
| #define | WRN_CONFIG LOG_STREAM(warn, log_config) |
| #define | ERR_SERVER LOG_STREAM(err, log_server) |
| #define | REGISTER_CAMPAIGND_HANDLER(req_id) |
Functions | |
| std::ostream & | campaignd::operator<< (std::ostream &o, const server::request &r) |
| std::string | campaignd::client_address (const any_socket_ptr &sock) |
| static int | run_campaignd (int argc, char **argv) |
| int | main (int argc, char **argv) |
Variables | |
| static lg::log_domain | log_campaignd ("campaignd") |
| static lg::log_domain | log_config ("config") |
| static lg::log_domain | log_server ("server") |
Wesnoth addon server.
Expects a "server.cfg" config file in the current directory and saves addons under data/.
Definition in file server.cpp.
| #define DBG_CS LOG_STREAM(debug, log_campaignd) |
Definition at line 62 of file server.cpp.
| #define ERR_CONFIG LOG_STREAM(err, log_config) |
Definition at line 68 of file server.cpp.
| #define ERR_CS LOG_STREAM(err, log_campaignd) |
Definition at line 65 of file server.cpp.
| #define ERR_SERVER LOG_STREAM(err, log_server) |
Definition at line 72 of file server.cpp.
| #define LOG_CS LOG_STREAM(info, log_campaignd) |
Definition at line 63 of file server.cpp.
| #define REGISTER_CAMPAIGND_HANDLER | ( | req_id | ) |
Definition at line 904 of file server.cpp.
| #define WRN_CONFIG LOG_STREAM(warn, log_config) |
Definition at line 69 of file server.cpp.
| #define WRN_CS LOG_STREAM(warn, log_campaignd) |
Definition at line 64 of file server.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 2206 of file server.cpp.
References e, PLAIN_LOG, and run_campaignd().
|
static |
Definition at line 2106 of file server.cpp.
References filesystem::get_cwd(), lg::info(), filesystem::is_directory(), lg::list_log_domains(), filesystem::normalize_path(), game_config::path, PLAIN_LOG, lg::precise_timestamps(), game_config::revision, server_base::run(), filesystem::set_cwd(), lg::set_log_domain_severity(), and lg::timestamps().
Referenced by main().
|
static |
|
static |
|
static |