public class LocalForwardingChannel extends SocketForwardingChannel
Implements a Local forwarding channel for use with forwarding sockets from the client machine through the server to some endpoint reachable from the server machine.
SocketForwardingChannel.QueuedData| Modifier and Type | Field and Description |
|---|---|
static String |
CHANNEL_TYPE |
hostToConnect, originatingHost, originatingPort, portToConnectconnection, localwindow, localWindowLock, state| Constructor and Description |
|---|
LocalForwardingChannel() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
createChannel()
Create the forwarding channel.
|
void |
finishConnect(org.apache.mina.core.session.IoSession session,
boolean socketOpen)
Called when the forwarded socket has been connected.
|
protected byte[] |
openChannel(byte[] requestdata)
Open a forwarding channel.
|
canClose, evaluateClosure, evaluateWindowSpace, onChannelClosed, onChannelClosing, onChannelData, onChannelFree, onChannelOpen, onChannelOpenConfirmation, onChannelRequest, onExtendedData, onLocalEOF, onRemoteClose, onRemoteEOF, 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, onChannelOpenFailure, onWindowAdjust, queueSize, registerExtendedData, removeEventListener, sendChannelData, sendChannelRequest, sendEOF, sendExtendedData, sendRequestResponse, sendWindowAdjustpublic static final String CHANNEL_TYPE
protected byte[] createChannel()
createChannel in class SocketForwardingChannelprotected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
com.maverick.ssh.ChannelOpenException
openChannel in class SocketForwardingChannelrequestdata - byte[]WriteOperationRequestcom.maverick.ssh.ChannelOpenExceptionpublic void finishConnect(org.apache.mina.core.session.IoSession session,
boolean socketOpen)
key - SelectionKeyCopyright © 2012. All Rights Reserved.