Class ChannelToPortHandler

    • Constructor Detail

      • ChannelToPortHandler

        public ChannelToPortHandler​(IoSession port,
                                    Channel channel)
    • Method Detail

      • getPortSession

        public IoSession getPortSession()
        Retrieves the IoSession for the port connection.
        Returns:
        the IoSession, never null
      • handleEof

        public void handleEof()
                       throws IOException
        Perform appropriate actions on the port session when the channel received an SSH_MSG_CHANNEL_EOF message.
        Throws:
        IOException
      • sendToPort

        public void sendToPort​(byte cmd,
                               byte[] data,
                               int off,
                               long len)
                        throws IOException
        Throws:
        IOException
      • handleWriteDataSuccess

        protected void handleWriteDataSuccess​(byte cmd,
                                              byte[] data,
                                              int off,
                                              int len)
      • handleWriteDataFailure

        protected void handleWriteDataFailure​(byte cmd,
                                              byte[] data,
                                              int off,
                                              int len,
                                              Throwable t)