public class TelnetThread extends Object implements Runnable, TelnetHost
Available 3270 terminal types:
- IBM-3278-2 - IBM-3278-3 - IBM-3278-4 - IBM-3278-5 - IBM-3287-1 - IBM-3279-2 - IBM-3278-2 - IBM-3279-3 - IBM-3278-3 - IBM-3279-4 - IBM-3278-4 - IBM-3279-5 - IBM-3278-5 - IBM-3287-1
Available 5250 terminal types:
- LATER....A common situation when the session is inactive is the transactions TIMING_MARK like:
- Receive IAC DO TIMING_MARK - Send IAC WILL TIMING_MARK
| Constructor and Description |
|---|
TelnetThread(boolean doTN3270E,
SSLParams sslData)
Creates the Telnet session for a 3270/5250 terminal.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the current connection.
|
void |
enableNewEnviron(int codepage,
String kbdType)
Enables the Telnet NEW-ENVIRON TN5250E negotiation.
|
void |
enableTN3270E()
Enables the Telnet TN3270E extensions.
|
String |
getDeviceName()
Gets the device name of the session.
|
void |
initialize(TelnetInterface i,
String terminalList)
Creates the Telnet session for a 3270/5250 terminal type list.
|
boolean |
isSecured()
Checks if the communication is secured with e.g.
|
void |
open(String host,
int port)
Opens the connection to the host at a specified port number.
|
protected void |
process(byte[] netBuf,
int netBufLen)
Processes incomming data.
|
void |
run()
The thread is running here.
|
boolean |
sendSpecialKey(int param)
Sends TN3270E special key (param=0 is Attention and param=1 is SysReq).
|
void |
sendSSCPLUData(short[] buf,
int n)
Sends SSCP LU data for a TN3270E session.
|
void |
setAssociatePrinterWithTerminal(String terminalName)
Sets associate printer for a printer session.
|
void |
setKeepAlive(int milliSeconds,
boolean nop)
Sets the timeout for keep-alive in milliseconds.
|
void |
write(byte[] buf)
Writes a raw buffer to the output followed by a flush.
|
void |
write(byte[] buf,
int count)
Writes a raw buffer to the output followed by a flush.
|
void |
write(short[] buf,
int n)
Writes an amount of bytes.
|
public TelnetThread(boolean doTN3270E,
SSLParams sslData)
public void setKeepAlive(int milliSeconds,
boolean nop)
public void enableNewEnviron(int codepage,
String kbdType)
enableNewEnviron in interface TelnetHostpublic void enableTN3270E()
public void setAssociatePrinterWithTerminal(String terminalName)
setAssociatePrinterWithTerminal in interface TelnetHostpublic void initialize(TelnetInterface i, String terminalList) throws IOException
initialize in interface TelnetHostIOException - if an I/O error occurs.public void close()
close in interface TelnetHostpublic void open(String host, int port) throws IOException
open in interface TelnetHostIOException - if an I/O error occurs.public boolean isSecured()
isSecured in interface TelnetHostprotected void process(byte[] netBuf,
int netBufLen)
throws IOException
IOException - if an I/O error occurs.public String getDeviceName()
getDeviceName in interface TelnetHostpublic void write(short[] buf,
int n)
throws IOException
write in interface TelnetHostIOException - if an I/O error occurs.public void write(byte[] buf)
throws IOException
IOExceptionpublic void write(byte[] buf,
int count)
throws IOException
IOExceptionpublic void sendSSCPLUData(short[] buf,
int n)
throws IOException
sendSSCPLUData in interface TelnetHostIOException - if an I/O error occurs.public boolean sendSpecialKey(int param)
throws IOException
sendSpecialKey in interface TelnetHostIOException - if an I/O error occurs.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.