public interface Channel extends Closeable, SSHPacketHandler, ErrorNotifiable
Modifier and Type | Interface and Description |
---|---|
static interface |
Channel.Direct
Direct channels are those that are initiated by us.
|
static interface |
Channel.Forwarded
Forwarded channels are those that are initiated by the server.
|
ErrorNotifiable.Util
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this channel.
|
boolean |
getAutoExpand() |
int |
getID() |
InputStream |
getInputStream() |
int |
getLocalMaxPacketSize() |
long |
getLocalWinSize() |
OutputStream |
getOutputStream() |
int |
getRecipient() |
int |
getRemoteMaxPacketSize() |
long |
getRemoteWinSize() |
String |
getType() |
boolean |
isOpen() |
void |
join() |
void |
join(int timeout,
TimeUnit unit) |
void |
sendEOF()
Sends an EOF message to the server for this channel; indicating that no more data will be sent by us.
|
void |
setAutoExpand(boolean autoExpand)
Set whether local window should automatically expand when data is received, irrespective of whether data has been
read from that stream.
|
handle
notifyError
void close() throws TransportException, ConnectionException
close
in interface AutoCloseable
close
in interface Closeable
TransportException
ConnectionException
boolean getAutoExpand()
setAutoExpand(boolean)
int getID()
InputStream getInputStream()
InputStream
for this channel.int getLocalMaxPacketSize()
long getLocalWinSize()
OutputStream getOutputStream()
OutputStream
for this channel.int getRecipient()
int getRemoteMaxPacketSize()
long getRemoteWinSize()
String getType()
boolean isOpen()
void sendEOF() throws TransportException
OutputStream
for this channel will be closed and no longer usable.TransportException
- if there is an error sending the EOF messagevoid setAutoExpand(boolean autoExpand)
InputStream
.autoExpand
- whether local windows should automatically expandvoid join() throws ConnectionException
ConnectionException
void join(int timeout, TimeUnit unit) throws ConnectionException
ConnectionException
Copyright © 2009–2015. All rights reserved.