|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kawa.Telnet
public class Telnet
Encapsulates the state of a telnet connection. When run as an application, is a a minimal telnet client.
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
|
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 Summary | |
---|---|
Telnet(java.net.Socket socket,
boolean isServer)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public Telnet(java.net.Socket socket, boolean isServer) throws java.io.IOException
java.io.IOException
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |