SendStream

The outgoing half of a QUIC stream.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open suspend override fun finish()

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

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

Abort the stream with the given error code.

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

Write some bytes, returning the number actually written.

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

Write all bytes, looping as needed.