-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DNS-SD] Redesign ServiceAdvertiser and Resolver interfaces (#10181)
* [DNS-SD] Redesign ServiceAdvertiser and Resolver interfaces * Change Resolver::SetResolverDelegate's return type to void. * Replace ServiceAdvertiser::Start with Init, and ServiceAdvertiser::StopPublishDevice with RemoveServices as the purpose of the former methods was unclear and the code in DiscoveryImplPlatform::Start would do the same as in DiscoveryImplPlatform::StopPublishDevice. Now Init is meant for one-time operations and RemoveServices for removing advertised services so they can be refreshed. * Likewise, replace Resolver::Start with Init. * Add ServiceAdvertiser::CompleteServiceUpdate which should be called after publishing all desired services with Advertise methods. This may come in handy in other platforms, too, but is particularly useful for Thread-based platforms using SRP instead of mDNS. Such platforms cannot immediately remove and re-add DNS services. Instead, they must communicate with the SRP server to complete any of these operations. CompleteServiceUpdate method allows Thread-based platform to remove services which have been marked for removal with the RemoveServices method and have not been re-added with subsequent Advertise calls. * Address some review comments * Rename CompleteServiceUpdate to FinalizeServiceUpdate
- Loading branch information
1 parent
6c4af30
commit 9ea2cc4
Showing
31 changed files
with
308 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.