llarp::dns::SRVData

Public Functions

Name
bool IsValid() const
SRVTuple toTuple() const
auto toTupleRef() const
bool operator<(const SRVData & other) const
so we can put SRVData in a std::set
bool operator==(const SRVData & other) const
bool BEncode(llarp_buffer_t * ) const
bool BDecode(llarp_buffer_t * )
bool fromString(std::string_view srvString)
SRVData fromTuple(SRVTuple tuple)

Public Attributes

Name
constexpr size_t TARGET_MAX_SIZE
std::string service_proto
uint16_t priority
uint16_t weight
uint16_t port
std::string target

Public Functions Documentation

function IsValid

bool IsValid() const

function toTuple

SRVTuple toTuple() const

function toTupleRef

inline auto toTupleRef() const

function operator<

inline bool operator<(
    const SRVData & other
) const

so we can put SRVData in a std::set

function operator==

inline bool operator==(
    const SRVData & other
) const

function BEncode

bool BEncode(
    llarp_buffer_t * 
) const

function BDecode

bool BDecode(
    llarp_buffer_t * 
)

function fromString

bool fromString(
    std::string_view srvString
)

function fromTuple

static SRVData fromTuple(
    SRVTuple tuple
)

Public Attributes Documentation

variable TARGET_MAX_SIZE

static constexpr size_t TARGET_MAX_SIZE = 200;

variable service_proto

std::string service_proto;

variable priority

uint16_t priority;

variable weight

uint16_t weight;

variable port

uint16_t port;

variable target

std::string target;

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