class InstanceResponder
Defined at line 22 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.h
Dynamically publishes an instance of a service type.
Public Methods
void InstanceResponder (MdnsAgent::Owner * owner, const DnsName & host_name, std::vector<inet::IpAddress> addresses, const DnsName & service_name, const DnsLabel & instance_name, Media media, IpVersions ip_versions, Mdns::Publisher * publisher)
Creates an |InstanceResponder|. The publisher is consulted to determine how queries are
handled. If |host_name| is empty the local host name will be used. If |addresses| is empty,
the local addresses will be used.
Defined at line 29 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.cc
const ServiceInstance * service_instance ()
Returns a pointer to the current service instance or null if it hasn't yet been established.
The returned pointer references a private member of this responder, which may be modified when
code in this class has an opportunity to run and will be deleted if this responder is deleted.
Defined at line 37 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.h
bool from_proxy ()
Indicates whether the instance is published by a local proxy (true) or the local host (false).
Defined at line 40 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.h
void ~InstanceResponder ()
Defined at line 47 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.cc
void Start (const DnsName & local_host_full_name)
MdnsAgent overrides.
Defined at line 49 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.cc
void ReceiveQuestion (const DnsQuestion & question, const ReplyAddress & reply_address, const ReplyAddress & sender_address)
Defined at line 63 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.cc
void Quit ()
Defined at line 120 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.cc
void OnLocalHostAddressesChanged ()
Defined at line 130 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.cc
void InstanceResponder (const InstanceResponder & )
Disallow copy, assign and move.
Defined at line 132 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.h
void InstanceResponder (InstanceResponder && )
Defined at line 133 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.h
InstanceResponder & operator= (const InstanceResponder & )
Defined at line 134 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.h
InstanceResponder & operator= (InstanceResponder && )
Defined at line 135 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.h
void SetSubtypes (std::vector<DnsLabel> subtypes)
Sets the subtypes to publish.
Defined at line 139 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.cc
void Reannounce ()
Reannounces the service instance.
Defined at line 162 of file ../../src/connectivity/network/mdns/service/agents/instance_responder.cc