Interface OutputHandler


public interface OutputHandler
A general handler for outgoing messages.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.sshd.common.io.IoWriteFuture
    send(int cmd, org.apache.sshd.common.util.buffer.Buffer message)
    Sends an outgoing message.
  • Method Details

    • send

      org.apache.sshd.common.io.IoWriteFuture send(int cmd, org.apache.sshd.common.util.buffer.Buffer message) throws IOException
      Sends an outgoing message.
      Parameters:
      cmd - the SSH command code of the buffer being written; must also be included in the buffer
      message - Buffer containing the message; not to be re-used before the returned future is fulfilled
      Returns:
      an IoWriteFuture that will be fulfilled once the message has been sent.
      Throws:
      Exception - if an error occurs in handling the message
      IOException