Namespaces | |
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 |
class | player |
class | player_record |
struct | socket_t |
struct | name_t |
struct | game_t |
class | server |
Typedefs | |
typedef std::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, std::chrono::seconds > | default_ban_times |
typedef std::pair< unsigned int, unsigned int > | ip_mask |
typedef std::vector< player_iterator > | user_vector |
typedef std::vector< utils::optional< player_iterator > > | side_vector |
using | player_connections = bmi::multi_index_container< player_record, bmi::indexed_by< bmi::ordered_unique< bmi::tag< socket_t >, bmi::const_mem_fun< player_record, const any_socket_ptr, &player_record::socket > >, bmi::hashed_unique< bmi::tag< name_t >, bmi::const_mem_fun< player_record, const std::string &, &player_record::name > >, bmi::ordered_non_unique< bmi::tag< game_t >, bmi::const_mem_fun< player_record, int, &player_record::game_id > > > > |
typedef player_connections::const_iterator | player_iterator |
Functions | |
std::ostream & | operator<< (std::ostream &o, const banned &n) |
ip_mask | parse_ip (const std::string &ip) |
static const simple_wml::node & | get_multiplayer (const simple_wml::node &root) |
returns const so that operator [] won't create empty keys if not existent More... | |
static bool | is_invalid_filename_char (char c) |
static void | make_add_diff (const simple_wml::node &src, const char *gamelist, const char *type, simple_wml::document &out, int index=-1) |
static bool | make_delete_diff (const simple_wml::node &src, const char *gamelist, const char *type, const simple_wml::node *remove, simple_wml::document &out) |
static bool | make_change_diff (const simple_wml::node &src, const char *gamelist, const char *type, const simple_wml::node *item, simple_wml::document &out) |
static std::string | player_status (const wesnothd::player_record &player) |
Variables | |
static lg::log_domain | log_server ("server") |
int | request_sample_frequency = 1 |
version_info | secure_version = version_info("1.14.4") |
const std::string | denied_msg = "You're not allowed to execute this command." |
const std::string | help_msg |
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 std::shared_ptr<banned> wesnothd::banned_ptr |
typedef std::map<std::string, std::chrono::seconds> wesnothd::default_ban_times |
typedef std::list<banned_ptr> wesnothd::deleted_ban_list |
typedef std::pair<unsigned int, unsigned int> wesnothd::ip_mask |
using wesnothd::player_connections = typedef bmi::multi_index_container<player_record, bmi::indexed_by< bmi::ordered_unique<bmi::tag<socket_t>, bmi::const_mem_fun<player_record, const any_socket_ptr, &player_record::socket> >, bmi::hashed_unique<bmi::tag<name_t>, bmi::const_mem_fun<player_record, const std::string&, &player_record::name> >, bmi::ordered_non_unique<bmi::tag<game_t>, bmi::const_mem_fun<player_record, int, &player_record::game_id> > > > |
Definition at line 88 of file player_connection.hpp.
typedef player_connections::const_iterator wesnothd::player_iterator |
Definition at line 97 of file player_connection.hpp.
typedef std::vector<utils::optional<player_iterator> > wesnothd::side_vector |
typedef std::vector<player_iterator> wesnothd::user_vector |
|
static |
returns const so that operator [] won't create empty keys if not existent
Definition at line 136 of file game.cpp.
References simple_wml::node::child(), and ERR_GAME.
Referenced by wesnothd::game::allow_observers(), wesnothd::game::is_reload(), and wesnothd::game::start_game().
|
static |
Definition at line 1764 of file game.cpp.
References c.
Referenced by wesnothd::game::get_replay_filename().
|
static |
Definition at line 87 of file server.cpp.
References simple_wml::node::add_child(), simple_wml::document::child(), utf8::index(), utf8::insert(), simple_wml::document::root(), simple_wml::node::set_attr_int(), and src.
Referenced by wesnothd::server::dummy_player_updates(), wesnothd::server::handle_player(), and wesnothd::server::handle_player_in_game().
|
static |
Definition at line 148 of file server.cpp.
References simple_wml::node::add_child(), simple_wml::document::child(), utf8::index(), utf8::insert(), simple_wml::document::root(), simple_wml::node::set_attr_int(), and src.
Referenced by wesnothd::server::delete_game(), wesnothd::server::handle_join_game(), wesnothd::server::handle_player_in_game(), and wesnothd::server::update_game_in_lobby().
|
static |
Definition at line 115 of file server.cpp.
References simple_wml::node::add_child(), simple_wml::document::child(), utf8::index(), gui2::dialogs::tip::remove(), simple_wml::document::root(), simple_wml::node::set_attr_int(), and src.
Referenced by wesnothd::server::cleanup_game(), wesnothd::server::dummy_player_updates(), and wesnothd::server::remove_player().
std::ostream & wesnothd::operator<< | ( | std::ostream & | o, |
const banned & | n | ||
) |
ip_mask wesnothd::parse_ip | ( | const std::string & | ip | ) |
Definition at line 118 of file ban.cpp.
References utils::split().
Referenced by wesnothd::banned::banned(), wesnothd::ban_manager::is_ip_banned(), wesnothd::ban_manager::list_bans(), wesnothd::ban_manager::list_deleted_bans(), and wesnothd::banned::read().
|
static |
Definition at line 189 of file server.cpp.
References lg::format_timespan(), and wesnothd::player::name().
Referenced by wesnothd::server::clones_handler(), wesnothd::server::searchlog_handler(), and wesnothd::server::status_handler().
const std::string wesnothd::denied_msg = "You're not allowed to execute this command." |
Definition at line 197 of file server.cpp.
Referenced by wesnothd::server::restart_handler(), wesnothd::server::sample_handler(), and wesnothd::server::shut_down_handler().
const std::string wesnothd::help_msg |
Definition at line 198 of file server.cpp.
Referenced by wesnothd::server::help_handler(), and wesnothd::server::process_command().
|
static |
int wesnothd::request_sample_frequency = 1 |
Definition at line 84 of file server.cpp.
Referenced by main(), and wesnothd::server::sample_handler().
version_info wesnothd::secure_version = version_info("1.14.4") |
Definition at line 85 of file server.cpp.
Referenced by wesnothd::server::handle_player().