public class TCPTunneler extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static interface |
TCPTunneler.TunnelListener |
| Constructor and Description |
|---|
TCPTunneler(int localPort,
String remoteHost,
int remotePort,
int numberOfConcurrentClients) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientListener(TCPTunneler.TunnelListener listener) |
void |
close() |
void |
disconnect(InetSocketAddress address) |
void |
removeClientListener(TCPTunneler.TunnelListener listener) |
void |
start() |
void |
stop() |
void |
stopClientToServerForwarding(InetSocketAddress clientAddress) |
public TCPTunneler(int localPort,
String remoteHost,
int remotePort,
int numberOfConcurrentClients)
public void start()
throws IOException
IOExceptionpublic void stopClientToServerForwarding(InetSocketAddress clientAddress)
public void stop()
public void addClientListener(TCPTunneler.TunnelListener listener)
public void removeClientListener(TCPTunneler.TunnelListener listener)
public void disconnect(InetSocketAddress address)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.