public class RemoteForwardingChannel extends SocketForwardingChannel
Implements a Remote forwarding channel for use with forwarding sockets from the server machine through the client to some endpoint reachable from the client machine.
SocketForwardingChannel.QueuedData| Modifier and Type | Field and Description |
|---|---|
static String |
CHANNEL_TYPE |
hostToConnect, originatingHost, originatingPort, portToConnectconnection, localwindow, localWindowLock, state| Constructor and Description |
|---|
RemoteForwardingChannel(RemoteForwardingListeningInterface rfi,
org.apache.mina.core.session.IoSession session)
Constructs a forwarding channel of the type "forwarded-tcpip"
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
createChannel()
Creates the end of the channelopenmessage
string address that was connected
uint32 port that was connected
string originator IP address
uint32 originator port
|
protected void |
onChannelOpenFailure()
Either nothing was listening on the clients end of the tunnel, or the connection was rejected.
|
protected void |
onRegistrationComplete() |
protected void |
onRemoteEOF()
Called when the remote side is EOF.
|
protected byte[] |
openChannel(byte[] requestdata)
Called when the channel is being opened.
|
canClose, evaluateClosure, evaluateWindowSpace, onChannelClosed, onChannelClosing, onChannelData, onChannelFree, onChannelOpen, onChannelOpenConfirmation, onChannelRequest, onExtendedData, onLocalEOF, onRemoteClose, sendChannelDatagetHost, getInformation, getOriginatingHost, getOriginatingPort, getPortaddEventListener, addInputListener, addOutputListener, close, getConnection, getContext, getLocalId, getLocalPacket, getLocalWindow, getName, getQueueSize, getRemoteId, getRemotePacket, getRemoteWindow, getSessionIdentifier, hasQueuedData, idle, isClosed, isClosing, isEOF, isLocalEOF, isOpen, isRemoteEOF, onWindowAdjust, queueSize, registerExtendedData, removeEventListener, sendChannelData, sendChannelRequest, sendEOF, sendExtendedData, sendRequestResponse, sendWindowAdjustpublic static final String CHANNEL_TYPE
public RemoteForwardingChannel(RemoteForwardingListeningInterface rfi, org.apache.mina.core.session.IoSession session)
hostToConnect - StringportToConnect - intsocketChannel - SocketChannelprotected byte[] createChannel()
throws IOException,
com.maverick.ssh.ChannelOpenException
createChannel in class SocketForwardingChannelIOExceptioncom.maverick.ssh.ChannelOpenExceptionprotected void onRemoteEOF()
onRemoteEOF in class SocketForwardingChannelprotected void onRegistrationComplete()
protected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
com.maverick.ssh.ChannelOpenException
ChannelopenChannel in class SocketForwardingChannelWriteOperationRequestcom.maverick.ssh.ChannelOpenExceptionprotected void onChannelOpenFailure()
onChannelOpenFailure in class ChannelCopyright © 2012. All Rights Reserved.