Planeshift
psNetManager Class Reference

This class holds references to different network classes and provides some conveniance functions to access them. More...

#include <psnetmanager.h>

Public Member Functions

void Authenticate (const csString &name, const csString &pwd, const csString &pwd256)
 Sends an authentication message to the server. More...
 
bool Connect (const char *server, int port)
 Connect to given server and port. More...
 
void Disconnect ()
 Disconnect from server. More...
 
const char * GetAuthMessage ()
 
CmdHandlerGetCmdHandler ()
 
psNetConnectionGetConnection ()
 
const char * GetLastError ()
 
ClientMsgHandlerGetMsgHandler ()
 
bool Initialize (iObjectRegistry *object_reg)
 
bool IsConnected ()
 
 psNetManager ()
 
virtual ~psNetManager ()
 

Protected Attributes

csRef< psAdminCommandsadmincmds
 
csRef< psAuthenticationClientauthclient
 
csRef< CmdHandlercmdhandler
 
bool connected
 
psNetConnectionconnection
 
csString errormsg
 
csRef< psGroupCommandsgroupcmds
 
csRef< psGuildCommandsguildcmds
 
csRef< ClientMsgHandlermsghandler
 
iObjectRegistry * object_reg
 
csRef< psUserCommandsusercmds
 
csRef< psUtilityCommandsutilcmds
 

Detailed Description

This class holds references to different network classes and provides some conveniance functions to access them.

Definition at line 40 of file psnetmanager.h.

Constructor & Destructor Documentation

psNetManager::psNetManager ( )
virtual psNetManager::~psNetManager ( )
virtual

Member Function Documentation

void psNetManager::Authenticate ( const csString &  name,
const csString &  pwd,
const csString &  pwd256 
)

Sends an authentication message to the server.

bool psNetManager::Connect ( const char *  server,
int  port 
)

Connect to given server and port.

void psNetManager::Disconnect ( )

Disconnect from server.

const char* psNetManager::GetAuthMessage ( )
CmdHandler* psNetManager::GetCmdHandler ( )
inline

Definition at line 60 of file psnetmanager.h.

psNetConnection* psNetManager::GetConnection ( )
inline

Definition at line 65 of file psnetmanager.h.

const char* psNetManager::GetLastError ( )
inline

Definition at line 62 of file psnetmanager.h.

ClientMsgHandler* psNetManager::GetMsgHandler ( )
bool psNetManager::Initialize ( iObjectRegistry *  object_reg)
bool psNetManager::IsConnected ( )
inline

Definition at line 67 of file psnetmanager.h.

Member Data Documentation

csRef<psAdminCommands> psNetManager::admincmds
protected

Definition at line 81 of file psnetmanager.h.

csRef<psAuthenticationClient> psNetManager::authclient
protected

Definition at line 73 of file psnetmanager.h.

csRef<CmdHandler> psNetManager::cmdhandler
protected

Definition at line 76 of file psnetmanager.h.

bool psNetManager::connected
protected

Definition at line 82 of file psnetmanager.h.

psNetConnection* psNetManager::connection
protected

Definition at line 71 of file psnetmanager.h.

csString psNetManager::errormsg
protected

Definition at line 83 of file psnetmanager.h.

csRef<psGroupCommands> psNetManager::groupcmds
protected

Definition at line 79 of file psnetmanager.h.

csRef<psGuildCommands> psNetManager::guildcmds
protected

Definition at line 78 of file psnetmanager.h.

csRef<ClientMsgHandler> psNetManager::msghandler
protected

Definition at line 72 of file psnetmanager.h.

iObjectRegistry* psNetManager::object_reg
protected

Definition at line 70 of file psnetmanager.h.

csRef<psUserCommands> psNetManager::usercmds
protected

Definition at line 77 of file psnetmanager.h.

csRef<psUtilityCommands> psNetManager::utilcmds
protected

Definition at line 80 of file psnetmanager.h.


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