The Battle for Wesnoth  1.15.12+dev
Macros | Functions | Variables
server_base.cpp File Reference
#include "server/common/server_base.hpp"
#include "log.hpp"
#include "filesystem.hpp"
#include <boost/asio/ip/v6_only.hpp>
#include <boost/asio/read.hpp>
#include <boost/asio/read_until.hpp>
#include <boost/asio/write.hpp>
#include <functional>
#include <queue>
#include "game_version.hpp"
#include "deprecation.hpp"
Include dependency graph for server_base.cpp:

Go to the source code of this file.


#define ERR_SERVER   LOG_STREAM(err, log_server)
#define WRN_SERVER   LOG_STREAM(warn, log_server)
#define LOG_SERVER   LOG_STREAM(info, log_server)
#define DBG_SERVER   LOG_STREAM(debug, log_server)
#define ERR_CONFIG   LOG_STREAM(err, log_config)
#define WRN_CONFIG   LOG_STREAM(warn, log_config)


std::string client_address (const socket_ptr socket)
bool check_error (const boost::system::error_code &error, socket_ptr socket)
std::string deprecated_message (const std::string &, DEP_LEVEL, const version_info &, const std::string &)


static lg::log_domain log_server ("server")
static lg::log_domain log_config ("config")
bool dump_wml = false

Macro Definition Documentation


#define DBG_SERVER   LOG_STREAM(debug, log_server)

Definition at line 47 of file server_base.cpp.

Referenced by server_base::serve().


#define ERR_CONFIG   LOG_STREAM(err, log_config)

Definition at line 50 of file server_base.cpp.


#define ERR_SERVER   LOG_STREAM(err, log_server)

Definition at line 44 of file server_base.cpp.

Referenced by check_error(), server_base::coro_receive_doc(), and server_base::serve().


#define LOG_SERVER   LOG_STREAM(info, log_server)


#define WRN_CONFIG   LOG_STREAM(warn, log_config)

Definition at line 51 of file server_base.cpp.

Referenced by server_base::coro_send_doc().


#define WRN_SERVER   LOG_STREAM(warn, log_server)

Definition at line 45 of file server_base.cpp.

Function Documentation

◆ check_error()

bool check_error ( const boost::system::error_code &  error,
socket_ptr  socket 

◆ client_address()

std::string client_address ( const socket_ptr  socket)

◆ deprecated_message()

std::string deprecated_message ( const std::string &  ,
const version_info ,
const std::string &   

Definition at line 480 of file server_base.cpp.

Variable Documentation

◆ dump_wml

bool dump_wml = false

Definition at line 53 of file server_base.cpp.

Referenced by server_base::coro_send_doc(), and main().

◆ log_config

lg::log_domain log_config("config")

◆ log_server

lg::log_domain log_server("server")