public abstract class VTunForwardingChannel extends ForwardingChannel
Channel.QueuedDatahostToConnect, originatingHost, originatingPort, portToConnectconnection, localwindow, localWindowLock, state| Constructor and Description |
|---|
VTunForwardingChannel(String channelType,
int maximumPacketSize,
int initialWindowSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(VTunForwardingChannel outputChannel) |
protected byte[] |
createChannel()
Called when the channel is being created.
|
protected void |
evaluateWindowSpace(long remaining)
Called to evaluate the window space available.
|
protected abstract void |
onChannelBind() |
protected void |
onChannelClosed()
Called when the channel has been closed.
|
protected void |
onChannelClosing()
Called before the channel is closed
|
protected void |
onChannelData(byte[] data)
Called by the channel when data arrives from the remote side.
|
protected void |
onChannelFree()
This method is called when the channel has been closed and all its resources
are no longer required.
|
protected void |
onChannelOpen()
Called when the channel has been opened - this method is only called when
the remote side requests a channel open.
|
protected void |
onChannelOpenConfirmation()
Called when the channel has been confirmed as open by the remote side - this
method is only called when the channel has been requested by this side
of the connection
|
protected void |
onChannelOpenFailure()
Called when the remote side fails to open a channel in response to our
request.
|
protected void |
onChannelRequest(String type,
boolean wantreply,
byte[] requestdata)
Called when a channel request is received.
|
protected void |
onExtendedData(byte[] data,
int type)
Called by the channel when extended data arrives
|
protected void |
onLocalEOF()
Called when the local side is EOF.
|
protected void |
onRemoteEOF()
Called when the remote side reports its OutputStream as EOF.
|
protected byte[] |
openChannel(byte[] requestdata)
Called when the channel is being opened.
|
getHost, getInformation, getOriginatingHost, getOriginatingPort, getPortaddEventListener, addInputListener, addOutputListener, canClose, close, 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 VTunForwardingChannel(String channelType, int maximumPacketSize, int initialWindowSize)
public void bind(VTunForwardingChannel outputChannel)
protected abstract void onChannelBind()
protected void onChannelOpenFailure()
ChannelonChannelOpenFailure in class Channelprotected void onChannelClosed()
onChannelClosed in class Channelprotected void onChannelData(byte[] data)
onChannelData in class Channeldata - byte[]protected void onLocalEOF()
onLocalEOF in class Channelprotected void onRemoteEOF()
onRemoteEOF in class Channelprotected void onExtendedData(byte[] data,
int type)
ChannelonExtendedData in class Channelprotected void onChannelFree()
ChannelonChannelFree in class Channelprotected byte[] createChannel()
throws IOException
ChannelcreateChannel in class ChannelIOExceptionprotected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
com.maverick.ssh.ChannelOpenException
ChannelopenChannel in class ChannelWriteOperationRequestcom.maverick.ssh.ChannelOpenExceptionprotected void onChannelOpenConfirmation()
ChannelonChannelOpenConfirmation in class Channelprotected void onChannelOpen()
ChannelonChannelOpen in class Channelprotected void onChannelClosing()
ChannelonChannelClosing in class Channelprotected void onChannelRequest(String type, boolean wantreply, byte[] requestdata)
ChannelonChannelRequest in class Channelprotected void evaluateWindowSpace(long remaining)
ChannelevaluateWindowSpace in class ChannelCopyright © 2012. All Rights Reserved.