View Source MNDP.Sender (mndp v0.1.1)

Sender to broadcast MNDP packets.

The Sender will be typically started and stopped by the interface monitors (MNDP.InetMonitor or MNDP.VintageNetMonitor). It will one process for each IP address for each interface. To exclude interfaces from this automation, see MNDP.Options.

To start and stop a MNDP.Server manually the interface name and IP address to bind to is needed

Examples

iex> MNDP.Server.start_link({"en0", {10, 0, 0, 199}})
{:ok, pid}

iex> MNDP.Server.stop_server("en0", {10, 0, 0, 199})
:ok

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec start_link({String.t(), :inet.ip_address()}) :: GenServer.on_start()