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 java.io.IOException
java.io.IOExceptionvoid stopLocalPortForwarding(SshdSocketAddress local) throws java.io.IOException
java.io.IOExceptionSshdSocketAddress startRemotePortForwarding(SshdSocketAddress remote, SshdSocketAddress local) throws java.io.IOException
java.io.IOExceptionvoid stopRemotePortForwarding(SshdSocketAddress remote) throws java.io.IOException
java.io.IOExceptionSshdSocketAddress getForwardedPort(int remotePort)
remotePort - SshdSocketAddress localPortForwardingRequested(SshdSocketAddress local) throws java.io.IOException
local - java.lang.Exceptionjava.io.IOExceptionvoid localPortForwardingCancelled(SshdSocketAddress local) throws java.io.IOException
local - java.lang.Exceptionjava.io.IOException@Deprecated void close()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.