Package org.apache.sshd.common.forward
Class ChannelToPortHandler
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.forward.ChannelToPortHandler
Implements forwarding messages received from a channel to a port in TCP/IP port forwarding.
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theIoSession
for the port connection.void
Perform appropriate actions on the port session when the channel received an SSH_MSG_CHANNEL_EOF message.protected void
handleWriteDataFailure
(byte cmd, byte[] data, int off, int len, Throwable t) protected void
handleWriteDataSuccess
(byte cmd, byte[] data, int off, int len) void
sendToPort
(byte cmd, byte[] data, int off, long len)
-
Constructor Details
-
ChannelToPortHandler
-
-
Method Details
-
getPortSession
Retrieves theIoSession
for the port connection.- Returns:
- the
IoSession
, nevernull
-
handleEof
Perform appropriate actions on the port session when the channel received an SSH_MSG_CHANNEL_EOF message.- Throws:
IOException
-
sendToPort
- Throws:
IOException
-
handleWriteDataSuccess
protected void handleWriteDataSuccess(byte cmd, byte[] data, int off, int len) -
handleWriteDataFailure
-