Package com.sshtools.common.ssh
Interface Channel
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SessionChannel,SessionChannelServer
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(ChannelEventListener listener) voidclose()<T> TgetAttribute(String name) default <T> TgetAttribute(String name, Class<T> clazz) Deprecated.intcom.sshtools.common.util.UnsignedInteger32com.sshtools.common.util.UnsignedInteger32booleanisClosed()booleanbooleanvoidremoveEventListener(ChannelEventListener listener) voidsendChannelRequest(String requestName, boolean wantReply, byte[] data) voidsendChannelRequest(String type, boolean wantreply, byte[] requestdata, ChannelRequestFuture future) voidsendData(byte[] array, int i, int size) voidsendWindowAdjust(com.sshtools.common.util.UnsignedInteger32 count) voidsetAttribute(String name, Object val)
-
Method Details
-
getLocalWindow
com.sshtools.common.util.UnsignedInteger32 getLocalWindow() -
getRemoteWindow
com.sshtools.common.util.UnsignedInteger32 getRemoteWindow() -
getLocalPacket
int getLocalPacket() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-
sendData
- Throws:
IOException
-
sendWindowAdjust
void sendWindowAdjust(com.sshtools.common.util.UnsignedInteger32 count) -
isClosed
boolean isClosed() -
addEventListener
-
removeEventListener
-
sendChannelRequest
-
sendChannelRequest
void sendChannelRequest(String type, boolean wantreply, byte[] requestdata, ChannelRequestFuture future) -
getConnection
SshConnection getConnection() -
getContext
Context getContext() -
isRemoteEOF
boolean isRemoteEOF() -
isLocalEOF
boolean isLocalEOF() -
getChannelType
String getChannelType() -
setAttribute
-
getAttribute
-
getAttribute
Deprecated.TODO speak to @ludup, I believe this is unnecessary.
-