Planeshift
|
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. | |
bool | Connect (const char *server, int port) |
Connect to given server and port. | |
void | Disconnect () |
Disconnect from server. | |
const char * | GetAuthMessage () |
CmdHandler * | GetCmdHandler () |
psNetConnection * | GetConnection () |
const char * | GetLastError () |
ClientMsgHandler * | GetMsgHandler () |
bool | Initialize (iObjectRegistry *object_reg) |
bool | IsConnected () |
psNetManager () | |
virtual | ~psNetManager () |
Protected Attributes | |
csRef< psAdminCommands > | admincmds |
csRef< psAuthenticationClient > | authclient |
csRef< CmdHandler > | cmdhandler |
bool | connected |
psNetConnection * | connection |
csString | errormsg |
csRef< psGroupCommands > | groupcmds |
csRef< psGuildCommands > | guildcmds |
csRef< ClientMsgHandler > | msghandler |
iObjectRegistry * | object_reg |
csRef< psUserCommands > | usercmds |
csRef< psUtilityCommands > | utilcmds |
This class holds references to different network classes and provides some conveniance functions to access them.
Definition at line 40 of file psnetmanager.h.
psNetManager::psNetManager | ( | ) |
virtual psNetManager::~psNetManager | ( | ) | [virtual] |
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.
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.