@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 server.closeable
- 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 © 2017 Pivotal Software, Inc.. All rights reserved.