/usr/include/measurement_kit/mlabns/mlabns.hpp is in libmeasurement-kit-dev 0.7.1-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | // Part of measurement-kit <https://measurement-kit.github.io/>.
// Measurement-kit is free software. See AUTHORS and LICENSE for more
// information on the copying conditions.
#ifndef MEASUREMENT_KIT_MLABNS_MLABNS_HPP
#define MEASUREMENT_KIT_MLABNS_MLABNS_HPP
#include <measurement_kit/common.hpp>
namespace mk {
namespace mlabns {
MK_DEFINE_ERR(MK_ERR_MLABNS(0), InvalidPolicyError, "mlabns_invalid_policy")
MK_DEFINE_ERR(MK_ERR_MLABNS(1), InvalidAddressFamilyError, "mlabns_invalid_address_family")
MK_DEFINE_ERR(MK_ERR_MLABNS(2), InvalidMetroError, "mlabns_invalid_metro")
MK_DEFINE_ERR(MK_ERR_MLABNS(3), InvalidToolNameError, "mlabns_invalid_tool")
/// Reply to mlab-ns query.
class Reply {
public:
std::string city; ///< City where sliver is.
std::string url; ///< URL to access sliver using HTTP.
std::vector<std::string> ip; ///< List of IP addresses of sliver.
std::string fqdn; ///< FQDN of sliver.
std::string site; ///< Site where sliver is.
std::string country; ///< Country where sliver is.
};
/// Query mlab-ns and receive response.
void query(std::string tool, Callback<Error, Reply> callback,
Settings settings = {}, Var<Reactor> reactor = Reactor::global(),
Var<Logger> logger = Logger::global());
} // namespace mlabns
} // namespace mk
#endif
|