| Modifier and Type | Field and Description |
|---|---|
static short |
BINARY |
static short |
BROADCAST
Custom byte for flagging the next bytes as broadcast message.
|
static short |
DO |
static short |
DONT |
static short |
EOR |
static short |
IAC |
static short |
NOP |
static short |
OPT_EOR |
static short |
OPTION_IS |
static short |
SB |
static short |
SE |
static short |
SEND_OPTION |
static short |
TERMINAL_TYPE |
static short |
WILL |
static short |
WONT |
| Constructor and Description |
|---|
RWTelnet(RWTn3270StreamParser rw,
int tn3270Model)
DOCUMENT ME!
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
connect(String host,
int port)
Performs a direct connection to the terminal server ommiting
SessionServer relay. |
protected void |
connect(String host,
int port,
String host3270,
int port3270)
Opens a network connection to the
SessionServer. |
protected void |
disconnect()
Disconnects the current session.
|
protected void |
receiveMessage(short[] netBuf)
Processes broadcast message.
|
void |
run()
The 'thread code' for this class.
|
protected void |
sendData(short[] out,
int outLen)
This method provides outbound communication to the Telnet host.
|
protected void |
setConnectionTimeout(int timeout)
Sets the connection timeout for the connect(String,int) method.
|
protected void |
setEncryption(boolean encryption)
Turns the encryption on and off.
|
protected void |
setSessionData(String key,
String value) |
public static final short SE
public static final short NOP
public static final short SB
public static final short WILL
public static final short WONT
public static final short DO
public static final short DONT
public static final short IAC
public static final short EOR
public static final short BINARY
public static final short TERMINAL_TYPE
public static final short OPT_EOR
public static final short OPTION_IS
public static final short SEND_OPTION
public static final short BROADCAST
public RWTelnet(RWTn3270StreamParser rw, int tn3270Model)
rw - the Parser for the incoming data stream.tn3270Model - the tn3270 model number corresponding to this
session.public void run()
Thread t = new Thread(RWTelnet
instance);
t.run; Any problems encountered
(IOException, Host Disconnect) will be transmitted back to the
consumer via the RWTnAction interface.protected void connect(String host, int port, String host3270, int port3270)
SessionServer.host - Hostname or IP address of the SessionServer/Hostport - the port number the SessionServer/Host is running onhost3270 - the Hostname or IP address of the 3270Host (if using
SessionServer)port3270 - port number of the target terminal server.protected void connect(String host, int port) throws UnknownHostException, IOException
SessionServer relay. added 5/12/98 to facilitate
packaging of the 3270 Servlet Developer's Toolkithost - destination server host name.port - destination terminal server port number.UnknownHostException - DOCUMENT ME!IOException - DOCUMENT ME!protected void disconnect()
protected void receiveMessage(short[] netBuf)
netBuf - DOCUMENT ME!protected void sendData(short[] out,
int outLen)
throws IOException
out - an array of shorts, representing the data to be sent to the
host.outLen - the number of valid bytes in the out arrayIOException - DOCUMENT ME!protected void setEncryption(boolean encryption)
encryption - True = on False = offprotected void setConnectionTimeout(int timeout)
timeout - integer value in secondsCopyright © 2013. All Rights Reserved.