CLI
2.9
|
Telnet server class. More...
#include <telnet.h>
Public Member Functions | |
TelnetServer (const unsigned int UI_MaxConnections, const unsigned long UL_TcpPort, const ResourceString::LANG E_Lang) | |
Constructor. More... | |
virtual | ~TelnetServer (void) |
Destructor. More... | |
void | StartServer (void) |
Starts the server. More... | |
void | StopServer (void) |
Stops the server. More... | |
![]() | |
virtual | ~Object (void)=0 |
Pure virtual destructor. More... | |
Protected Member Functions | |
virtual ExecutionContext *const | OnNewConnection (const TelnetConnection &CLI_NewConnection)=0 |
Execution context creation handler. More... | |
virtual void | OnCloseConnection (const TelnetConnection &CLI_ConnectionClosed, ExecutionContext *const PCLI_Context)=0 |
Execution context release handler. More... | |
![]() | |
Object (void) | |
Default constructor only available to sub-classes. More... | |
Telnet server class.
Virtual object that shall be overridden for ExecutionContext (shell & cli basically) instance creations.
|
explicit |
Constructor.
UI_MaxConnections | Maximum number of connections managed at the same time. |
UL_TcpPort | TCP port to listen onto. |
E_Lang | Debugging language. |
|
virtual |
Destructor.
|
protectedpure virtual |
Execution context release handler.
CLI_ConnectionClosed | Telnet connection being closed. |
PCLI_Context | Execution context to be released. |
|
protectedpure virtual |
Execution context creation handler.
CLI_NewConnection | New telnet connection to create a context for. |
void TelnetServer::StartServer | ( | void | ) |
Starts the server.
void TelnetServer::StopServer | ( | void | ) |
Stops the server.