public class AgentSocketForwardingChannel extends Ssh2Channel implements ChannelEventListener
SESSION_CHANNEL
CHANNEL_CLOSED, CHANNEL_OPEN, CHANNEL_UNINITIALIZED, channelid, manager, ms, state
Constructor and Description |
---|
AgentSocketForwardingChannel(String name,
Socket socket) |
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(SshChannel channel)
A channel is closed.
|
void |
channelClosing(SshChannel channel)
A channel is closing.
|
void |
channelEOF(SshChannel channel)
A channel's input is EOF.
|
void |
channelOpened(SshChannel channel)
A channel has been opened.
|
void |
dataReceived(SshChannel channel,
byte[] data,
int off,
int len)
A block of data has been received by the channel.
|
void |
dataSent(SshChannel channel,
byte[] data,
int off,
int len)
A block of data has been sent by the channel.
|
void |
extendedDataReceived(SshChannel channel,
byte[] data,
int off,
int len,
int extendedDataType)
A block of extended data has been received by the channel.
|
addChannelEventListener, channelEOF, channelRequest, checkCloseStatus, close, create, createExtendedDataStream, equals, free, getClient, getConnection, getInputStream, getMaximumLocalPacketLength, getMaximumLocalWindowSize, getMaximumRemotePacketLength, getMaximumRemoteWindowSize, getMessageStore, getName, getOutputStream, getRemoteWindow, getStickyMessageIds, idle, isSendKeepAliveOnIdle, open, open, processChannelMessage, processExtendedData, processStandardData, removeChannelEventListener, sendRequest, sendRequest, setAutoConsumeInput, setSendKeepAliveOnIdle
getChannelId, getMessageRouter, init, isClosed, waitForOpen
public void channelOpened(SshChannel channel)
ChannelEventListener
channelOpened
in interface ChannelEventListener
channel
- the opened channel.public void channelClosing(SshChannel channel)
ChannelEventListener
channelClosing
in interface ChannelEventListener
channel
- the channel closing.public void channelClosed(SshChannel channel)
ChannelEventListener
channelClosed
in interface ChannelEventListener
channel
- the closed channel.public void channelEOF(SshChannel channel)
ChannelEventListener
channelEOF
in interface ChannelEventListener
channel
- SshChannelpublic void dataReceived(SshChannel channel, byte[] data, int off, int len)
ChannelEventListener
dataReceived
in interface ChannelEventListener
channel
- SshChanneldata
- byte[]off
- intlen
- intpublic void dataSent(SshChannel channel, byte[] data, int off, int len)
ChannelEventListener
dataSent
in interface ChannelEventListener
channel
- SshChanneldata
- byte[]off
- intlen
- intpublic void extendedDataReceived(SshChannel channel, byte[] data, int off, int len, int extendedDataType)
ChannelEventListener
extendedDataReceived
in interface ChannelEventListener
extendedDataType
- the extended data typeCopyright © 2024. All rights reserved.