public class VTunBoundForwardingChannel extends VTunForwardingChannel
Channel.QueuedDatahostToConnect, originatingHost, originatingPort, portToConnectconnection, localwindow, localWindowLock, state| Constructor and Description |
|---|
VTunBoundForwardingChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method closes the channel and free's its resources.
|
protected void |
onChannelBind()
Completes the local-remote connection by sending the channel open confirmation
message to the local forwarding client.
|
protected byte[] |
openChannel(byte[] requestdata)
Called when the channel is being opened.
|
bind, createChannel, evaluateWindowSpace, onChannelClosed, onChannelClosing, onChannelData, onChannelFree, onChannelOpen, onChannelOpenConfirmation, onChannelOpenFailure, onChannelRequest, onExtendedData, onLocalEOF, onRemoteEOFgetHost, getInformation, getOriginatingHost, getOriginatingPort, getPortaddEventListener, addInputListener, addOutputListener, canClose, getConnection, getContext, getLocalId, getLocalPacket, getLocalWindow, getName, getQueueSize, getRemoteId, getRemotePacket, getRemoteWindow, getSessionIdentifier, hasQueuedData, idle, isClosed, isClosing, isEOF, isLocalEOF, isOpen, isRemoteEOF, onRemoteClose, onWindowAdjust, queueSize, registerExtendedData, removeEventListener, sendChannelData, sendChannelData, sendChannelRequest, sendEOF, sendExtendedData, sendRequestResponse, sendWindowAdjustpublic void close()
Channelprotected void onChannelBind()
onChannelBind in class VTunForwardingChannelprotected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
com.maverick.ssh.ChannelOpenException
Called when the channel is being opened.
Check the remote forwardings for a listener on the requested port and start the connection process if found. If not found the channel is denied.
openChannel in class VTunForwardingChannelrequestdata - the channel open request data (contains host information etc)WriteOperationRequest - allows us to perform asynchronous opening on the channelcom.maverick.ssh.ChannelOpenException - if the channel should not be opened.Copyright © 2012. All Rights Reserved.