blob: 206b38f369f010bb2dc2a2b44abaa0a67493551c [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/bin/mdns/service/address_prober.h"
#include "src/lib/fxl/logging.h"
namespace mdns {
AddressProber::AddressProber(MdnsAgent::Host* host, CompletionCallback callback)
: Prober(host, DnsType::kA, std::move(callback)) {}
AddressProber::~AddressProber() {}
const std::string& AddressProber::ResourceName() { return host_full_name(); }
void AddressProber::SendProposedResources(MdnsResourceSection section) {
SendAddresses(section, MdnsAddresses::V4MulticastReply(mdns_port()));
}
} // namespace mdns