Namespaces | Typedefs | Functions

server/player_network.hpp File Reference

#include "../network.hpp"
#include "player.hpp"
#include "simple_wml.hpp"
#include <boost/function.hpp>
Include dependency graph for player_network.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  wesnothd
namespace  wesnothd::chat_message

Typedefs

typedef std::vector
< network::connection
wesnothd::connection_vector

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.
 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