Wesnoth addon server. More...
#include "campaign_server/campaign_server.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "network_worker.hpp"
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/unicode.hpp"
#include "game_config.hpp"
#include "addon/validation.hpp"
#include "campaign_server/addon_utils.hpp"
#include "campaign_server/blacklist.hpp"
#include "campaign_server/control.hpp"
#include "version.hpp"
#include "util.hpp"
#include "hash.hpp"
#include <csignal>
#include <ctime>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/exception/get_error_info.hpp>
#include <boost/random.hpp>
#include <boost/generator_iterator.hpp>
#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 | SIGHUP 20 |
#define | REGISTER_CAMPAIGND_HANDLER(req_id) register_handler(#req_id, &server::handle_##req_id) |
Functions | |
int | main (int argc, char **argv) |
Variables | |
static lg::log_domain | log_campaignd ("campaignd") |
Wesnoth addon server.
Expects a "server.cfg" config file in the current directory and saves addons under data/.
Definition in file campaign_server.cpp.
#define DBG_CS LOG_STREAM(debug, log_campaignd) |
Definition at line 55 of file campaign_server.cpp.
Referenced by campaignd::server::write_config().
#define ERR_CS LOG_STREAM(err, log_campaignd) |
Definition at line 58 of file campaign_server.cpp.
Referenced by campaignd::server::fire(), campaignd::server::handle_delete(), campaignd::server::handle_request_campaign(), campaignd::server::load_blacklist(), campaignd::server::run(), and campaignd::server::send_error().
#define LOG_CS LOG_STREAM(info, log_campaignd) |
Definition at line 56 of file campaign_server.cpp.
Referenced by campaignd::server::handle_change_passphrase(), campaignd::server::handle_delete(), campaignd::server::handle_request_campaign(), campaignd::server::handle_request_campaign_list(), campaignd::server::handle_request_terms(), campaignd::server::handle_upload(), campaignd::server::load_blacklist(), campaignd::server::load_config(), campaignd::server::run(), and campaignd::server::server().
#define REGISTER_CAMPAIGND_HANDLER | ( | req_id | ) | register_handler(#req_id, &server::handle_##req_id) |
Definition at line 474 of file campaign_server.cpp.
Referenced by campaignd::server::register_handlers().
#define SIGHUP 20 |
Definition at line 62 of file campaign_server.cpp.
Referenced by campaignd::server::server().
#define WRN_CS LOG_STREAM(warn, log_campaignd) |
Definition at line 57 of file campaign_server.cpp.
Definition at line 873 of file campaign_server.cpp.
References e, filesystem::get_cwd(), lg::info(), game::error::message, filesystem::normalize_path(), game_config::path, game_config::revision, campaignd::server::run(), lg::set_log_domain_severity(), and lg::timestamps().
Referenced by wb::highlighter::find_main_highlight(), wb::highlighter::highlight(), basic_unit_filter_impl::internal_matches_filter(), and wb::highlighter::unhighlight().
|
static |