Requiem.ConnectionSupervisor (requiem v0.4.0)

Supervisor for all QUIC connection.

Link to this section Summary

Link to this section Functions

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

create_connection(handler, address, scid, dcid, odcid, allow_address_routing, config_ptr, sender_pid)

Specs

create_connection(
  module(),
  Requiem.Address.t(),
  binary(),
  binary(),
  binary(),
  boolean(),
  integer(),
  pid()
) :: :ok | {:error, :system_error}
Link to this function

lookup_connection(handler, dcid, address, arg4)

Specs

lookup_connection(module(), binary(), Requiem.Address.t(), boolean()) ::
  {:ok, pid()} | {:error, :not_found}
Link to this function

start_child(opts)

Specs

Link to this function

start_link(handler)

Specs

start_link(module()) :: Supervisor.on_start()
Link to this function

terminate_child(handler, pid)

Specs

terminate_child(module(), pid()) :: :ok | {:error, :not_found}