public abstract class TelnetServer extends NativeObject
Constructor and Description |
---|
TelnetServer(int I_MaxConnections,
int I_TcpPort,
int E_Lang)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
onCloseConnection(TelnetConnection CLI_ConnectionClosed,
ExecutionContext.Interface CLI_Context)
Execution context release handler.
|
protected abstract ExecutionContext.Interface |
onNewConnection(TelnetConnection CLI_NewConnection) |
void |
startServer()
Starts the server.
|
void |
stopServer()
Stops the server
|
createdFromNative, dontFinalize, finalize, forget, getbDoFinalize, getNativeRef, getObject, remember
public TelnetServer(int I_MaxConnections, int I_TcpPort, int E_Lang)
I_MaxConnections
- Maximum number of connections managed at the same time.I_TcpPort
- TCP port to listen onto.E_Lang
- Debugging language.public void startServer()
public void stopServer()
protected abstract ExecutionContext.Interface onNewConnection(TelnetConnection CLI_NewConnection)
protected abstract void onCloseConnection(TelnetConnection CLI_ConnectionClosed, ExecutionContext.Interface CLI_Context)
CLI_ConnectionClosed
- Telnet connection being closed.CLI_Context
- Execution context to be released.