class Publisher
Defined at line 159 of file ../../src/connectivity/network/mdns/service/mdns.h
Abstract base class for client-supplied publisher.
Public Methods
void ~Publisher ()
////////////////////////////////////////////////////////////////////////////
Defined at line 811 of file ../../src/connectivity/network/mdns/service/mdns.cc
void SetSubtypes (std::vector<DnsLabel> subtypes)
Sets subtypes for the service instance. If this |Publisher| is
unpublished, this method does nothing.
Defined at line 813 of file ../../src/connectivity/network/mdns/service/mdns.cc
void Reannounce ()
Initiates announcement of the service instance. If this |Publisher| is
unpublished, this method does nothing.
Defined at line 819 of file ../../src/connectivity/network/mdns/service/mdns.cc
void Unpublish ()
Unpublishes the service instance. If this |Publisher| is already
unpublished, this method does nothing.
Defined at line 825 of file ../../src/connectivity/network/mdns/service/mdns.cc
void ReportSuccess (bool success)
Reports whether the publication attempt was successful. Publication can
fail if the service instance is currently be published by another device
on the subnet.
void GetPublication (PublicationCause pubication_type, const DnsLabel & subtype, const std::vector<inet::SocketAddress> & source_addresses, GetPublicationCallback callback)
Provides instance information for initial announcements and query
responses relating to the service instance specified in |PublishServiceInstance|.
|pubication_type| indicates whether data is requested for an initial announcement
or in response to a multicast or unicast query. If the publication relates to
a subtype of the service, |subtype| contains the subtype, otherwise it is
empty. |source_addresses| supplies the source addresses of the queries that
caused this publication. If the publication provided by the callback is null, no
announcement or response is transmitted.
Protected Methods
void Publisher ()
Defined at line 195 of file ../../src/connectivity/network/mdns/service/mdns.h
Friends
class Mdns