aboutsummaryrefslogtreecommitdiff
path: root/osp/impl/mdns_platform_service.cc
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-02-17 03:26:05 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-02-17 03:26:05 +0000
commit608dae24e17736fdadff558716880e7510deac38 (patch)
tree8aaaeb612b6c3a1e3fb9647f0da35e8cf285a502 /osp/impl/mdns_platform_service.cc
parent6c65c1479a08e3754bdb98e1b31ffb7cb7e7e3da (diff)
parenta1f37d7e15e391e1973053f8d58f07e4d240f1b4 (diff)
downloadopenscreen-android13-frc-neuralnetworks-release.tar.gz
Snap for 8191477 from a1f37d7e15e391e1973053f8d58f07e4d240f1b4 to tm-frc-neuralnetworks-releaset_frc_neu_330443030t_frc_neu_330443000android13-frc-neuralnetworks-release
Change-Id: I745819f10e5dbf968e602f52cdf9c615c69afe65
Diffstat (limited to 'osp/impl/mdns_platform_service.cc')
-rw-r--r--osp/impl/mdns_platform_service.cc46
1 files changed, 0 insertions, 46 deletions
diff --git a/osp/impl/mdns_platform_service.cc b/osp/impl/mdns_platform_service.cc
deleted file mode 100644
index 4968c259..00000000
--- a/osp/impl/mdns_platform_service.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2018 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 "osp/impl/mdns_platform_service.h"
-
-#include <cstring>
-
-#include "util/osp_logging.h"
-
-namespace openscreen {
-namespace osp {
-
-MdnsPlatformService::BoundInterface::BoundInterface(
- const InterfaceInfo& interface_info,
- const IPSubnet& subnet,
- UdpSocket* socket)
- : interface_info(interface_info), subnet(subnet), socket(socket) {
- OSP_DCHECK(socket);
-}
-
-MdnsPlatformService::BoundInterface::~BoundInterface() = default;
-
-bool MdnsPlatformService::BoundInterface::operator==(
- const MdnsPlatformService::BoundInterface& other) const {
- if (interface_info.index != other.interface_info.index)
- return false;
-
- if (subnet.address != other.subnet.address ||
- subnet.prefix_length != other.subnet.prefix_length) {
- return false;
- }
-
- if (socket != other.socket)
- return false;
-
- return true;
-}
-
-bool MdnsPlatformService::BoundInterface::operator!=(
- const MdnsPlatformService::BoundInterface& other) const {
- return !(*this == other);
-}
-
-} // namespace osp
-} // namespace openscreen