|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.Channel
com.maverick.sshd.tunnel.ForwardingChannel
com.maverick.sshd.vtun.VTunForwardingChannel
public abstract class VTunForwardingChannel
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.maverick.sshd.Channel |
|---|
Channel.QueuedData |
| Field Summary |
|---|
| Fields inherited from class com.maverick.sshd.tunnel.ForwardingChannel |
|---|
hostToConnect, originatingHost, originatingPort, portToConnect |
| Fields inherited from class com.maverick.sshd.Channel |
|---|
connection, localwindow, localWindowLock, state |
| Constructor Summary | |
|---|---|
VTunForwardingChannel(String channelType,
int maximumPacketSize,
int initialWindowSize)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.maverick.sshd.tunnel.ForwardingChannel |
|---|
getHost, getInformation, getOriginatingHost, getOriginatingPort, getPort |
| Methods inherited from class com.maverick.sshd.Channel |
|---|
addEventListener, 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, sendWindowAdjust |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VTunForwardingChannel(String channelType,
int maximumPacketSize,
int initialWindowSize)
| Method Detail |
|---|
public void bind(VTunForwardingChannel outputChannel)
protected abstract void onChannelBind()
protected void onChannelOpenFailure()
Channel
onChannelOpenFailure 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 Channel
protected void onExtendedData(byte[] data,
int type)
Channel
onExtendedData in class Channelprotected void onChannelFree()
Channel
onChannelFree in class Channel
protected byte[] createChannel()
throws IOException
Channel
createChannel in class ChannelIOException
protected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
com.maverick.ssh.ChannelOpenException
Channel
openChannel in class ChannelWriteOperationRequest
com.maverick.ssh.ChannelOpenExceptionprotected void onChannelOpenConfirmation()
Channel
onChannelOpenConfirmation in class Channelprotected void onChannelOpen()
Channel
onChannelOpen in class Channelprotected void onChannelClosing()
Channel
onChannelClosing in class Channel
protected void onChannelRequest(String type,
boolean wantreply,
byte[] requestdata)
Channel
onChannelRequest in class Channelprotected void evaluateWindowSpace(long remaining)
Channel
evaluateWindowSpace in class Channel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||