Package com.sshtools.common.ssh
Interface Channel
- All Known Subinterfaces:
SessionChannel,SessionChannelServer
public interface Channel
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(ChannelEventListener listener) voidclose()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)
-
Method Details
-
getLocalWindow
com.sshtools.common.util.UnsignedInteger32 getLocalWindow() -
getRemoteWindow
com.sshtools.common.util.UnsignedInteger32 getRemoteWindow() -
getLocalPacket
int getLocalPacket() -
close
void close() -
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()
-