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.
|
boolean |
isRunning()
Returns whether this listener is running (ie.
|
void |
listen()
Start listening for incoming connections and forward to remote host as a channel.
|
void |
listen(java.lang.Thread runningThread)
Start listening for incoming connections and forward to remote host as a channel and ensure that the thread is registered.
|
public LocalPortForwarder(Connection conn, LocalPortForwarder.Parameters parameters, java.net.ServerSocket serverSocket, LoggerFactory loggerFactory)
public void listen()
throws java.io.IOException
java.io.IOExceptionpublic boolean isRunning()
public void listen(java.lang.Thread runningThread)
throws java.io.IOException
is called from another threadjava.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException