Package com.iizix.term.comm
Interface TelnetCommListener
- All Known Implementing Classes:
- HostSession3270,- HostSession5250
public interface TelnetCommListener
The Telnet communication listener.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- void- hostAcceptedDataStream- (TelnetComm comm, String terminalType) The host accepted the options for the terminal type and went into BINARY mode.- void- onCommClosed- (TelnetComm comm) Called when the communication link is closed.- void- onCommConnected- (TelnetComm comm) Called when the communication link is connected.- void- onCommError- (TelnetComm comm, IOException e) Called when the communication link is closed.- void- onCommOpen- (TelnetComm comm) Called when the communication link is opened.- void- onCommState- (SocketCommNIO comm) Called when the state changes.- void- processInboundDataStream- (TelnetComm comm, byte[] inputBuf, int pos, int inputBufLen) Processes the inbound 3270 or 5250 data stream.- void- processInboundSCSDataStream- (TelnetComm comm, byte[] inputBuf, int inputBufLen) Processes the inbound 3270 printer data stream.- void- processInboundSSCPLUDataStream- (TelnetComm comm, byte[] inputBuf, int pos, int inputBufLen) Processes the inbound 3270 SSCP-LU data stream.- void- processPrintEOJ- (TelnetComm comm) Processes a Print End-of-Job for 3270 printers.
- Method Details- onCommOpenCalled when the communication link is opened.- Parameters:
- comm- The telnet communication instance.
 
- onCommStateCalled when the state changes.- Parameters:
- comm- Socket communication instance.
 
- onCommConnectedCalled when the communication link is connected.- Parameters:
- comm- The telnet communication instance.
 
- hostAcceptedDataStreamThe 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.
 
- processInboundDataStreamvoid 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.
 
- processInboundSCSDataStreamvoid 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.
 
- processInboundSSCPLUDataStreamvoid 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.
 
- processPrintEOJProcesses a Print End-of-Job for 3270 printers.- Parameters:
- comm- The telnet communication instance.
- Throws:
- IOException- If an I/O error occurs.
 
- onCommErrorCalled when the communication link is closed.- Parameters:
- comm- The telnet communication instance.
- e- The exception.
 
- onCommClosedCalled when the communication link is closed.- Parameters:
- comm- The telnet communication instance.