kawa
public class Telnet extends Object implements Runnable
| Field Summary | |
|---|---|
| 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 |
| short | windowHeight |
| short | windowWidth |
| static int | WILL Indicates the desire to begin performing, or confirmation that
you are now performing, the indicated option. |
| static int | WONT Indicates the refusal to perform,or continue performing, the
indicated option. |
| Constructor Summary | |
|---|---|
| Telnet(Socket socket, boolean isServer) | |
| Method Summary | |
|---|---|
| TelnetInputStream | getInputStream() |
| TelnetOutputStream | getOutputStream() |
| static void | main(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. |