class AsyncSocks5Tunnel
source · line 10public
public class AsyncSocks5Tunnel private constructor(
transport: AsyncByteStream, closeable: AsyncCloseable,
private val loop: EventLoop,
/**
* The bound endpoint returned by the proxy's successful CONNECT reply.
*/
public val boundAddress: Socks5Address
) : AsyncByteStream, AsyncCloseable
- Supertype
AsyncByteStream - Supertype
AsyncCloseable
An owned negotiated SOCKS5 transport exposing its tunneled bytes as an asynchronous stream.
property boundAddress
source · line 16public
public val boundAddress: Socks5Address
get: public read-only
The bound endpoint returned by the proxy's successful CONNECT reply.
function writeFrom
source · line 73public
public override suspend fun writeFrom(buffer: NativeByteBuffer, count: Long): Long
- Overrides
writeFrom· AsyncByteSink
Writes readable buffer bytes through the tunnel.
parameter buffer
source · line 73public
buffer: NativeByteBuffer
parameter count
source · line 73public
count: Long
function readInto
source · line 67public
public override suspend fun readInto(buffer: NativeByteBuffer, count: Long): Long
- Overrides
readInto· AsyncByteSource
Reads tunneled bytes into the writable buffer region.
parameter buffer
source · line 67public
buffer: NativeByteBuffer
parameter count
source · line 67public
count: Long
function flush
source · line 79public
public override suspend fun flush(): Unit
- Overrides
flush· AsyncByteSink
Flushes the underlying tunneled transport.
function close
source · line 84public
public override suspend fun close(): Unit
- Overrides
close· AsyncCloseable
Closes the owned transport and waits for active I/O cleanup.
property isClosed
source · line 27public
public val isClosed: Boolean
get: public read-only
Whether tunnel cleanup has completed.
getter get
source · line 27public
get(): Boolean