class Publisher
Defined at line 6954 of file fidling/gen/sdk/fidl/fuchsia.net.mdns/fuchsia.net.mdns/hlcpp/fuchsia/net/mdns/cpp/fidl.h
Discoverable protocol for publishing service instances.
Deprecated: use ServiceInstancePublisher.
Public Members
static const char[] Name_
Public Methods
void ~Publisher ()
void PublishServiceInstance (::std::string service, ::std::string instance, ::fuchsia::net::mdns::Media media, bool perform_probe, ::fidl::InterfaceHandle< ::fuchsia::net::mdns::PublicationResponder> publication_responder, PublishServiceInstanceCallback callback)
Publishes a service instance. `publication_responder` is consulted via its
`OnPublication` method for initial announcements and to answer queries.
The service is published until the `publication_responder` channel closes. In
addition to announcements and queries for the service type, all queries
for subtypes are answered subject to filtering through the responder.
`perform_probe` indicates whether a probe for a conflicting instance
should be performed before publishing the instance. This value should
be `true` unless the instance name is known to be unique.
If a service with the same service and instance names is already published, the
old publication will be terminated, and the responder channel for the old
publication will be closed.