Interface OutputHandler
public interface OutputHandler
A general handler for outgoing messages.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.sshd.common.io.IoWriteFuturesend(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 buffermessage-Buffercontaining the message; not to be re-used before the returned future is fulfilled- Returns:
- an
IoWriteFuturethat will be fulfilled once the message has been sent. - Throws:
Exception- if an error occurs in handling the messageIOException
-