public interface TcpipForwarder extends Closeable
| Modifier and Type | Method and Description |
|---|---|
SshdSocketAddress |
getForwardedPort(int remotePort) |
void |
localPortForwardingCancelled(SshdSocketAddress local)
Called when the other side cancelled a remote port forward.
|
SshdSocketAddress |
localPortForwardingRequested(SshdSocketAddress local)
Called when the other side requested a remote port forward.
|
SshdSocketAddress |
startDynamicPortForwarding(SshdSocketAddress local) |
SshdSocketAddress |
startLocalPortForwarding(SshdSocketAddress local,
SshdSocketAddress remote)
Start forwarding the given local address on the client to the given address on the server.
|
SshdSocketAddress |
startRemotePortForwarding(SshdSocketAddress remote,
SshdSocketAddress local)
Start forwarding tcp/ip from the given remote address to the
given local address.
|
void |
stopDynamicPortForwarding(SshdSocketAddress local) |
void |
stopLocalPortForwarding(SshdSocketAddress local)
Stop forwarding the given local address.
|
void |
stopRemotePortForwarding(SshdSocketAddress remote)
Stop forwarding of the given remote address.
|
SshdSocketAddress startLocalPortForwarding(SshdSocketAddress local, SshdSocketAddress remote) throws IOException
remote - The remote addresslocal - The local addressSshdSocketAddressIOException - If failed to handle requestvoid stopLocalPortForwarding(SshdSocketAddress local) throws IOException
local - The local addressIOException - If failed to handle requestSshdSocketAddress startRemotePortForwarding(SshdSocketAddress remote, SshdSocketAddress local) throws IOException
Start forwarding tcp/ip from the given remote address to the given local address.
The remote host name is the address to bind to on the server:
remote - The remote addresslocal - The local addressSshdSocketAddressIOException - If failed to handle requestvoid stopRemotePortForwarding(SshdSocketAddress remote) throws IOException
remote - The remote SshdSocketAddressIOException - If failed to handle requestSshdSocketAddress getForwardedPort(int remotePort)
remotePort - The remote portSshdSocketAddress that the remote port is forwarded toSshdSocketAddress localPortForwardingRequested(SshdSocketAddress local) throws IOException
local - The request addressIOException - If failed to handle requestvoid localPortForwardingCancelled(SshdSocketAddress local) throws IOException
local - The local SshdSocketAddressIOException - If failed to handle requestSshdSocketAddress startDynamicPortForwarding(SshdSocketAddress local) throws IOException
IOExceptionvoid stopDynamicPortForwarding(SshdSocketAddress local) throws IOException
IOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.