Scoop API

scoop:scoop.tls.asyncio:0.1.0

AsyncTlsStream

class AsyncTlsStream

source · line 14
public
public class AsyncTlsStream internal constructor(private val state: TlsConnection) : AsyncByteStream, AsyncCloseable

A TLS stream integrated with the current event loop and structured cancellation. The stream owns its transport after adoption and exposes plaintext through AsyncByteStream.

close waits for local cleanup. Use shutdownGracefully to exchange TLS close notifications.

function shutdownGracefully

source · line 77
public
public suspend fun shutdownGracefully(): Unit

Exchanges TLS close notifications and then closes the owned connection, suspending while protocol I/O is required.

function close

source · line 82
public
public override suspend fun close(): Unit

Waits for local transport and engine cleanup without performing a TLS close handshake.

function flush

source · line 72
public
public override suspend fun flush(): Unit

Suspends until pending ciphertext has been drained and the underlying stream flushed.