Planeshift
Public Member Functions | Protected Attributes

psNetManager Class Reference

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

#include <psnetmanager.h>

List of all members.

Public Member Functions

void Authenticate (const csString &name, const csString &pwd, const csString &pwd256)
 Sends an authentication message to the server.
bool Connect (const char *server, int port)
 Connect to given server and port.
void Disconnect ()
 Disconnect from server.
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

Definition at line 81 of file psnetmanager.h.

Definition at line 73 of file psnetmanager.h.

Definition at line 76 of file psnetmanager.h.

bool psNetManager::connected [protected]

Definition at line 82 of file psnetmanager.h.

Definition at line 71 of file psnetmanager.h.

csString psNetManager::errormsg [protected]

Definition at line 83 of file psnetmanager.h.

Definition at line 79 of file psnetmanager.h.

Definition at line 78 of file psnetmanager.h.

Definition at line 72 of file psnetmanager.h.

iObjectRegistry* psNetManager::object_reg [protected]

Definition at line 70 of file psnetmanager.h.

Definition at line 77 of file psnetmanager.h.

Definition at line 80 of file psnetmanager.h.


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