Scoop API

scoop:scoop.asyncio:0.1.0

AsyncSocks5Tunnel

class AsyncSocks5Tunnel

source · line 10
public
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

An owned negotiated SOCKS5 transport exposing its tunneled bytes as an asynchronous stream.

property boundAddress

source · line 16
public
public val boundAddress: Socks5Address

get: public read-only

The bound endpoint returned by the proxy's successful CONNECT reply.

function flush

source · line 79
public
public override suspend fun flush(): Unit
  • Overrides flush · AsyncByteSink

Flushes the underlying tunneled transport.

function close

source · line 84
public
public override suspend fun close(): Unit
  • Overrides close · AsyncCloseable

Closes the owned transport and waits for active I/O cleanup.