llarp::service::Address
HS Address.
#include <address.hpp>
Public Functions
| Name | |
|---|---|
| bool | PermitTLD(const char * tld) return true if we permit using this tld otherwise return false |
| std::string | ToString(const char * tld =".loki") const |
| bool | FromString(std::string_view str, const char * tld =".loki") |
| Address(const std::string & str) | |
| Address(const Data & buf) | |
| Address(const Address & other) | |
| auto | operator<=>(const Address & other) const |
| Address & | operator=(const Address & other) =default |
| dht::Key_t | ToKey() const |
| RouterID | ToRouter() const |
Public Attributes
| Name | |
|---|---|
| std::string | subdomain if parsed using FromString this contains the subdomain this member is not used when comparing it's extra data for dns |
| const std::set< std::string > | AllowedTLDs list of whitelisted gtld to permit |
Public Functions Documentation
function PermitTLD
static bool PermitTLD(
const char * tld
)
return true if we permit using this tld otherwise return false
function ToString
std::string ToString(
const char * tld =".loki"
) const
function FromString
bool FromString(
std::string_view str,
const char * tld =".loki"
)
function Address
inline explicit Address(
const std::string & str
)
function Address
inline explicit Address(
const Data & buf
)
function Address
inline Address(
const Address & other
)
function operator<=>
inline auto operator<=>(
const Address & other
) const
function operator=
Address & operator=(
const Address & other
) =default
function ToKey
dht::Key_t ToKey() const
function ToRouter
inline RouterID ToRouter() const
Public Attributes Documentation
variable subdomain
std::string subdomain;
if parsed using FromString this contains the subdomain this member is not used when comparing it's extra data for dns
variable AllowedTLDs
static const std::set< std::string > AllowedTLDs;
list of whitelisted gtld to permit
Updated on 2026-04-01 at 23:35:40 +0000