View Source MdnsLite.CoreMonitor (mdns_lite v0.8.8)

Core logic for network monitors

This module contains most of the logic needed for writing a network monitor. It's only intended to be called from MdnsLite.InetMonitor and MdnsLite.VintageNetMonitor.

Link to this section Summary


Monitor options

Link to this section Types

@type option() :: {:excluded_ifnames, [String.t()]} | {:ipv4_only, boolean()}

Monitor options

  • :excluded_ifnames - a list of network interface names to ignore
  • :ipv4_only - set to true to ignore all IPv6 addresses

Link to this section Functions

@spec flush_todo_list(state()) :: state()
@spec init([option()]) :: state()
Link to this function

set_ip_list(state, ifname, ip_list)

View Source
@spec set_ip_list(state(), String.t(), [:inet.ip_address()]) :: state()