#include "player_network.hpp"
#include "../log.hpp"
#include "serialization/string_utils.hpp"
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
Variable Documentation