llarp::dns::Message
Inherits from llarp::dns::Serialize
Public Functions
| Name | |
|---|---|
| Message(const MessageHeader & hdr) | |
| Message(const Question & question) | |
| Message(Message && other) | |
| Message(const Message & other) | |
| void | AddNXReply(RR_TTL_t ttl =1) |
| void | AddServFail(RR_TTL_t ttl =30) |
| void | AddMXReply(std::string name, uint16_t priority, RR_TTL_t ttl =1) |
| void | AddCNAMEReply(std::string name, RR_TTL_t ttl =1) |
| void | AddINReply(llarp::huint128_t addr, bool isV6, RR_TTL_t ttl =1) |
| void | AddAReply(std::string name, RR_TTL_t ttl =1) |
| void | AddSRVReply(std::vector< SRVData > records, RR_TTL_t ttl =1) |
| void | AddNSReply(std::string name, RR_TTL_t ttl =1) |
| void | AddTXTReply(std::string value, RR_TTL_t ttl =1) |
| 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 |
| OwnedBuffer | ToBuffer() const |
| std::string | ToString() const |
Public Attributes
| Name | |
|---|---|
| MsgID_t | hdr_id |
| Fields_t | hdr_fields |
| std::vector< Question > | questions |
| std::vector< ResourceRecord > | answers |
| std::vector< ResourceRecord > | authorities |
| std::vector< ResourceRecord > | additional |
Additional inherited members
Public Functions inherited from llarp::dns::Serialize
| Name | |
|---|---|
| virtual | ~Serialize() =0 |
Public Functions Documentation
function Message
explicit Message(
const MessageHeader & hdr
)
function Message
explicit Message(
const Question & question
)
function Message
Message(
Message && other
)
function Message
Message(
const Message & other
)
function AddNXReply
void AddNXReply(
RR_TTL_t ttl =1
)
function AddServFail
void AddServFail(
RR_TTL_t ttl =30
)
function AddMXReply
void AddMXReply(
std::string name,
uint16_t priority,
RR_TTL_t ttl =1
)
function AddCNAMEReply
void AddCNAMEReply(
std::string name,
RR_TTL_t ttl =1
)
function AddINReply
void AddINReply(
llarp::huint128_t addr,
bool isV6,
RR_TTL_t ttl =1
)
function AddAReply
void AddAReply(
std::string name,
RR_TTL_t ttl =1
)
function AddSRVReply
void AddSRVReply(
std::vector< SRVData > records,
RR_TTL_t ttl =1
)
function AddNSReply
void AddNSReply(
std::string name,
RR_TTL_t ttl =1
)
function AddTXTReply
void AddTXTReply(
std::string value,
RR_TTL_t ttl =1
)
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 ToBuffer
OwnedBuffer ToBuffer() const
function ToString
std::string ToString() const
Public Attributes Documentation
variable hdr_id
MsgID_t hdr_id;
variable hdr_fields
Fields_t hdr_fields;
variable questions
std::vector< Question > questions;
variable answers
std::vector< ResourceRecord > answers;
variable authorities
std::vector< ResourceRecord > authorities;
variable additional
std::vector< ResourceRecord > additional;
Updated on 2026-01-10 at 22:49:45 +0000