Matter::MDNS::Advertiser
Inherits Reference < Object
Advertiser manages the lifecycle of mDNS advertisements
Handles:
- Broadcasting announcements with exponential backoff
- Sending goodbye packets on close
- Integration with commissioning window lifecycle
RFC 6762 ยง8.3: Announcing records
Constants
INITIAL_INTERVAL = 1.seconds
Broadcasting schedule (exponential backoff with jitter)
JITTER_PERCENT = 0.25
Log = ::Log.for("matter.mdns.advertiser")
MAX_BROADCAST_TIME = 15.minutes
MAX_INTERVAL = 90.seconds
Constructors
new(server : Server)
Sourcenew(family : Socket::Family = Socket::Family::INET)
Convenience constructor that creates server and socket
Instance methods
server
Sourceserver=(server : Server)
Sourcestart_advertising(advertisement : RecordGenerator) : Nil
Start advertising a service
@param advertisement The advertisement to broadcast