Scrollable
, InputProvider
, ExtendedTerminal
, Terminal
, Closeable
, AutoCloseable
public class TelnetTerminal extends ANSITerminal
TelnetTerminalServer
class when a client has connected in; this class will be the
interaction point for that client. All operations are sent to the client over the network socket and some of the
meta-operations (like echo mode) are communicated using Telnet negotiation language. You can't create objects of this
class directly; they are created for you when you are listening for incoming connections using a
TelnetTerminalServer
and a client connects.
A good resource on telnet communication is http://www.tcpipguide.com/free/t_TelnetProtocol.htm
Also here: http://support.microsoft.com/kb/231866
TelnetTerminalServer
Modifier and Type | Class | Description |
---|---|---|
static class |
TelnetTerminal.NegotiationState |
This class contains some of the various states that the Telnet negotiation protocol defines.
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Closes the socket to the client, effectively ending the telnet session and the terminal.
|
TelnetTerminal.NegotiationState |
getNegotiationState() |
Retrieves the current negotiation state with the client, containing details on what options have been enabled
and what the client has said it supports.
|
SocketAddress |
getRemoteSocketAddress() |
Returns the socket address for the remote endpoint of the telnet connection
|
addResizeListener, newTextGraphics, onResized, onResized, removeResizeListener
clearScreen, deiconify, disableSGR, enableSGR, enterPrivateMode, exitPrivateMode, findTerminalSize, getCursorPosition, getDefaultKeyDecodingProfile, getTerminalSize, iconify, maximize, pollInput, popTitle, pushTitle, readInput, resetColorAndSGR, scrollLines, setBackgroundColor, setCursorPosition, setCursorPosition, setCursorVisible, setForegroundColor, setMouseCaptureMode, setTerminalSize, setTitle, unmaximize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addKeyDecodingProfile, bell, enquireTerminal, flush, getCharset, getInputDecoder, putCharacter, translateCharacter, writeToTerminal
addResizeListener, bell, enquireTerminal, flush, newTextGraphics, putCharacter, removeResizeListener
public SocketAddress getRemoteSocketAddress()
public TelnetTerminal.NegotiationState getNegotiationState()
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in interface Terminal
close
in class ANSITerminal
IOException
- If there was an underlying I/O errorCopyright © 2020. All rights reserved.