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

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/network/MasterServer.h>

Public Member Functions

 MasterServer ()
 
 ~MasterServer ()
 
int run ()
 

Static Public Member Functions

static void delServer (std::string todeladdr)
 
static MasterServergetInstance ()
 
static void listServers (void)
 
static void setInstance (MasterServer *setto)
 

Static Public Attributes

static MasterServerinstance = nullptr
 

Private Member Functions

int eventConnect (ENetEvent *event)
 
int eventData (ENetEvent *event)
 
int eventDisconnect (ENetEvent *event)
 
void helper_cleanupServers (void)
 
void helper_sendlist (ENetEvent *event)
 

Private Attributes

ENetAddress address
 
ServerList mainlist
 
unsigned int port
 
bool quit
 
ENetHostserver
 

Constructor & Destructor Documentation

orxonox::MasterServer::MasterServer ( )
orxonox::MasterServer::~MasterServer ( )

Member Function Documentation

void orxonox::MasterServer::delServer ( std::string  todeladdr)
static
int orxonox::MasterServer::eventConnect ( ENetEvent event)
private
int orxonox::MasterServer::eventData ( ENetEvent event)
private
int orxonox::MasterServer::eventDisconnect ( ENetEvent event)
private
static MasterServer* orxonox::MasterServer::getInstance ( )
inlinestatic
void orxonox::MasterServer::helper_cleanupServers ( void  )
private
void orxonox::MasterServer::helper_sendlist ( ENetEvent event)
private
void orxonox::MasterServer::listServers ( void  )
static
int orxonox::MasterServer::run ( )
static void orxonox::MasterServer::setInstance ( MasterServer setto)
inlinestatic

Member Data Documentation

ENetAddress orxonox::MasterServer::address
private
MasterServer * orxonox::MasterServer::instance = nullptr
static
ServerList orxonox::MasterServer::mainlist
private
unsigned int orxonox::MasterServer::port
private
bool orxonox::MasterServer::quit
private
ENetHost* orxonox::MasterServer::server
private

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