sapling/common/network/NetworkUtil.h
Siva Muthusamy 5f2bfb7d0e Add NetworkUtil stub function to fix FBOSS OSS build
Summary: Add NetworkUtil stub function to fix FBOSS OSS build

Reviewed By: daiwei1983

Differential Revision: D43750342

fbshipit-source-id: 4988c7ed9e6e170a46fc3dc7ec6a8313b6fa4fe4
2023-03-02 15:07:20 -08:00

33 lines
768 B
C++

/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#ifndef COMMON_NETWORKUTIL_H
#define COMMON_NETWORKUTIL_H 1
namespace facebook {
namespace network {
/* Stub util for OSS build */
class NetworkUtil {
public:
static std::string getHostByName(
const std::string& host,
bool disableIpv6 = false) {
return "";
}
static std::string getHostByAddr(const std::string& ip) {
return "";
}
};
} // namespace network
} // namespace facebook
#endif // #ifndef COMMON_NETWORKUTIL_H