mdns
mdns copied to clipboard
Option `initial_send` on Discovery
When using struct mdns::discover::Discovery
, the current implementation waits for mdns_query_interval
before sending the first query.
With this patch, Discovery
can be configured with Discovery::initial_send(..)
to send out a query immediately when the response stream starts.
I left initial_send
as false
by default to preserve the existing behaviour, but I think true
may be a better default.