mdns icon indicating copy to clipboard operation
mdns copied to clipboard

Option `initial_send` on Discovery

Open fluffysquirrels opened this issue 4 months ago • 1 comments

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.

fluffysquirrels avatar Mar 09 '24 17:03 fluffysquirrels