mirror of
https://github.com/facebook/sapling.git
synced 2024-10-04 22:07:44 +03:00
5f2bfb7d0e
Summary: Add NetworkUtil stub function to fix FBOSS OSS build Reviewed By: daiwei1983 Differential Revision: D43750342 fbshipit-source-id: 4988c7ed9e6e170a46fc3dc7ec6a8313b6fa4fe4
33 lines
768 B
C++
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
|