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< banned > | banned_ptr |
| typedef std::set< banned_ptr, banned_compare_subnet > | ban_set |
| typedef std::list< banned_ptr > | deleted_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 std::set<banned_ptr,banned_compare_subnet > wesnothd::ban_set |
| typedef std::priority_queue<banned_ptr,std::vector<banned_ptr>, banned_compare> wesnothd::ban_time_queue |
| typedef boost::shared_ptr<banned> wesnothd::banned_ptr |
| typedef std::vector< network::connection > wesnothd::connection_vector |
Definition at line 37 of file player_network.hpp.
| typedef std::map<std::string, size_t> wesnothd::default_ban_times |
| typedef std::list<banned_ptr> wesnothd::deleted_ban_list |
| typedef std::pair<unsigned int, unsigned int> wesnothd::ip_mask |
| typedef std::map< network::connection, player > wesnothd::player_map |
| typedef std::vector<network::connection> wesnothd::side_vector |
| typedef std::vector<network::connection> wesnothd::user_vector |
| static bool wesnothd::is_invalid_filename_char | ( | char | c | ) | [static] |
| 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.
| 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().

| 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.
| 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 = "" | |||
| ) |
Send a wml document to a single player.
| data | the document to send | |
| sock | the socket id to send to | |
| packet_type | the packet type, if empty the root node name is used |
Referenced by wesnothd::game::add_player(), wesnothd::game::change_controller(), wesnothd::game::load_next_scenario(), wesnothd::game::notify_new_host(), wesnothd::room_manager::process_room_join(), wesnothd::room_manager::process_room_part(), wesnothd::room_manager::process_room_query(), wesnothd::game::process_turn(), wesnothd::game::remove_player(), wesnothd::game::send_leave_game(), wesnothd::game::send_observerjoins(), wesnothd::room::send_server_message(), wesnothd::game::send_server_message(), wesnothd::game::send_taken_side(), and wesnothd::room_manager::unstore_player_rooms().

lg::log_domain wesnothd::log_server("server") [static] |
| Generated by doxygen 1.7.1 on Fri May 25 2012 01:26:16 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |