Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Public Attributes | List of all members
orxonox::ServerList Class Reference

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< ServerListElemserverlist
 the list of servers for internal storage More...
 

Detailed Description

This class is keeps a list of game servers and some info about them.

Constructor & Destructor Documentation

orxonox::ServerList::ServerList ( )

constructor

orxonox::ServerList::~ServerList ( )

destructor

Member Function Documentation

int orxonox::ServerList::addServer ( packet::ServerInformation  toadd,
ENetPeer peer 
)
Parameters
toaddthe server to add.
peerthe peer

Add server to the game server list

bool orxonox::ServerList::delServerByAddress ( std::string  address)
Parameters
addressIP address of the server to remove

Remove server by address

bool orxonox::ServerList::delServerByName ( std::string  name)
Parameters
nameName 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

Member Data Documentation

std::list<ServerListElem> orxonox::ServerList::serverlist

the list of servers for internal storage


The documentation for this class was generated from the following files: