Requiem.QUIC.Packet (requiem v0.2.0-rc.0)

Link to this section Summary

Link to this section Functions

Link to this function

build_negotiate_version(buffer, scid, dcid)

Specs

build_negotiate_version(term(), binary(), binary()) ::
  {:ok, binary()} | {:error, :system_error}
Link to this function

build_retry(buffer, scid, dcid, new_scid, token, version)

Specs

build_retry(term(), binary(), binary(), binary(), binary(), non_neg_integer()) ::
  {:ok, binary()} | {:error, :system_error}
Link to this function

create_buffer()

Specs

create_buffer() :: {:ok, term()} | {:error, :system_error}
Link to this function

parse_header(packet)

Specs

parse_header(binary()) ::
  {:ok, binary(), binary(), binary(), non_neg_integer(), atom(), boolean()}
  | {:error, :system_error | :bad_format}