llarp::dns::MessageHeader

Inherits from llarp::dns::Serialize

Public Functions

Name
MessageHeader() =default
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
bool operator==(const MessageHeader & other) const

Public Attributes

Name
constexpr size_t Size
MsgID_t id
Fields_t fields
Count_t qd_count
Count_t an_count
Count_t ns_count
Count_t ar_count

Additional inherited members

Public Functions inherited from llarp::dns::Serialize

Name
virtual ~Serialize() =0

Public Functions Documentation

function MessageHeader

MessageHeader() =default

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 operator==

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

Public Attributes Documentation

variable Size

static constexpr size_t Size = 12;

variable id

MsgID_t id;

variable fields

Fields_t fields;

variable qd_count

Count_t qd_count;

variable an_count

Count_t an_count;

variable ns_count

Count_t ns_count;

variable ar_count

Count_t ar_count;

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