Interface Channel

All Superinterfaces:
AutoCloseable
All Known Subinterfaces:
SessionChannel, SessionChannelServer

public interface Channel extends AutoCloseable
  • Method Details

    • getLocalWindow

      com.sshtools.common.util.UnsignedInteger32 getLocalWindow()
    • getRemoteWindow

      com.sshtools.common.util.UnsignedInteger32 getRemoteWindow()
    • getLocalPacket

      int getLocalPacket()
    • close

      void close()
      Specified by:
      close in interface AutoCloseable
    • sendData

      void sendData(byte[] array, int i, int size) throws IOException
      Throws:
      IOException
    • sendWindowAdjust

      void sendWindowAdjust(com.sshtools.common.util.UnsignedInteger32 count)
    • isClosed

      boolean isClosed()
    • addEventListener

      void addEventListener(ChannelEventListener listener)
    • removeEventListener

      void removeEventListener(ChannelEventListener listener)
    • sendChannelRequest

      void sendChannelRequest(String requestName, boolean wantReply, byte[] data)
    • 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

      void setAttribute(String name, Object val)
    • getAttribute

      <T> T getAttribute(String name)
    • getAttribute

      @Deprecated default <T> T getAttribute(String name, Class<T> clazz)
      Deprecated.
      TODO speak to @ludup, I believe this is unnecessary.