From 49b779dcaf03e3598d2709b321e20ea029b25163 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 1 Oct 2014 23:04:51 +0100 Subject: Convert to gradle build system --- src/com/trilead/ssh2/LocalPortForwarder.java | 63 ---------------------------- 1 file changed, 63 deletions(-) delete mode 100644 src/com/trilead/ssh2/LocalPortForwarder.java (limited to 'src/com/trilead/ssh2/LocalPortForwarder.java') diff --git a/src/com/trilead/ssh2/LocalPortForwarder.java b/src/com/trilead/ssh2/LocalPortForwarder.java deleted file mode 100644 index 96fa082..0000000 --- a/src/com/trilead/ssh2/LocalPortForwarder.java +++ /dev/null @@ -1,63 +0,0 @@ - -package com.trilead.ssh2; - -import java.io.IOException; -import java.net.InetSocketAddress; - -import com.trilead.ssh2.channel.ChannelManager; -import com.trilead.ssh2.channel.LocalAcceptThread; - - -/** - * A LocalPortForwarder forwards TCP/IP connections to a local - * port via the secure tunnel to another host (which may or may not be identical - * to the remote SSH-2 server). Checkout {@link Connection#createLocalPortForwarder(int, String, int)} - * on how to create one. - * - * @author Christian Plattner, plattner@trilead.com - * @version $Id: LocalPortForwarder.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $ - */ -public class LocalPortForwarder -{ - ChannelManager cm; - - String host_to_connect; - - int port_to_connect; - - LocalAcceptThread lat; - - LocalPortForwarder(ChannelManager cm, int local_port, String host_to_connect, int port_to_connect) - throws IOException - { - this.cm = cm; - this.host_to_connect = host_to_connect; - this.port_to_connect = port_to_connect; - - lat = new LocalAcceptThread(cm, local_port, host_to_connect, port_to_connect); - lat.setDaemon(true); - lat.start(); - } - - LocalPortForwarder(ChannelManager cm, InetSocketAddress addr, String host_to_connect, int port_to_connect) - throws IOException - { - this.cm = cm; - this.host_to_connect = host_to_connect; - this.port_to_connect = port_to_connect; - - lat = new LocalAcceptThread(cm, addr, host_to_connect, port_to_connect); - lat.setDaemon(true); - lat.start(); - } - - /** - * Stop TCP/IP forwarding of newly arriving connections. - * - * @throws IOException - */ - public void close() throws IOException - { - lat.stopWorking(); - } -} -- cgit v1.2.3