public class TelnetSession extends TelnetStateThing implements Runnable
| Modifier | Constructor and Description |
|---|---|
protected |
TelnetSession(TelnetServer srv,
Socket s)
This constructor will only be called by TelnetServer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
_write(String s)
Writes a stream of characters to the stream.
|
void |
close()
Called when the session MUST close.
|
Object |
get(String name)
Removes a client data thing from this-session's session data.
|
String |
getName()
Returns a session name from the IP address and the port.
|
void |
init()
Called after construction before this session is fully accepted, this
retrieves all data, opens the streams and starts the reader thread.
|
void |
put(String n,
Object o)
Adds a client data thing to this-session's session data.
|
void |
run()
The actual reader thread's main code.
|
void |
write(String s)
Writes a string to this terminal.
|
getState, getStateString, inState, setStateprotected TelnetSession(TelnetServer srv, Socket s)
public String getName()
public void init()
throws Exception
Exceptionpublic void write(String s) throws Exception
Exceptionpublic void _write(String s) throws Exception
Exceptionpublic void close()
public void run()
Copyright © 2017 etc.to. All rights reserved.