Namespaces | Defines | Functions | Variables

server/player_network.cpp File Reference

#include "player_network.hpp"
#include "../log.hpp"
#include "serialization/string_utils.hpp"
Include dependency graph for player_network.cpp:

Go to the source code of this file.

Namespaces

namespace  wesnothd
namespace  wesnothd::chat_message

Defines

#define WRN_CONFIG   LOG_STREAM(warn, log_config)

Functions

void wesnothd::chat_message::truncate_message (const simple_wml::string_span &str, simple_wml::node &message)
 Function to ensure a text message is within the allowed length.
bool wesnothd::send_to_one (simple_wml::document &data, const network::connection sock, std::string packet_type="")
 Send a wml document to a single player.
void wesnothd::send_to_many (simple_wml::document &data, const connection_vector &vec, const network::connection exclude=0, std::string packet_type="")
 Send a wml document to a vector of players.
void wesnothd::send_to_many (simple_wml::document &data, const connection_vector &vec, boost::function< bool(network::connection)> pred, const network::connection exclude=0, std::string packet_type="")
 A more powerful version of send_to_many, allowing the use of a predicate connection->bool.

Variables

static lg::log_domain log_config ("config")
const size_t wesnothd::chat_message::max_message_length = 256

Define Documentation

#define WRN_CONFIG   LOG_STREAM(warn, log_config)

Definition at line 22 of file player_network.cpp.


Variable Documentation

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

Generated by doxygen 1.7.1 on Fri May 25 2012 01:10:15 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs