Class LocalForwardingChannelFactoryImpl

java.lang.Object
com.sshtools.synergy.nio.ClientAcceptor
com.sshtools.synergy.ssh.SocketListeningForwardingChannelFactoryImpl<SshClientContext>
com.sshtools.client.LocalForwardingChannelFactoryImpl
All Implemented Interfaces:
com.sshtools.synergy.ssh.ForwardingChannelFactory<SshClientContext>

public class LocalForwardingChannelFactoryImpl extends com.sshtools.synergy.ssh.SocketListeningForwardingChannelFactoryImpl<SshClientContext>
Implements the configuration of a local forwarding listening socket.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.sshtools.synergy.ssh.SocketListeningForwardingChannelFactoryImpl

    com.sshtools.synergy.ssh.SocketListeningForwardingChannelFactoryImpl.ActiveTunnelManager<K extends com.sshtools.synergy.ssh.SshContext>
  • Field Summary

    Fields inherited from class com.sshtools.synergy.ssh.SocketListeningForwardingChannelFactoryImpl

    activeRemoteForwardings, addr, addressToBind, channelType, connection, portToBind, socketChannel
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalForwardingChannelFactoryImpl(String hostToConnect, int portToConnect)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.sshtools.synergy.ssh.ForwardingChannel<SshClientContext>
    createChannel(String channelType, com.sshtools.common.ssh.SshConnection con, String addressToBind, int portToBind, SocketChannel sc, SshClientContext context)
     
     
    int
     
    int
     

    Methods inherited from class com.sshtools.synergy.ssh.SocketListeningForwardingChannelFactoryImpl

    belongsTo, bindInterface, bindInterface, finishAccept, getActiveTunnelManager, stopAccepting, stopListening

    Methods inherited from class com.sshtools.synergy.nio.ClientAcceptor

    finishAccept

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LocalForwardingChannelFactoryImpl

      public LocalForwardingChannelFactoryImpl(String hostToConnect, int portToConnect)
  • Method Details

    • getChannelType

      public String getChannelType()
    • getStartedEventCode

      public int getStartedEventCode()
    • getStoppedEventCode

      public int getStoppedEventCode()
    • createChannel

      protected com.sshtools.synergy.ssh.ForwardingChannel<SshClientContext> createChannel(String channelType, com.sshtools.common.ssh.SshConnection con, String addressToBind, int portToBind, SocketChannel sc, SshClientContext context)
      Specified by:
      createChannel in class com.sshtools.synergy.ssh.SocketListeningForwardingChannelFactoryImpl<SshClientContext>