The Battle for Wesnoth  1.15.2+dev
Macros | Functions | Variables
server_base.cpp File Reference
#include "server/server_base.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "utils/functional.hpp"
#include "server/send_receive_wml_helpers.ipp"
#include "game_version.hpp"
#include "deprecation.hpp"
Include dependency graph for server_base.cpp:

Go to the source code of this file.

Macros

#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)
 

Functions

std::string client_address (const socket_ptr socket)
 
bool check_error (const boost::system::error_code &error, socket_ptr socket)
 
void async_send_error (socket_ptr socket, const std::string &msg, const char *error_code, const info_table &info)
 
void async_send_warning (socket_ptr socket, const std::string &msg, const char *warning_code, const info_table &info)
 
void async_send_message (socket_ptr socket, const std::string &msg, const info_table &info)
 
std::string deprecated_message (const std::string &, DEP_LEVEL, const version_info &, const std::string &)
 

Variables

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

Macro Definition Documentation

◆ DBG_SERVER

#define DBG_SERVER   LOG_STREAM(debug, log_server)

Definition at line 25 of file server_base.cpp.

Referenced by server_base::accept_connection().

◆ ERR_CONFIG

#define ERR_CONFIG   LOG_STREAM(err, log_config)

Definition at line 28 of file server_base.cpp.

◆ ERR_SERVER

#define ERR_SERVER   LOG_STREAM(err, log_server)

◆ LOG_SERVER

#define LOG_SERVER   LOG_STREAM(info, log_server)

Definition at line 24 of file server_base.cpp.

Referenced by check_error(), server_base::handle_termination(), and server_base::run().

◆ WRN_CONFIG

#define WRN_CONFIG   LOG_STREAM(warn, log_config)

Definition at line 29 of file server_base.cpp.

◆ WRN_SERVER

#define WRN_SERVER   LOG_STREAM(warn, log_server)

Definition at line 23 of file server_base.cpp.

Function Documentation

◆ async_send_error()

void async_send_error ( socket_ptr  socket,
const std::string &  msg,
const char *  error_code,
const info_table info 
)

◆ async_send_message()

void async_send_message ( socket_ptr  socket,
const std::string &  msg,
const info_table info 
)

◆ async_send_warning()

void async_send_warning ( socket_ptr  socket,
const std::string &  msg,
const char *  warning_code,
const info_table info 
)

◆ 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 &  ,
DEP_LEVEL  ,
const version_info ,
const std::string &   
)

Definition at line 264 of file server_base.cpp.

Variable Documentation

◆ log_config

lg::log_domain log_config("config")
static

◆ log_server

lg::log_domain log_server("server")
static