Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NetServerConfig Class Reference

#include <NetServerConfig.h>

List of all members.

Public Types

enum  GAME_TYPE { NET_GAME_LAN, NET_GAME_PRIVATE, NET_GAME_PUBLIC }

Public Member Functions

 NetServerConfig ()
 ~NetServerConfig ()
const TextName () const
const TextGetAdminName () const
const TextGetAdminPass () const
const TextGetGamePass () const
const TextGetMission () const
WORD GetAdminPort () const
WORD GetLobbyPort () const
WORD GetGamePort () const
int GetPoolsize () const
int GetSessionTimeout () const
int GetGameType () const
int GetAuthLevel () const
void SetName (const char *s)
void SetAdminName (const char *s)
void SetAdminPass (const char *s)
void SetGamePass (const char *s)
void SetMission (const char *s)
void SetGameType (int t)
void SetAdminPort (WORD p)
void SetLobbyPort (WORD p)
void SetGamePort (WORD p)
void SetPoolsize (int s)
void SetSessionTimeout (int t)
void SetAuthLevel (int n)
void Load ()
void Save ()
bool IsUserBanned (NetUser *user)
void BanUser (NetUser *user)

Static Public Member Functions

static const char * TYPENAME ()
static void Initialize ()
static void Close ()
static NetServerConfigGetInstance ()

Detailed Description

Definition at line 25 of file NetServerConfig.h.


Member Enumeration Documentation

Enumerator:
NET_GAME_LAN 
NET_GAME_PRIVATE 
NET_GAME_PUBLIC 

Definition at line 33 of file NetServerConfig.h.


Constructor & Destructor Documentation

NetServerConfig::NetServerConfig ( )

Definition at line 38 of file NetServerConfig.cpp.

NetServerConfig::~NetServerConfig ( )

Definition at line 58 of file NetServerConfig.cpp.


Member Function Documentation

void NetServerConfig::BanUser ( NetUser user)

Definition at line 413 of file NetServerConfig.cpp.

void NetServerConfig::Close ( )
static

Definition at line 76 of file NetServerConfig.cpp.

const Text& NetServerConfig::GetAdminName ( ) const
inline

Definition at line 40 of file NetServerConfig.h.

const Text& NetServerConfig::GetAdminPass ( ) const
inline

Definition at line 41 of file NetServerConfig.h.

WORD NetServerConfig::GetAdminPort ( ) const
inline

Definition at line 44 of file NetServerConfig.h.

int NetServerConfig::GetAuthLevel ( ) const
inline

Definition at line 50 of file NetServerConfig.h.

const Text& NetServerConfig::GetGamePass ( ) const
inline

Definition at line 42 of file NetServerConfig.h.

WORD NetServerConfig::GetGamePort ( ) const
inline

Definition at line 46 of file NetServerConfig.h.

int NetServerConfig::GetGameType ( ) const
inline

Definition at line 49 of file NetServerConfig.h.

static NetServerConfig* NetServerConfig::GetInstance ( )
inlinestatic

Definition at line 73 of file NetServerConfig.h.

WORD NetServerConfig::GetLobbyPort ( ) const
inline

Definition at line 45 of file NetServerConfig.h.

const Text& NetServerConfig::GetMission ( ) const
inline

Definition at line 43 of file NetServerConfig.h.

int NetServerConfig::GetPoolsize ( ) const
inline

Definition at line 47 of file NetServerConfig.h.

int NetServerConfig::GetSessionTimeout ( ) const
inline

Definition at line 48 of file NetServerConfig.h.

void NetServerConfig::Initialize ( )
static

Definition at line 69 of file NetServerConfig.cpp.

bool NetServerConfig::IsUserBanned ( NetUser user)

Definition at line 453 of file NetServerConfig.cpp.

void NetServerConfig::Load ( )

Definition at line 85 of file NetServerConfig.cpp.

const Text& NetServerConfig::Name ( ) const
inline

Definition at line 39 of file NetServerConfig.h.

void NetServerConfig::Save ( )

Definition at line 244 of file NetServerConfig.cpp.

void NetServerConfig::SetAdminName ( const char *  s)
inline

Definition at line 53 of file NetServerConfig.h.

void NetServerConfig::SetAdminPass ( const char *  s)
inline

Definition at line 54 of file NetServerConfig.h.

void NetServerConfig::SetAdminPort ( WORD  p)
inline

Definition at line 58 of file NetServerConfig.h.

void NetServerConfig::SetAuthLevel ( int  n)
inline

Definition at line 63 of file NetServerConfig.h.

void NetServerConfig::SetGamePass ( const char *  s)
inline

Definition at line 55 of file NetServerConfig.h.

void NetServerConfig::SetGamePort ( WORD  p)
inline

Definition at line 60 of file NetServerConfig.h.

void NetServerConfig::SetGameType ( int  t)
inline

Definition at line 57 of file NetServerConfig.h.

void NetServerConfig::SetLobbyPort ( WORD  p)
inline

Definition at line 59 of file NetServerConfig.h.

void NetServerConfig::SetMission ( const char *  s)
inline

Definition at line 56 of file NetServerConfig.h.

void NetServerConfig::SetName ( const char *  s)
inline

Definition at line 52 of file NetServerConfig.h.

void NetServerConfig::SetPoolsize ( int  s)
inline

Definition at line 61 of file NetServerConfig.h.

void NetServerConfig::SetSessionTimeout ( int  t)
inline

Definition at line 62 of file NetServerConfig.h.

static const char* NetServerConfig::TYPENAME ( )
inlinestatic

Definition at line 28 of file NetServerConfig.h.


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