Quic stream

include byte_stream
include quic_types
include quic_transport_error_code
QUIC Streams


A connection is associated with a collection of streams, each of which has a associated stream identifier, or stream_id that is unique within the connection. A stream id is a 32-bit unsigned number.

type stream_id                                   # stream identifier

function get_stream_kind(S:stream_id) =
    unidir if bfe[1][1](S) = bit.one else bidir

function get_stream_role(S:stream_id) =
    role.server if bfe[0][0](S) = bit.one else role.client