#include <ConsoleServer.h>
Public Member Functions | |
void | SetTransportProvider (TransportInterface *transportInterface, unsigned short port) |
void | AddCommandParser (CommandParserInterface *commandParserInterface) |
void | RemoveCommandParser (CommandParserInterface *commandParserInterface) |
void | Update (void) |
void ConsoleServer::SetTransportProvider | ( | TransportInterface * | transportInterface, | |
unsigned short | port | |||
) |
Call this with a derivation of TransportInterface so that the console server can send and receive commands
[in] | transportInterface | Your interface to use. |
[in] | port | The port to host on. Telnet uses port 23 by default. RakNet can use whatever you want. |
void ConsoleServer::AddCommandParser | ( | CommandParserInterface * | commandParserInterface | ) |
Add an implementation of CommandParserInterface to the list of command parsers.
[in] | commandParserInterface | The command parser referred to |
void ConsoleServer::RemoveCommandParser | ( | CommandParserInterface * | commandParserInterface | ) |
Remove an implementation of CommandParserInterface previously added with AddCommandParser()
[in] | commandParserInterface | The command parser referred to |
void ConsoleServer::Update | ( | void | ) |
Call update to read packet sent from your TransportInterface. You should do this fairly frequently.