Package com.sshtools.j2ssh.forwarding
Class ForwardingClient.ClientForwardingListener
java.lang.Object
com.sshtools.j2ssh.forwarding.ForwardingConfiguration
com.sshtools.j2ssh.forwarding.ForwardingListener
com.sshtools.j2ssh.forwarding.ForwardingClient.ClientForwardingListener
- All Implemented Interfaces:
Runnable
- Enclosing class:
ForwardingClient
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sshtools.j2ssh.forwarding.ForwardingConfiguration
ForwardingConfiguration.ForwardingConfigurationMonitor
-
Field Summary
Fields inherited from class com.sshtools.j2ssh.forwarding.ForwardingConfiguration
addressToBind, hostToConnect, listenerList, monitor, name, portToBind, portToConnect, state
-
Constructor Summary
ConstructorsConstructorDescriptionClientForwardingListener
(String name, ConnectionProtocol connection, String addressToBind, int portToBind, String hostToConnect, int portToConnect) -
Method Summary
Modifier and TypeMethodDescriptioncreateChannel
(String hostToConnect, int portToConnect, Socket socket) Methods inherited from class com.sshtools.j2ssh.forwarding.ForwardingListener
getLocalPort, isListening, isRunning, run, start, stop
Methods inherited from class com.sshtools.j2ssh.forwarding.ForwardingConfiguration
addForwardingConfigurationListener, createForwardingBindingChannel, createForwardingIOChannel, createForwardingSocketChannel, getActiveForwardingSocketChannels, getAddressToBind, getHostToConnect, getName, getPortToBind, getPortToConnect, getState, isForwarding, removeForwardingConfigurationListener
-
Constructor Details
-
ClientForwardingListener
public ClientForwardingListener(String name, ConnectionProtocol connection, String addressToBind, int portToBind, String hostToConnect, int portToConnect)
-
-
Method Details
-
createChannel
public ForwardingSocketChannel createChannel(String hostToConnect, int portToConnect, Socket socket) throws ForwardingConfigurationException - Specified by:
createChannel
in classForwardingListener
- Parameters:
hostToConnect
-portToConnect
-socket
-- Returns:
- Throws:
ForwardingConfigurationException
-