Package com.trilead.ssh2.channel
Class Channel
java.lang.Object
com.trilead.ssh2.channel.Channel
Channel.
- Version:
- $Id: Channel.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
(package private) int
This channel's session size.(package private) final Object
(package private) boolean
(package private) boolean
(package private) final ChannelManager
private boolean
(package private) String
(package private) Integer
(package private) int
(package private) String
(package private) int
(package private) int
(package private) int
private static final Logger
(package private) final byte[]
private Throwable
private final Object
(package private) int
(package private) int
(package private) long
(package private) int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) final Channel.Output
(package private) final ChannelOutputStream
(package private) final Channel.Output
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
eof()
(package private) void
freeupWindow
(int copylen) Update the flow control couner and if necessary, sends ACK to the other end to let it send more data.(package private) void
freeupWindow
(int copylen, boolean sendAsync) Update the flow control couner and if necessary, sends ACK to the other end to let it send more data.Deprecated.(package private) boolean
isEOF()
void
void
void
requestWindowChange
(int term_width_characters, int term_height_characters, int term_width_pixels, int term_height_pixels) void
setReasonClosed
(String reasonClosed) void
setReasonClosed
(Throwable reasonClosed) void
setWindowSize
(int newSize) void
-
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 channelBufferSizeThis channel's session size. -
cm
-
stdinStream
-
stdout
-
stderr
-
localID
int localID -
remoteID
int remoteID -
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
-
reasonClosed
-
log
-
-
Constructor Details
-
Channel
-
-
Method Details
-
eof
void eof() -
isEOF
boolean isEOF() -
setWindowSize
public void setWindowSize(int newSize) -
getStderrStream
-
getStdinStream
-
getStdoutStream
-
pipeStdoutStream
- Throws:
IOException
-
pipeStderrStream
- Throws:
IOException
-
getExitSignal
-
getExitStatus
-
getReasonClosed
Deprecated.Gets reason closed.- Returns:
- the reason closed
-
getReasonClosedCause
-
setReasonClosed
-
setReasonClosed
-
freeupWindow
Update the flow control couner and if necessary, sends ACK to the other end to let it send more data.- Throws:
IOException
-
freeupWindow
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
- Throws:
IOException
-
getReasonClosedCause()