chromium/third_party/openscreen/src/discovery/dnssd/public/dns_sd_instance.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "discovery/dnssd/public/dns_sd_instance.h"

#include <algorithm>
#include <cctype>
#include <utility>
#include <vector>

#include "util/osp_logging.h"

namespace openscreen::discovery {
namespace {

// Maximum number of octets allowed in a single domain name label.
constexpr size_t kMaxLabelLength =;

bool IsValidUtf8(const std::string& string) {}

bool HasControlCharacters(const std::string& string) {}

}  // namespace

DnsSdInstance::DnsSdInstance(std::string instance_id,
                             std::string service_id,
                             std::string domain_id,
                             DnsSdTxtRecord txt,
                             uint16_t port,
                             std::vector<Subtype> subtypes)
    :{}

DnsSdInstance::DnsSdInstance(const DnsSdInstance& other) = default;

DnsSdInstance::DnsSdInstance(DnsSdInstance&& other) noexcept = default;

DnsSdInstance::~DnsSdInstance() = default;

DnsSdInstance& DnsSdInstance::operator=(const DnsSdInstance& rhs) = default;

DnsSdInstance& DnsSdInstance::operator=(DnsSdInstance&& rhs) noexcept = default;

// static
bool IsInstanceValid(const std::string& instance) {}

// static
bool IsServiceValid(const std::string& service) {}

// static
bool IsDomainValid(const std::string& domain) {}

// static
bool IsSubtypeValid(const DnsSdInstance::Subtype& subtype) {}

bool operator<(const DnsSdInstance& lhs, const DnsSdInstance& rhs) {}

}  // namespace openscreen::discovery