public interface SshChannel extends SshIO
The base interface for all SSH channels. SSH Channels enable the multiplexing of several unique data channels over a single SSH connection, each channel is identified by an unique ID and provides a set of IO streams for sending and recieving data.
Modifier and Type | Method and Description |
---|---|
void |
addChannelEventListener(ChannelEventListener listener)
Provides an event listening mechanism.
|
int |
getChannelId()
Get the id of this channel.
|
SshClient |
getClient()
The SshClient that this channel belongs to
|
int |
getMaximumLocalPacketLength()
The maximum packet length supported by this channel.
|
long |
getMaximumLocalWindowSize() |
int |
getMaximumRemotePacketLength()
The maximum packet length supported by this channel.
|
long |
getMaximumRemoteWindowSize() |
SshMessageRouter |
getMessageRouter()
Returns the message router instance to which this channel belongs.
|
long |
getRemoteWindow() |
boolean |
isClosed()
Evaluate whether the channel is closed.
|
void |
removeChannelEventListener(ChannelEventListener listener)
Provides an event listening mechanism.
|
void |
setAutoConsumeInput(boolean autoConsumeInput)
Automatically consume input data
|
void |
waitForOpen()
Wait for a channel to open, be carefull not to call this on a thread that is serving as the connections message pump.
|
close, getInputStream, getOutputStream
int getChannelId()
boolean isClosed()
true
if the channel is closed, otherwise false
void addChannelEventListener(ChannelEventListener listener)
listener
- void removeChannelEventListener(ChannelEventListener listener)
listener
- void setAutoConsumeInput(boolean autoConsumeInput)
autoConsumeInput
- booleanSshMessageRouter getMessageRouter()
void waitForOpen()
int getMaximumRemotePacketLength()
int getMaximumLocalPacketLength()
SshClient getClient()
long getRemoteWindow()
long getMaximumRemoteWindowSize()
long getMaximumLocalWindowSize()
Copyright © 2024. All rights reserved.