|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mindbright.ssh2.SSH2Channel
com.mindbright.ssh2.SSH2StreamChannel
com.mindbright.ssh2.SSH2ProcChannel
public class SSH2ProcChannel
This is a subclass of SSH2StreamChannel which
implements channels which are connected to a local process
| Field Summary | |
|---|---|
protected java.lang.String |
originAddr
|
protected int |
originPort
|
protected java.lang.Process |
proc
|
protected java.lang.String |
remoteAddr
|
protected int |
remotePort
|
| Fields inherited from class com.mindbright.ssh2.SSH2StreamChannel |
|---|
in, out, receiver, rxCounter, rxQueue, transmitter, txCounter |
| 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 |
| Constructor Summary | |
|---|---|
SSH2ProcChannel(int channelType,
SSH2Connection connection,
java.lang.Object creator,
java.lang.Process proc,
java.lang.String originAddr,
int originPort)
Create a new process channel of the given type. |
|
| Method Summary | |
|---|---|
java.lang.String |
getOriginAddress()
Get the address the connection is comming from |
int |
getOriginPort()
Get the port the connection is comming from |
protected boolean |
openFailureImpl(int reasonCode,
java.lang.String reasonText,
java.lang.String langTag)
Channel specific handling of open failures. |
protected void |
outputClosed()
Called when no more data can be written to the channel. |
java.lang.String |
toString()
Create a string representation of this object. |
| Methods inherited from class com.mindbright.ssh2.SSH2StreamChannel |
|---|
applyFilter, checkRxWindowSize, closeImpl, createStreams, data, eofImpl, handleRequestImpl, openConfirmationImpl, startStreams, waitUntilClosed, windowAdjustImpl |
| 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, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Process proc
protected java.lang.String originAddr
protected int originPort
protected java.lang.String remoteAddr
protected int remotePort
| Constructor Detail |
|---|
public SSH2ProcChannel(int channelType,
SSH2Connection connection,
java.lang.Object creator,
java.lang.Process proc,
java.lang.String originAddr,
int originPort)
throws java.io.IOException
SSH2Connection and starts with
CH_TYPE.
channelType - Type of channel to create.connection - The ssh connection to associate the channel with.creator - The object the channel is created from.proc - Process the channel communicates withoriginAddr - Originating host of remote connection.originPort - Originating port of remote connection.
java.io.IOException| Method Detail |
|---|
protected void outputClosed()
SSH2StreamChannel
outputClosed in class SSH2StreamChannel
protected boolean openFailureImpl(int reasonCode,
java.lang.String reasonText,
java.lang.String langTag)
SSH2Channel
openFailureImpl in class SSH2StreamChannelreasonCode - Code which tells why the open failed. See the
ssh protocol drafts for values.reasonText - A text explaining why the open failed.langTag - Tag identifying the language of the reason text.public java.lang.String getOriginAddress()
public int getOriginPort()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||