The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Macros | Functions | Variables
campaign_server.cpp File Reference

Wesnoth addon server. More...

#include "campaign_server/campaign_server.hpp"
#include "filesystem.hpp"
#include "lexical_cast.hpp"
#include "log.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 "campaign_server/fs_commit.hpp"
#include "version.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>
#include "server/send_receive_wml_helpers.ipp"
Include dependency graph for campaign_server.cpp:

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

int main ()
 

Variables

static lg::log_domain log_campaignd ("campaignd")
 
static lg::log_domain log_config ("config")
 
static lg::log_domain log_server ("server")
 

Detailed Description

Wesnoth addon server.

Expects a "server.cfg" config file in the current directory and saves addons under data/.

Definition in file campaign_server.cpp.

Macro Definition Documentation

#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_CONFIG   LOG_STREAM(err, log_config)

Definition at line 61 of file campaign_server.cpp.

#define ERR_CS   LOG_STREAM(err, log_campaignd)
#define ERR_SERVER   LOG_STREAM(err, log_server)
#define LOG_CS   LOG_STREAM(info, log_campaignd)
#define REGISTER_CAMPAIGND_HANDLER (   req_id)
Value:
handlers_[#req_id] = std::bind(&server::handle_##req_id, \
std::placeholders::_1, std::placeholders::_2)

Definition at line 465 of file campaign_server.cpp.

Referenced by campaignd::server::register_handlers().

#define WRN_CONFIG   LOG_STREAM(warn, log_config)

Definition at line 62 of file campaign_server.cpp.

Referenced by async_send_doc().

#define WRN_CS   LOG_STREAM(warn, log_campaignd)

Definition at line 57 of file campaign_server.cpp.

Function Documentation

int main ( )

Variable Documentation

lg::log_domain log_campaignd("campaignd")
static
lg::log_domain log_config("config")
static
lg::log_domain log_server("server")
static