Class Channel

java.lang.Object
com.trilead.ssh2.channel.Channel

public class Channel extends Object
Channel.
Version:
$Id: Channel.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
  • Field Details

    • STATE_OPENING

      static final int STATE_OPENING
      See Also:
    • STATE_OPEN

      static final int STATE_OPEN
      See Also:
    • STATE_CLOSED

      static final int STATE_CLOSED
      See Also:
    • CHANNEL_BUFFER_SIZE

      private static final int CHANNEL_BUFFER_SIZE
    • channelBufferSize

      int channelBufferSize
      This channel's session size.
    • cm

      final ChannelManager cm
    • stdinStream

      final ChannelOutputStream stdinStream
    • stdout

      final Channel.Output stdout
    • stderr

      final Channel.Output stderr
    • localID

      int localID
    • remoteID

      int remoteID
    • channelSendLock

      final Object channelSendLock
    • closeMessageSent

      boolean closeMessageSent
    • msgWindowAdjust

      final byte[] msgWindowAdjust
    • state

      int state
    • closeMessageRecv

      boolean closeMessageRecv
    • successCounter

      int successCounter
    • failedCounter

      int failedCounter
    • localWindow

      int localWindow
    • remoteWindow

      long remoteWindow
    • localMaxPacketSize

      int localMaxPacketSize
    • remoteMaxPacketSize

      int remoteMaxPacketSize
    • eof

      private boolean eof
    • exit_status

      Integer exit_status
    • exit_signal

      String exit_signal
    • hexX11FakeCookie

      String hexX11FakeCookie
    • reasonClosedLock

      private final Object reasonClosedLock
    • reasonClosed

      private Throwable reasonClosed
    • log

      private static final Logger log
  • Constructor Details

  • Method Details

    • eof

      void eof()
    • isEOF

      boolean isEOF()
    • setWindowSize

      public void setWindowSize(int newSize)
    • getStderrStream

      public ChannelInputStream getStderrStream()
    • getStdinStream

      public ChannelOutputStream getStdinStream()
    • getStdoutStream

      public ChannelInputStream getStdoutStream()
    • pipeStdoutStream

      public void pipeStdoutStream(OutputStream os) throws IOException
      Throws:
      IOException
    • pipeStderrStream

      public void pipeStderrStream(OutputStream os) throws IOException
      Throws:
      IOException
    • getExitSignal

      public String getExitSignal()
    • getExitStatus

      public Integer getExitStatus()
    • getReasonClosed

      public String getReasonClosed()
      Deprecated.
      Gets reason closed.
      Returns:
      the reason closed
    • getReasonClosedCause

      public Throwable getReasonClosedCause()
    • setReasonClosed

      public void setReasonClosed(String reasonClosed)
    • setReasonClosed

      public void setReasonClosed(Throwable reasonClosed)
    • freeupWindow

      void freeupWindow(int copylen) throws IOException
      Update the flow control couner and if necessary, sends ACK to the other end to let it send more data.
      Throws:
      IOException
    • freeupWindow

      void freeupWindow(int copylen, boolean sendAsync) throws IOException
      Update the flow control couner and if necessary, sends ACK to the other end to let it send more data.
      Throws:
      IOException
    • requestWindowChange

      public void requestWindowChange(int term_width_characters, int term_height_characters, int term_width_pixels, int term_height_pixels) throws IOException
      Throws:
      IOException
    • signal

      public void signal(String name) throws IOException
      Throws:
      IOException