com.mindbright.ssh2
public class SSH2InternalChannel extends SSH2StreamChannel
Modifier and Type | Field and Description |
---|---|
protected InputStreamPipe |
rxPipe |
protected OutputStreamPipe |
txPipe |
in, log, nbin, nbout, out, receiver, rxCounter, rxQueue, transmitter, txCounter
channelId, channelType, closeListeners, closeReceived, closeSent, connection, creator, deleted, eofReceived, eofSent, openMonitor, openStatus, peerChanId, rxCurrWinSz, rxInitWinSz, rxMaxPktSz, STATUS_CLOSED, STATUS_FAILED, STATUS_OPEN, STATUS_UNDEFINED, txCurrWinSz, txInitWinSz, txMaxPktSz
Constructor and Description |
---|
SSH2InternalChannel(int channelType,
SSH2Connection connection)
Create a new internal channel of the given type.
|
SSH2InternalChannel(int channelType,
SSH2Connection connection,
boolean pty) |
SSH2InternalChannel(int channelType,
SSH2Connection connection,
NonBlockingInput in,
NonBlockingOutput out)
Create a new internal channel of the given type.
|
SSH2InternalChannel(int channelType,
SSH2Connection connection,
NonBlockingInput in,
NonBlockingOutput out,
boolean pty) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Get the input stream of the channel.
|
java.io.OutputStream |
getOutputStream()
Get the output stream of the channel.
|
applyFilter, checkRxWindowSize, closeImpl, completed, connected, connectionFailed, createStreams, data, eofImpl, handleRequestImpl, openConfirmationImpl, openFailureImpl, outputClosed, readFailed, startStreams, waitUntilClosed, waitUntilClosed, windowAdjustImpl, writeFailed
addCloseListener, close, extData, getChannelId, getConnection, getCreator, getPeerId, getType, handleRequest, init, openConfirmation, openFailure, openStatus, recvClose, recvEOF, removeCloseListener, requestFailure, requestSuccess, sendClose, sendEOF, transmit, windowAdjust
protected InputStreamPipe rxPipe
protected OutputStreamPipe txPipe
public SSH2InternalChannel(int channelType, SSH2Connection connection)
SSH2Connection
and starts with
CH_TYPE
.channelType
- Type of channel to create.connection
- The ssh connection to associate the channel with.public SSH2InternalChannel(int channelType, SSH2Connection connection, boolean pty)
public SSH2InternalChannel(int channelType, SSH2Connection connection, NonBlockingInput in, NonBlockingOutput out)
SSH2Connection
and starts with
CH_TYPE
. This constructor causes the channel to
use the provided non-blocking streams for input and outputchannelType
- Type of channel to create.connection
- The ssh connection to associate the channel
with.in
- Non-blocking stream which the channel reads
data from, the read dat ais the sent over
the ssh connection to the serverout
- Non-blocking stream which the channel writes
data to. The data comes from the ssh server.public SSH2InternalChannel(int channelType, SSH2Connection connection, NonBlockingInput in, NonBlockingOutput out, boolean pty)