@FunctionalInterface
public interface TunnelConnection
| Modifier and Type | Method and Description |
|---|---|
java.nio.channels.WritableByteChannel |
open(java.nio.channels.WritableByteChannel incomingChannel,
java.io.Closeable closeable)
Open the tunnel connection.
|
java.nio.channels.WritableByteChannel open(java.nio.channels.WritableByteChannel incomingChannel,
java.io.Closeable closeable)
throws java.lang.Exception
incomingChannel - a WritableByteChannel that should be used to write
any incoming data received from the remote servercloseable - a closeable to call when the channel is closedWritableByteChannel that should be used to send any outgoing data
destined for the remote serverjava.lang.Exception - in case of errors