llarp::dns::Question
Inherits from llarp::dns::Serialize
Public Functions
| Name | |
|---|---|
| Question() =default | |
| Question(std::string name, QType_t type) | |
| Question(Question && other) | |
| Question(const Question & other) | |
| 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 | operator==(const Question & other) const |
| bool | IsName(const std::string & other) const determine if we match a name |
| bool | IsLocalhost() const is the name [something.]localhost.loki. ? |
| bool | HasSubdomains() const return true if we have subdomains in ths question |
| std::string | Subdomains() const get subdomain(s), if any, from qname |
| std::string | Name() const return qname with no trailing . |
| bool | HasTLD(const std::string & tld) const determine if we are using this TLD |
Public Attributes
| Name | |
|---|---|
| std::string | qname |
| QType_t | qtype |
| QClass_t | qclass |
Additional inherited members
Public Functions inherited from llarp::dns::Serialize
| Name | |
|---|---|
| virtual | ~Serialize() =0 |
Public Functions Documentation
function Question
Question() =default
function Question
explicit Question(
std::string name,
QType_t type
)
function Question
Question(
Question && other
)
function Question
Question(
const Question & other
)
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 operator==
inline bool operator==(
const Question & other
) const
function IsName
bool IsName(
const std::string & other
) const
determine if we match a name
function IsLocalhost
bool IsLocalhost() const
is the name [something.]localhost.loki. ?
function HasSubdomains
bool HasSubdomains() const
return true if we have subdomains in ths question
function Subdomains
std::string Subdomains() const
get subdomain(s), if any, from qname
function Name
std::string Name() const
return qname with no trailing .
function HasTLD
bool HasTLD(
const std::string & tld
) const
determine if we are using this TLD
Public Attributes Documentation
variable qname
std::string qname;
variable qtype
QType_t qtype;
variable qclass
QClass_t qclass;
Updated on 2026-01-10 at 22:49:45 +0000