public interface TcpipForwarder extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
|
SshdSocketAddress |
getForwardedPort(int remotePort)
Retrieve the local address that the remote port is forwarded to
|
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 |
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 tcpip from the given remote address to the
given local address.
|
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
IOException
void stopLocalPortForwarding(SshdSocketAddress local) throws IOException
IOException
SshdSocketAddress startRemotePortForwarding(SshdSocketAddress remote, SshdSocketAddress local) throws IOException
IOException
void stopRemotePortForwarding(SshdSocketAddress remote) throws IOException
IOException
SshdSocketAddress getForwardedPort(int remotePort)
remotePort
- SshdSocketAddress localPortForwardingRequested(SshdSocketAddress local) throws IOException
local
- Exception
IOException
void localPortForwardingCancelled(SshdSocketAddress local) throws IOException
local
- Exception
IOException
@Deprecated void close()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.