MNDP.Listener (mndp v0.2.0)
View SourceListener for broadcasted MNDP packets.
MNDP packets typically get send to the global broadcast address 255.255.255.255. To receive all of these broadcasts, the listener binds on the configured port to 0.0.0.0.
To get notified when new packets get received, you can use MNDP.subscribe/0.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type opts() :: [{:port, port_number()}]
@type port_number() :: non_neg_integer()
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec list_discovered() :: [MNDP.t()]
@spec start_link(opts()) :: GenServer.on_start()