The Battle for Wesnoth  1.13.4+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 "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>
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 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")
 

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_CS   LOG_STREAM(err, log_campaignd)
#define LOG_CS   LOG_STREAM(info, log_campaignd)
#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.

Function Documentation

int main ( int  argc,
char **  argv 
)

Variable Documentation

lg::log_domain log_campaignd("campaignd")
static