public class ChannelToPortHandler extends AbstractLoggingBean
| Modifier and Type | Field and Description |
|---|---|
private Channel |
channel |
private IoSession |
port |
log| Constructor and Description |
|---|
ChannelToPortHandler(IoSession port,
Channel channel) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkWindow(byte cmd) |
IoSession |
getPortSession()
Retrieves the
IoSession for the port connection. |
void |
handleEof()
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,
java.lang.Throwable t) |
protected void |
handleWriteDataSuccess(byte cmd,
byte[] data,
int off,
int len) |
void |
sendToPort(byte cmd,
byte[] data,
int off,
long len) |
public IoSession getPortSession()
IoSession for the port connection.IoSession, never nullpublic void handleEof()
throws java.io.IOException
java.io.IOExceptionpublic void sendToPort(byte cmd,
byte[] data,
int off,
long len)
throws java.io.IOException
java.io.IOExceptionprotected void handleWriteDataSuccess(byte cmd,
byte[] data,
int off,
int len)
protected void handleWriteDataFailure(byte cmd,
byte[] data,
int off,
int len,
java.lang.Throwable t)
private void checkWindow(byte cmd)