public class LocalPortForwarder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalPortForwarder.DirectTCPIPChannel |
static class |
LocalPortForwarder.Parameters |
| Constructor and Description |
|---|
LocalPortForwarder(Connection conn,
LocalPortForwarder.Parameters parameters,
java.net.ServerSocket serverSocket,
LoggerFactory loggerFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the ServerSocket that's listening for connections to forward.
|
void |
listen()
Start listening for incoming connections and forward to remote host as a channel.
|
public LocalPortForwarder(Connection conn, LocalPortForwarder.Parameters parameters, java.net.ServerSocket serverSocket, LoggerFactory loggerFactory)
public void listen()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException