Requiem.ConnectionSupervisor (requiem v0.2.0-rc.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, transport, address, scid, dcid, odcid, allow_address_routing)

Specs

create_connection(
  module(),
  {module(), non_neg_integer()},
  Requiem.Address.t(),
  binary(),
  binary(),
  binary(),
  boolean()
) :: :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}