aboutsummaryrefslogtreecommitdiff
path: root/discovery/mdns/mdns_publisher.cc
blob: 052eb5b1fabd61fa8829d38489a6746eb09f13ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright 2019 The Chromium 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 "discovery/mdns/mdns_publisher.h"

#include "discovery/mdns/mdns_sender.h"
#include "platform/api/task_runner.h"

namespace openscreen {
namespace discovery {

MdnsPublisher::MdnsPublisher(MdnsQuerier* querier,
                             MdnsSender* sender,
                             TaskRunner* task_runner,
                             MdnsRandom* random_delay)
    : querier_(querier),
      sender_(sender),
      task_runner_(task_runner),
      random_delay_(random_delay) {
  OSP_DCHECK(querier_);
  OSP_DCHECK(sender_);
  OSP_DCHECK(task_runner_);
  OSP_DCHECK(random_delay_);
}

MdnsPublisher::~MdnsPublisher() = default;

Error MdnsPublisher::RegisterRecord(const MdnsRecord& record) {
  // TODO(rwkeane): Implement this method.
  return Error::None();
}

Error MdnsPublisher::UpdateRegisteredRecord(const MdnsRecord& old_record,
                                            const MdnsRecord& new_record) {
  // TODO(rwkeane): Implement this method.
  return Error::None();
}

Error MdnsPublisher::UnregisterRecord(const MdnsRecord& record) {
  // TODO(rwkeane): Implement this method.
  return Error::None();
}

bool MdnsPublisher::IsExclusiveOwner(const DomainName& name) {
  // TODO(rwkeane): Implement this method.
  return false;
}

bool MdnsPublisher::HasRecords(const DomainName& name,
                               DnsType type,
                               DnsClass clazz) {
  // TODO(rwkeane): Implement this method.
  return false;
}
std::vector<MdnsRecord::ConstRef> MdnsPublisher::GetRecords(
    const DomainName& name,
    DnsType type,
    DnsClass clazz) {
  // TODO(rwkeane): Implement this method.
  return std::vector<MdnsRecord::ConstRef>();
}

}  // namespace discovery
}  // namespace openscreen