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

Link to this section Summary

Link to this section Functions

Link to this function

accept(module, scid, odcid)

Specs

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

close(conn, app, err, reason)

Specs

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

dgram_send(conn, data)

Specs

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

is_closed?(conn)

Specs

is_closed?(term()) :: boolean()
Link to this function

on_packet(conn, packet)

Specs

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

on_timeout(conn)

Specs

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

stream_send(conn, stream_id, data)

Specs

stream_send(term(), non_neg_integer(), binary()) ::
  {:ok, non_neg_integer()} | {:error, :system_error | :already_closed}