|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Channel
A channel is the basic medium for application-layer data on top of an SSH transport.
Nested Class Summary | |
---|---|
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. |
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.ErrorNotifiable |
---|
ErrorNotifiable.Util |
Method Summary | |
---|---|
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. |
Methods inherited from interface net.schmizz.sshj.common.SSHPacketHandler |
---|
handle |
Methods inherited from interface net.schmizz.sshj.common.ErrorNotifiable |
---|
notifyError |
Method Detail |
---|
void close() throws TransportException, ConnectionException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |