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

#include <NetClientConfig.h>

List of all members.

Public Member Functions

 NetClientConfig ()
 ~NetClientConfig ()
void AddServer (const char *name, const char *addr, WORD port, const char *password, bool save=false)
void DelServer (int index)
List< NetServerInfo > & GetServerList ()
NetServerInfoGetServerInfo (int n)
void Download ()
void Load ()
void Save ()
void SetServerIndex (int n)
int GetServerIndex () const
void SetHostRequest (bool n)
bool GetHostRequest () const
NetServerInfoGetSelectedServer ()
void CreateConnection ()
NetLobbyClientGetConnection ()
bool Login ()
bool Logout ()
void DropConnection ()

Static Public Member Functions

static void Initialize ()
static void Close ()
static NetClientConfigGetInstance ()

Detailed Description

Definition at line 28 of file NetClientConfig.h.


Constructor & Destructor Documentation

NetClientConfig::NetClientConfig ( )

Definition at line 33 of file NetClientConfig.cpp.

NetClientConfig::~NetClientConfig ( )

Definition at line 40 of file NetClientConfig.cpp.


Member Function Documentation

void NetClientConfig::AddServer ( const char *  name,
const char *  addr,
WORD  port,
const char *  password,
bool  save = false 
)

Definition at line 67 of file NetClientConfig.cpp.

void NetClientConfig::Close ( )
static

Definition at line 58 of file NetClientConfig.cpp.

void NetClientConfig::CreateConnection ( )

Definition at line 270 of file NetClientConfig.cpp.

void NetClientConfig::DelServer ( int  index)

Definition at line 95 of file NetClientConfig.cpp.

void NetClientConfig::Download ( )

Definition at line 127 of file NetClientConfig.cpp.

void NetClientConfig::DropConnection ( )

Definition at line 330 of file NetClientConfig.cpp.

NetLobbyClient * NetClientConfig::GetConnection ( )

Definition at line 297 of file NetClientConfig.cpp.

bool NetClientConfig::GetHostRequest ( ) const
inline

Definition at line 50 of file NetClientConfig.h.

static NetClientConfig* NetClientConfig::GetInstance ( )
inlinestatic

Definition at line 61 of file NetClientConfig.h.

NetServerInfo * NetClientConfig::GetSelectedServer ( )

Definition at line 116 of file NetClientConfig.cpp.

int NetClientConfig::GetServerIndex ( ) const
inline

Definition at line 48 of file NetClientConfig.h.

NetServerInfo * NetClientConfig::GetServerInfo ( int  n)

Definition at line 105 of file NetClientConfig.cpp.

List<NetServerInfo>& NetClientConfig::GetServerList ( )
inline

Definition at line 41 of file NetClientConfig.h.

void NetClientConfig::Initialize ( )
static

Definition at line 51 of file NetClientConfig.cpp.

void NetClientConfig::Load ( )

Definition at line 140 of file NetClientConfig.cpp.

bool NetClientConfig::Login ( )

Definition at line 303 of file NetClientConfig.cpp.

bool NetClientConfig::Logout ( )

Definition at line 317 of file NetClientConfig.cpp.

void NetClientConfig::Save ( )

Definition at line 238 of file NetClientConfig.cpp.

void NetClientConfig::SetHostRequest ( bool  n)
inline

Definition at line 49 of file NetClientConfig.h.

void NetClientConfig::SetServerIndex ( int  n)
inline

Definition at line 47 of file NetClientConfig.h.


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