|
Torque2D Reference
|
#include <telnetConsole.h>
Public Member Functions | |
| void | process () |
| void | setTelnetParameters (S32 port, const char *telnetPassword, const char *listenPassword, bool remoteEcho=false) |
| void | processConsoleLine (const char *line) |
Static Public Member Functions | |
| static void | create () |
| Initialize the telnet console. | |
| static void | destroy () |
| Shut down the telnet console. | |
Telnet admin console.
Torque supports remote access to its console. This is most useful when running a dedicated server, as you can remotely administer the game (for instance, kicking people). In the context of a MMORPG, this sort of functionality would be useful for managing a server.
There are a number of products for Tribes2 which allow remote administration via a nice GUI.
The TelnetConsole is designed to be used globally, so you don't instantiate it like a normal class. Instead, you allow it to manage itself:
|
static |
Initialize the telnet console.
|
static |
Shut down the telnet console.
| void process | ( | ) |
Called by the main loop to let the console process commands and connections.
| void processConsoleLine | ( | const char * | line | ) |
Callback to handle a line from the console.
| void setTelnetParameters | ( | S32 | port, |
| const char * | telnetPassword, | ||
| const char * | listenPassword, | ||
| bool | remoteEcho = false |
||
| ) |
Configure the parameter for the telnet console.
| port | Port on which to listen for connections. |
| telnetPassword | Password for full access to the console. |
| listenPassword | Password for read-only access to the console. |
| remoteEcho | Enable/disable echoing input back to the client |