Scoop API

scoop:scoop.tls.asyncio:0.1.0

Companion

object Companion

source · line 18
public
public companion

Adopts a duplex asynchronous transport and completes its TLS handshake.

function takeOwnershipAsServer

source · line 38
public
public suspend fun <T> takeOwnershipAsServer(transport: T, context: TlsServerContext): AsyncTlsStream where T : AsyncByteStream, T : AsyncCloseable

Completes a server handshake on the current event loop and job. Transport ownership transfers when the handshake request is registered; subsequent failure or cancellation cleans it up.

function takeOwnershipAsClient

source · line 25
public
public suspend fun <T> takeOwnershipAsClient(transport: T, context: TlsClientContext, peer: TlsPeerName): AsyncTlsStream where T : AsyncByteStream, T : AsyncCloseable

Completes a client handshake for the expected peer on the current event loop and job. Transport ownership transfers when the handshake request is registered; subsequent failure or cancellation cleans it up.