19 #ifndef __PSNETMANAGER_H__ 20 #define __PSNETMANAGER_H__ 22 #include <csutil/csstring.h> 23 #include <csutil/refcount.h> 51 bool Connect(
const char* server,
int port);
57 void Authenticate(
const csString & name,
const csString & pwd,
const csString & pwd256);
csRef< psAuthenticationClient > authclient
csRef< psGroupCommands > groupcmds
Handles Authentication details from the client to the server.
Class to handle general player commands.
Manager class for handling guild client commands.
ClientMsgHandler * GetMsgHandler()
Handles messages to be sent out, connects to server and send those.
psNetConnection * connection
csRef< ClientMsgHandler > msghandler
psNetConnection * GetConnection()
bool Connect(const char *server, int port)
Connect to given server and port.
This class holds references to different network classes and provides some conveniance functions to a...
void Disconnect()
Disconnect from server.
Manages different commands that are player based in nature.
Manager class to help with handling of 'group' commands.
csRef< psUtilityCommands > utilcmds
const char * GetAuthMessage()
This class is the client's and server's main interface for either sending network messages out or get...
const char * GetLastError()
CmdHandler * GetCmdHandler()
iObjectRegistry * object_reg
void Authenticate(const csString &name, const csString &pwd, const csString &pwd256)
Sends an authentication message to the server.
csRef< psGuildCommands > guildcmds
bool Initialize(iObjectRegistry *object_reg)
csRef< psUserCommands > usercmds
csRef< psAdminCommands > admincmds
csRef< CmdHandler > cmdhandler
This implements a subscriber object which handles admin-oriented commands.