com.mindbright.ssh2
Class SSH2InternalChannel
java.lang.Object
com.mindbright.ssh2.SSH2Channel
com.mindbright.ssh2.SSH2StreamChannel
com.mindbright.ssh2.SSH2InternalChannel
- All Implemented Interfaces:
- NIOCallback
- Direct Known Subclasses:
- SSH2SessionChannel
public class SSH2InternalChannel
- extends SSH2StreamChannel
Implements an internal channel which is connected ot a pair of pipes.
Fields inherited from class com.mindbright.ssh2.SSH2Channel |
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 |
Method Summary |
java.io.InputStream |
getInputStream()
Get the input stream of the channel. |
java.io.OutputStream |
getOutputStream()
Get the output stream of the channel. |
Methods inherited from class com.mindbright.ssh2.SSH2StreamChannel |
applyFilter, checkRxWindowSize, closeImpl, completed, connected, connectionFailed, createStreams, data, eofImpl, handleRequestImpl, openConfirmationImpl, openFailureImpl, outputClosed, readFailed, startStreams, waitUntilClosed, waitUntilClosed, windowAdjustImpl, writeFailed |
Methods inherited from class com.mindbright.ssh2.SSH2Channel |
addCloseListener, close, extData, getChannelId, getConnection, getCreator, getPeerId, getType, handleRequest, init, openConfirmation, openFailure, openStatus, recvClose, recvEOF, removeCloseListener, requestFailure, requestSuccess, sendClose, sendEOF, transmit, windowAdjust |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rxPipe
protected InputStreamPipe rxPipe
txPipe
protected OutputStreamPipe txPipe
SSH2InternalChannel
public SSH2InternalChannel(int channelType,
SSH2Connection connection)
- Create a new internal channel of the given type. The channel is
associated with an ssh connection. Channel types are
defined in
SSH2Connection
and starts with
CH_TYPE
.
- Parameters:
channelType
- Type of channel to create.connection
- The ssh connection to associate the channel with.
SSH2InternalChannel
public SSH2InternalChannel(int channelType,
SSH2Connection connection,
NonBlockingInput in,
NonBlockingOutput out)
- Create a new internal channel of the given type. The channel is
associated with an ssh connection. Channel types are
defined in
SSH2Connection
and starts with
CH_TYPE
. This constructor causes the channel to
use the provided non-blocking streams for input and output
- Parameters:
channelType
- 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.
getInputStream
public java.io.InputStream getInputStream()
- Get the input stream of the channel.
- Returns:
- The input stream.
getOutputStream
public java.io.OutputStream getOutputStream()
- Get the output stream of the channel.
- Returns:
- The output stream.