public class ChannelToPortHandler extends AbstractLoggingBean
log
Constructor and Description |
---|
ChannelToPortHandler(IoSession port,
Channel channel) |
Modifier and Type | Method and Description |
---|---|
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,
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 null
public void handleEof() throws IOException
IOException
public void sendToPort(byte cmd, byte[] data, int off, long len) throws IOException
IOException
protected void handleWriteDataSuccess(byte cmd, byte[] data, int off, int len)
protected void handleWriteDataFailure(byte cmd, byte[] data, int off, int len, Throwable t)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.