Enumerations | |
enum | AnnounceAction { AA_START , AA_UPDATE , AA_DELETE } |
Functions | |
void | sendAnnounce (AnnounceAction action, const u16 port, const std::vector< std::string > &clients_names, const double uptime, const u32 game_time, const float lag, const std::string &gameid, const std::string &mg_name, const std::vector< ModSpec > &mods, bool dedicated) |
void ServerList::sendAnnounce | ( | AnnounceAction | action, |
const u16 | port, | ||
const std::vector< std::string > & | clients_names, | ||
const double | uptime, | ||
const u32 | game_time, | ||
const float | lag, | ||
const std::string & | gameid, | ||
const std::string & | mg_name, | ||
const std::vector< ModSpec > & | mods, | ||
bool | dedicated ) |
References AA_DELETE, AA_START, AA_UPDATE, actionstream, HTTPFetchRequest::caller, Settings::exists(), fastWriteJson(), HTTPFetchRequest::fields, g_settings, g_version_string, Settings::get(), Settings::getBool(), Server::getProtocolVersionMax(), Server::getProtocolVersionMin(), Settings::getS16(), Settings::getU16(), HTTP_POST, httpfetch_async(), HTTPFETCH_PRINT_ERR, infostream, HTTPFetchRequest::method, HTTPFetchRequest::multipart, and HTTPFetchRequest::url.
Referenced by Server::AsyncRunStep(), and dedicated_server_loop().