Package com.iizix.term.comm
Interface TelnetCommListener
- All Known Implementing Classes:
HostSession3270,HostSession5250
public interface TelnetCommListener
The Telnet communication listener.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoidhostAcceptedDataStream(TelnetComm comm, String terminalType) The host accepted the options for the terminal type and went into BINARY mode.voidonCommClosed(TelnetComm comm) Called when the communication link is closed.voidonCommConnected(TelnetComm comm) Called when the communication link is connected.voidonCommError(TelnetComm comm, IOException e) Called when the communication link is closed.voidonCommOpen(TelnetComm comm) Called when the communication link is opened.voidonCommState(SocketCommNIO comm) Called when the state changes.voidprocessInboundDataStream(TelnetComm comm, byte[] inputBuf, int pos, int inputBufLen) Processes the inbound 3270 or 5250 data stream.voidprocessInboundSCSDataStream(TelnetComm comm, byte[] inputBuf, int inputBufLen) Processes the inbound 3270 printer data stream.voidprocessInboundSSCPLUDataStream(TelnetComm comm, byte[] inputBuf, int pos, int inputBufLen) Processes the inbound 3270 SSCP-LU data stream.voidprocessPrintEOJ(TelnetComm comm) Processes a Print End-of-Job for 3270 printers.
Method Details
onCommOpen
Called when the communication link is opened.- Parameters:
comm- The telnet communication instance.
onCommState
Called when the state changes.- Parameters:
comm- Socket communication instance.
onCommConnected
Called when the communication link is connected.- Parameters:
comm- The telnet communication instance.
hostAcceptedDataStream
The host accepted the options for the terminal type and went into BINARY mode. This means that 3270/5250 data stream will follow. Inform the host session listener of a connect change.- Parameters:
comm- The telnet communication instance.terminalType- The terminal type accepted by the host at Telnet terminal negotiation.- Throws:
IOException- If an I/O error occurs.
processInboundDataStream
void processInboundDataStream(TelnetComm comm, byte[] inputBuf, int pos, int inputBufLen) throws IOException Processes the inbound 3270 or 5250 data stream.- Parameters:
comm- The telnet communication instance.inputBuf- The input buffer.pos- Start position in buffer.inputBufLen- Length of input buffer.- Throws:
IOException- If an I/O error occurs.
processInboundSCSDataStream
void processInboundSCSDataStream(TelnetComm comm, byte[] inputBuf, int inputBufLen) throws IOException Processes the inbound 3270 printer data stream. Processing of the buffer always starts at position 0.- Parameters:
comm- The telnet communication instance.inputBuf- The input buffer.inputBufLen- Length of input buffer.- Throws:
IOException- If an I/O error occurs.
processInboundSSCPLUDataStream
void processInboundSSCPLUDataStream(TelnetComm comm, byte[] inputBuf, int pos, int inputBufLen) throws IOException Processes the inbound 3270 SSCP-LU data stream.- Parameters:
comm- The telnet communication instance.inputBuf- The input buffer.pos- Start position in buffer.inputBufLen- Length of input buffer.- Throws:
IOException- If an I/O error occurs.
processPrintEOJ
Processes a Print End-of-Job for 3270 printers.- Parameters:
comm- The telnet communication instance.- Throws:
IOException- If an I/O error occurs.
onCommError
Called when the communication link is closed.- Parameters:
comm- The telnet communication instance.e- The exception.
onCommClosed
Called when the communication link is closed.- Parameters:
comm- The telnet communication instance.