public class Telnet
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
static int |
DO
Indicates the request that the other party perform, or
confirmation that you are expecting the other party to perform, the
indicated option.
|
static int |
DONT |
static int |
ECHO |
static int |
SUPPRESS_GO_AHEAD |
byte[] |
terminalType |
static int |
WILL
Indicates the desire to begin performing, or confirmation that
you are now performing, the indicated option.
|
short |
windowHeight |
short |
windowWidth |
static int |
WONT
Indicates the refusal to perform,or continue performing, the
indicated option.
|
Constructor and Description |
---|
Telnet(java.net.Socket socket,
boolean isServer) |
Modifier and Type | Method and Description |
---|---|
TelnetInputStream |
getInputStream() |
TelnetOutputStream |
getOutputStream() |
static void |
main(java.lang.String[] args) |
void |
request(int command,
int option)
Request (from this side) a new option state.
|
void |
run() |
void |
subCommand(byte[] buf,
int off,
int len)
Handle a sub-command (SB-sequence) that we received.
|
public static final int WILL
public static final int WONT
public static final int DO
public static final int DONT
public static final int ECHO
public static final int SUPPRESS_GO_AHEAD
public short windowHeight
public short windowWidth
public byte[] terminalType
public Telnet(java.net.Socket socket, boolean isServer) throws java.io.IOException
java.io.IOException
public TelnetInputStream getInputStream()
public TelnetOutputStream getOutputStream()
public void subCommand(byte[] buf, int off, int len)
public void request(int command, int option) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
public void run()
run
in interface java.lang.Runnable