Modbux.Tcp.Server.Supervisor (Modbux v0.3.14)

View Source

Spawns and supervises each Modbus Client handler.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for DynamicSupervisor.init/1.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(list)

Callback implementation for DynamicSupervisor.init/1.

start_child(sup_pid, module, args)

@spec start_child(
  atom() | pid() | {atom(), any()} | {:via, atom(), any()},
  atom(),
  any()
) ::
  :ignore | {:error, any()} | {:ok, pid()} | {:ok, pid(), any()}

start_link(opts)

@spec start_link(
  debug: [:log | :statistics | :trace | {any(), any()}],
  hibernate_after: :infinity | non_neg_integer(),
  name: atom() | {:global, any()} | {:via, atom(), any()},
  spawn_opt:
    :link
    | :monitor
    | {:fullsweep_after, non_neg_integer()}
    | {:min_bin_vheap_size, non_neg_integer()}
    | {:min_heap_size, non_neg_integer()}
    | {:priority, :high | :low | :normal},
  timeout: :infinity | non_neg_integer()
) :: :ignore | {:error, any()} | {:ok, pid()}