class Owner
Defined at line 43 of file ../../src/connectivity/network/mdns/service/agents/mdns_agent.h
Public Methods
zx::time now ()
Gets the current time.
void PostTaskForTime (MdnsAgent * agent, fit::closure task, zx::time target_time)
Posts a task to be executed at the specified time. Scheduled tasks posted
by agents that have since been removed are not executed.
void SendQuestion (std::shared_ptr<DnsQuestion> question, ReplyAddress reply_address)
Sends a question to the multicast address.
void SendResource (std::shared_ptr<DnsResource> resource, MdnsResourceSection section, const ReplyAddress & reply_address)
Sends a resource to the specified address. The default |reply_address|
|kV4MulticastReply| sends the resource to the V4 or V6
multicast address.
void SendAddresses (MdnsResourceSection section, const ReplyAddress & reply_address)
Sends address resources to the specified address. The default
|reply_address| |kV4MulticastReply| sends the addresses to the V4 or V6
multicast address.
void Renew (const DnsResource & resource, Media media, IpVersions ip_versions)
Registers the resource for renewal. See |MdnsAgent::Renew| below.
void Query (DnsType type, const DnsName & name, Media media, IpVersions ip_versions, zx::time initial_query_time, zx::duration interval, uint32_t interval_multiplier, uint32_t max_queries, bool request_unicast_response)
Registers the resource for repeated queries. See |MdnsAgent::Request| below.
void RemoveAgent (std::shared_ptr<MdnsAgent> agent)
Removes the specified agent.
void FlushSentItems ()
Flushes sent questions and resources by sending the appropriate messages.
void AddLocalServiceInstance (const ServiceInstance & instance, bool from_proxy)
Notifies all agents of the addition of a local service instance.|from_proxy| indicates
whether the instance is published by the local host (false) or a local proxy host (true).
void ChangeLocalServiceInstance (const ServiceInstance & instance, bool from_proxy)
Notifies all agents of a change to a previously-added local service instance.|from_proxy|
indicates whether the instance is published by the local host (false) or a local proxy host
(true).
std::vector<HostAddress> LocalHostAddresses ()
Returns the addresses for the local host.
void ~Owner ()
Defined at line 45 of file ../../src/connectivity/network/mdns/service/agents/mdns_agent.h