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 addressSshdSocketAddress
IOException
- 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 addressSshdSocketAddress
IOException
- If failed to handle requestvoid stopRemotePortForwarding(SshdSocketAddress remote) throws IOException
remote
- The remote SshdSocketAddress
IOException
- 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 addressSshdSocketAddress
- null
if not allowed to forwardIOException
- If failed to handle requestvoid localPortForwardingCancelled(SshdSocketAddress local) throws IOException
local
- The local SshdSocketAddress
IOException
- If failed to handle requestSshdSocketAddress startDynamicPortForwarding(SshdSocketAddress local) throws IOException
IOException
void stopDynamicPortForwarding(SshdSocketAddress local) throws IOException
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.