Minetest  5.4.0
ServerList Namespace Reference

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)
 

Enumeration Type Documentation

◆ AnnounceAction

Enumerator
AA_START 
AA_UPDATE 
AA_DELETE 

Function Documentation

◆ sendAnnounce()

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, Settings::exists(), fastWriteJson(), HTTPFetchRequest::fields, g_settings, g_version_string, Settings::get(), Settings::getBool(), Settings::getS16(), Settings::getU16(), HTTP_POST, httpfetch_async(), infostream, LATEST_PROTOCOL_VERSION, HTTPFetchRequest::method, HTTPFetchRequest::multipart, SERVER_PROTOCOL_VERSION_MAX, SERVER_PROTOCOL_VERSION_MIN, and HTTPFetchRequest::url.

Referenced by Server::AsyncRunStep(), and dedicated_server_loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: