SendStreamInterface

The outgoing half of a QUIC stream.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun finish()

Signal that no more data will be sent on this stream.

Link copied to clipboard
abstract suspend fun id(): String
Link copied to clipboard
abstract suspend fun priority(): Int
Link copied to clipboard
abstract suspend fun reset(errorCode: ULong)

Abort the stream with the given error code.

Link copied to clipboard
abstract suspend fun setPriority(p: Int)
Link copied to clipboard
abstract suspend fun stopped(): ULong?
Link copied to clipboard
abstract suspend fun write(buf: ByteArray): ULong

Write some bytes, returning the number actually written.

Link copied to clipboard
abstract suspend fun writeAll(buf: ByteArray)

Write all bytes, looping as needed.