llarp::util::GeoIPHelper

GeoIP helper class.

#include <geoip.hpp>

Public Functions

Name
GeoIPHelper()
~GeoIPHelper()
bool address_in_country_code_set(const SockAddr & addr, const std::unordered_set< std::string > & country_codes)
return true if this address is located in one of the given countries.
void maybe_decay_cache()
expire cache entries if needed.

Public Functions Documentation

function GeoIPHelper

GeoIPHelper()

function ~GeoIPHelper

~GeoIPHelper()

function address_in_country_code_set

bool address_in_country_code_set(
    const SockAddr & addr,
    const std::unordered_set< std::string > & country_codes
)

return true if this address is located in one of the given countries.

caches any internal geoip lookups done.

function maybe_decay_cache

void maybe_decay_cache()

expire cache entries if needed.


Updated on 2026-01-10 at 22:49:45 +0000