1 #ifndef ERIS_SERVER_INFO_H 2 #define ERIS_SERVER_INFO_H 4 #include <Atlas/Objects/ObjectsFwd.h> 36 Status getStatus()
const 63 {
return m_buildDate; }
92 void processServer(
const Atlas::Objects::Entity::RootEntity &svr);
95 void setStatus(Status s);
112 std::string m_version,
Information about a specific game server, retrieved via the Meta-server and anonymous GETs...
Definition: ServerInfo.h:21
int getNumClients() const
the number of clients currently connected to the server
Definition: ServerInfo.h:66
double getUptime() const
the server's uptime in seconds
Definition: ServerInfo.h:76
const std::string & getServername() const
retrieve the human-readable name of the server (e.g 'Bob's Mason Server')
Definition: ServerInfo.h:46
const std::string & getServer() const
the server program name, i.e 'stage' or 'cyphesis'
Definition: ServerInfo.h:54
const std::string & getRuleset() const
retrieve a human-readable name of the ruleset (e.g. 'mason' or 'circe')
Definition: ServerInfo.h:50
Definition: Account.cpp:33
Underlying Atlas connection, providing a send interface, and receive (dispatch) system.
Definition: Connection.h:37
int getPing() const
the round-trip time to the server.
Definition: ServerInfo.h:72
server query timed out
Definition: ServerInfo.h:30
Status
Definition: ServerInfo.h:26
const std::string & getHostname() const
retrive the hostname (or dotted-decimal IP) of the server.
Definition: ServerInfo.h:42
long getEntities() const
the number of entities on the server
Definition: ServerInfo.h:80
const std::string & getVersion() const
the server program version, as a free text string
Definition: ServerInfo.h:58
const std::string & getBuildDate() const
the server program build-date, as a free text string
Definition: ServerInfo.h:62
void processServer(const Atlas::Objects::Entity::RootEntity &svr)
called by Meta when info is received from the server, sets status to valid.
Definition: ServerInfo.cpp:40