Orxonox
0.0.5 Codename: Arcturus
|
This class is keeps a list of game servers and some info about them. More...
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/network/ServerList.h>
Public Member Functions | |
ServerList () | |
constructor More... | |
~ServerList () | |
destructor More... | |
int | addServer (packet::ServerInformation toadd, ENetPeer *peer) |
bool | delServerByAddress (std::string address) |
bool | delServerByName (std::string name) |
ServerListSearchResult | findServerByAddress (std::string address) |
ServerListSearchResult | findServerByName (std::string name) |
bool | setClientsByAddress (std::string address, int clientNumber) |
bool | setNameByAddress (std::string address, std::string name) |
void | sortByName () |
sort by name More... | |
void | sortByPing () |
sort by ping More... | |
Public Attributes | |
std::list< ServerListElem > | serverlist |
the list of servers for internal storage More... | |
This class is keeps a list of game servers and some info about them.
orxonox::ServerList::ServerList | ( | ) |
constructor
orxonox::ServerList::~ServerList | ( | ) |
destructor
int orxonox::ServerList::addServer | ( | packet::ServerInformation | toadd, |
ENetPeer * | peer | ||
) |
toadd | the server to add. |
peer | the peer |
Add server to the game server list
bool orxonox::ServerList::delServerByAddress | ( | std::string | address | ) |
address | IP address of the server to remove |
Remove server by address
bool orxonox::ServerList::delServerByName | ( | std::string | name | ) |
name | Name of the server to remove |
Remove server by name
ServerListSearchResult orxonox::ServerList::findServerByAddress | ( | std::string | address | ) |
ServerListSearchResult orxonox::ServerList::findServerByName | ( | std::string | name | ) |
bool orxonox::ServerList::setClientsByAddress | ( | std::string | address, |
int | clientNumber | ||
) |
bool orxonox::ServerList::setNameByAddress | ( | std::string | address, |
std::string | name | ||
) |
void orxonox::ServerList::sortByName | ( | ) |
sort by name
void orxonox::ServerList::sortByPing | ( | ) |
sort by ping
std::list<ServerListElem> orxonox::ServerList::serverlist |
the list of servers for internal storage