com.sshtools.j2ssh.forwarding

Class ForwardingClient.ClientForwardingListener

Enclosing Class:
ForwardingClient
Implemented Interfaces:
Runnable

public class ForwardingClient.ClientForwardingListener
extends ForwardingListener

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

ClientForwardingListener(String name, ConnectionProtocol connection, String addressToBind, int portToBind, String hostToConnect, int portToConnect)
Creates a new ForwardingListener object.

Method Summary

ForwardingSocketChannel
createChannel(String hostToConnect, int portToConnect, Socket socket)

Methods inherited from class com.sshtools.j2ssh.forwarding.ForwardingListener

createChannel, 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, start, stop

Constructor Details

ClientForwardingListener

public ClientForwardingListener(String name,
                                ConnectionProtocol connection,
                                String addressToBind,
                                int portToBind,
                                String hostToConnect,
                                int portToConnect)
Creates a new ForwardingListener object.
Parameters:
name -
connection -
addressToBind -
portToBind -
hostToConnect -
portToConnect -

Method Details

createChannel

public ForwardingSocketChannel createChannel(String hostToConnect,
                                             int portToConnect,
                                             Socket socket)
            throws ForwardingConfigurationException
Overrides:
createChannel in interface ForwardingListener
Parameters:
hostToConnect -
portToConnect -
socket -
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.