Defines | Functions | Variables

campaign_server/campaign_server.cpp File Reference

Wesnoth addon server. More...

#include "filesystem.hpp"
#include "foreach.hpp"
#include "log.hpp"
#include "network_worker.hpp"
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "serialization/string_utils.hpp"
#include "game_config.hpp"
#include "addon/validation.hpp"
#include "version.hpp"
#include "server/input_stream.hpp"
#include "util.hpp"
#include <csignal>
#include <boost/iostreams/filter/gzip.hpp>
#include <errno.h>
Include dependency graph for campaign_server.cpp:

Go to the source code of this file.

Defines

#define LOG_CS   if (lg::err.dont_log(log_network)) ; else lg::err(log_network, false)
#define SIGHUP   20

Functions

static void exit_sighup (int signal)
static void exit_sigint (int signal)
static void exit_sigterm (int signal)
int main (int argc, char **argv)

Variables

static lg::log_domain log_network ("network")

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.


Define Documentation

#define LOG_CS   if (lg::err.dont_log(log_network)) ; else lg::err(log_network, false)

Definition at line 47 of file campaign_server.cpp.

Referenced by exit_sighup(), exit_sigint(), and exit_sigterm().

#define SIGHUP   20

Definition at line 51 of file campaign_server.cpp.

Referenced by exit_sighup().


Function Documentation

static void exit_sighup ( int  signal  )  [static]
Todo:
FIXME: should define SIGINT here too, but to what?

Definition at line 55 of file campaign_server.cpp.

References LOG_CS, and SIGHUP.

static void exit_sigint ( int  signal  )  [static]

Definition at line 61 of file campaign_server.cpp.

References LOG_CS.

static void exit_sigterm ( int  signal  )  [static]

Definition at line 67 of file campaign_server.cpp.

References LOG_CS.

int main ( int  argc,
char **  argv 
)

Definition at line 585 of file campaign_server.cpp.

References preferences::campaign_server(), get_cwd(), game::error::message, normalize_path(), game_config::path, and lg::timestamps().

Here is the call graph for this function:


Variable Documentation

lg::log_domain log_network("network") [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Wed May 23 2012 01:03:45 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs