Search documentation of macula

# macula_gateway_mdns_advertiser (macula v0.44.2)

View Source

Macula Gateway mDNS Advertiser.

Advertises this node's QUIC gateway endpoint via mDNS so LAN peers can discover it directly without going through the bootstrap DHT.

Service type: _macula-mesh._udp TXT records: node_id (hex), port, realm

# Summary

## Functions

instances()
register(NodeId, Port, Realm)

Register this gateway for mDNS advertisement.

service()
unregister()

Unregister this gateway from mDNS.

# Functions

# instances()

    -spec instances() -> [map()].

# register(NodeId, Port, Realm)

    -spec register(binary(), inet:port_number(), binary()) -> ok.

Register this gateway for mDNS advertisement.

# service()

    -spec service() -> string().

# unregister()

    -spec unregister() -> ok.

Unregister this gateway from mDNS.