42 #ifndef _DWMRDAPBOOTSTRAP_HH_ 43 #define _DWMRDAPBOOTSTRAP_HH_ 49 #include <json/json.h> 51 #include "DwmIpv4Routes.hh" 72 static bool Load(
const std::string & bootstrapURI =
73 "file:///usr/local/etc/ipv4_rdap.json");
83 static std::vector<std::string>
RDAPServers(
const Ipv4Address & addr);
87 static std::mutex _mtx;
89 static Json::Value GetJsonResponse(
const std::string & uristr);
97 #endif // _DWMRDAPBOOTSTRAP_HH_ static bool Empty()
Returns true if the bootstrap is empty (not loaded or load failed).
static std::vector< std::string > RDAPServers(const Ipv4Address &addr)
Returns the RDAP servers for the given IP address addr.
static bool Load(const std::string &bootstrapURI="file:///usr/local/etc/ipv4_rdap.json")
Loads the bootstrap data from the given bootstrapURI.
This template class provides an associative container keyed by IPv4 addresses, with longest-match sea...
Definition: DwmRDAPIpv4Routes.hh:83
Definition: DwmCountryCode.hh:53
RDAP bootstrap class.
Definition: DwmRDAPBootstrap.hh:60