com.maverick.sshd.vtun
Class VTunRemoteForwardingChannel

java.lang.Object
  extended by com.maverick.sshd.Channel
      extended by com.maverick.sshd.tunnel.ForwardingChannel
          extended by com.maverick.sshd.vtun.VTunForwardingChannel
              extended by com.maverick.sshd.vtun.VTunRemoteForwardingChannel
All Implemented Interfaces:
com.maverick.ssh.components.SshComponent

public class VTunRemoteForwardingChannel
extends 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
VTunRemoteForwardingChannel(String addressToBind, int portToBind)
           
 
Method Summary
protected  byte[] createChannel()
          Called when the channel is being created.
protected  void onChannelBind()
           
protected  void onChannelOpenConfirmation()
          Called when the channel has been confirmed as open.
 
Methods inherited from class com.maverick.sshd.vtun.VTunForwardingChannel
bind, evaluateWindowSpace, onChannelClosed, onChannelClosing, onChannelData, onChannelFree, onChannelOpen, onChannelOpenFailure, onChannelRequest, onExtendedData, onLocalEOF, onRemoteEOF, openChannel
 
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

VTunRemoteForwardingChannel

public VTunRemoteForwardingChannel(String addressToBind,
                                   int portToBind)
Method Detail

onChannelBind

protected void onChannelBind()
Specified by:
onChannelBind in class VTunForwardingChannel

onChannelOpenConfirmation

protected void onChannelOpenConfirmation()
Called when the channel has been confirmed as open. Here we bind the output channel (local channel).

Overrides:
onChannelOpenConfirmation in class VTunForwardingChannel

createChannel

protected byte[] createChannel()
                        throws IOException
Called when the channel is being created.

Overrides:
createChannel in class VTunForwardingChannel
Returns:
byte[]
Throws:
IOException


Copyright © 2012. All Rights Reserved.