Current section

Files

Jump to
mdns lib mdns supervisor.ex
Raw

lib/mdns/supervisor.ex

defmodule Mdns.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
{Registry, keys: :duplicate, name: Mdns.EventManager.Registry},
Mdns.EventManager,
Mdns.Client,
Mdns.Server
]
Supervisor.init(children, strategy: :one_for_one)
end
end