llarp::dns::ResourceRecord
Inherits from llarp::dns::Serialize
Public Functions
| Name | |
|---|---|
| ResourceRecord() =default | |
| ResourceRecord(const ResourceRecord & other) | |
| ResourceRecord(ResourceRecord && other) | |
| ResourceRecord(std::string name, RRType_t type, RR_RData_t rdata) | |
| virtual bool | Encode(llarp_buffer_t * buf) const override encode entity to buffer |
| virtual bool | Decode(llarp_buffer_t * buf) override decode entity from buffer |
| std::string | ToString() const |
| bool | HasCNameForTLD(const std::string & tld) const |
Public Attributes
| Name | |
|---|---|
| std::string | rr_name |
| RRType_t | rr_type |
| RRClass_t | rr_class |
| RR_TTL_t | ttl |
| RR_RData_t | rData |
Additional inherited members
Public Functions inherited from llarp::dns::Serialize
| Name | |
|---|---|
| virtual | ~Serialize() =0 |
Public Functions Documentation
function ResourceRecord
ResourceRecord() =default
function ResourceRecord
ResourceRecord(
const ResourceRecord & other
)
function ResourceRecord
ResourceRecord(
ResourceRecord && other
)
function ResourceRecord
explicit ResourceRecord(
std::string name,
RRType_t type,
RR_RData_t rdata
)
function Encode
virtual bool Encode(
llarp_buffer_t * buf
) const override
encode entity to buffer
Reimplements: llarp::dns::Serialize::Encode
function Decode
virtual bool Decode(
llarp_buffer_t * buf
) override
decode entity from buffer
Reimplements: llarp::dns::Serialize::Decode
function ToString
std::string ToString() const
function HasCNameForTLD
bool HasCNameForTLD(
const std::string & tld
) const
Public Attributes Documentation
variable rr_name
std::string rr_name;
variable rr_type
RRType_t rr_type;
variable rr_class
RRClass_t rr_class;
variable ttl
RR_TTL_t ttl;
variable rData
RR_RData_t rData;
Updated on 2026-01-10 at 22:49:45 +0000