Namespaces | Classes | Typedefs | Functions | Variables

wesnothd Namespace Reference

Namespaces

namespace  chat_message

Classes

struct  banned_compare
 We want to move the lowest value to the top. More...
struct  banned_compare_subnet
class  banned
class  ban_manager
class  game
struct  game_is_member
struct  game_id_matches
class  player
class  room
 A room is a group of players that can communicate via messages. More...
class  room_manager
 The room manager manages the lobby and other rooms in the server, and related client message processing. More...

Typedefs

typedef boost::shared_ptr< bannedbanned_ptr
typedef std::set< banned_ptr,
banned_compare_subnet
ban_set
typedef std::list< banned_ptrdeleted_ban_list
typedef std::priority_queue
< banned_ptr, std::vector
< banned_ptr >, banned_compare
ban_time_queue
typedef std::map< std::string,
size_t > 
default_ban_times
typedef std::pair< unsigned
int, unsigned int > 
ip_mask
typedef std::map
< network::connection, player
player_map
typedef std::vector
< network::connection
user_vector
typedef std::vector
< network::connection
side_vector
typedef std::vector
< network::connection
connection_vector

Functions

std::ostream & operator<< (std::ostream &o, const banned &n)
ip_mask parse_ip (const std::string &ip)
static bool is_invalid_filename_char (char c)
bool send_to_one (simple_wml::document &data, const network::connection sock, std::string packet_type="")
 Send a wml document to a single player.
void 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 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_server ("server")

Typedef Documentation

Definition at line 51 of file ban.hpp.

typedef std::priority_queue<banned_ptr,std::vector<banned_ptr>, banned_compare> wesnothd::ban_time_queue

Definition at line 53 of file ban.hpp.

typedef boost::shared_ptr<banned> wesnothd::banned_ptr

Definition at line 36 of file ban.hpp.

Definition at line 37 of file player_network.hpp.

typedef std::map<std::string, size_t> wesnothd::default_ban_times

Definition at line 54 of file ban.hpp.

Definition at line 52 of file ban.hpp.

typedef std::pair<unsigned int, unsigned int> wesnothd::ip_mask

Definition at line 55 of file ban.hpp.

Definition at line 31 of file game.hpp.

Definition at line 33 of file game.hpp.

Definition at line 32 of file game.hpp.


Function Documentation

static bool wesnothd::is_invalid_filename_char ( char  c  )  [static]

Definition at line 1250 of file game.cpp.

std::ostream & wesnothd::operator<< ( std::ostream &  o,
const banned &  n 
)
ip_mask wesnothd::parse_ip ( const std::string &  ip  ) 
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.

More efficient than calling send_to_one many times.

Parameters:
data the document to send
vec the vector of player socket ids to send to
exclude if nonzero, do not send to this player
packet_type the packet type, if empty the root node name is used

Referenced by wesnothd::game::process_turn(), wesnothd::room::send_data(), wesnothd::game::send_data(), and wesnothd::game::send_data_team().

Here is the caller graph for this function:

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.

The document will be sent only to those sockets for which the predicate evaluates to false.

Parameters:
data the document to send
vec the vector of player socket ids to send to
pred the predicate
exclude if nonzero, do not send to this player
packet_type the packet type, if empty the root node name is used
bool wesnothd::send_to_one ( simple_wml::document data,
const network::connection  sock,
std::string  packet_type = "" 
)

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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