@FunctionalInterface public interface TunnelConnection
Modifier and Type | Method and Description |
---|---|
WritableByteChannel |
open(WritableByteChannel incomingChannel,
Closeable closeable)
Open the tunnel connection.
|
WritableByteChannel open(WritableByteChannel incomingChannel, Closeable closeable) throws 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 serverException
- in case of errorsCopyright © 2021 Pivotal Software, Inc.. All rights reserved.