/* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef RTC_BASE_SOCKET_ADDRESS_H_ #define RTC_BASE_SOCKET_ADDRESS_H_ #include <string> #include "absl/strings/string_view.h" #include "rtc_base/ip_address.h" #include "rtc_base/system/rtc_export.h" #undef SetPort struct sockaddr_in; struct sockaddr_storage; namespace rtc { // Records an IP address and port. class RTC_EXPORT SocketAddress { … }; RTC_EXPORT bool SocketAddressFromSockAddrStorage(const sockaddr_storage& saddr, SocketAddress* out); SocketAddress EmptySocketAddressWithFamily(int family); } // namespace rtc #endif // RTC_BASE_SOCKET_ADDRESS_H_