PcapPlusPlus  Next
pcpp::DnsQuery Class Reference

#include <DnsResource.h>

Inheritance diagram for pcpp::DnsQuery:
pcpp::IDnsResource

Public Member Functions

size_t getSize () const override
 
DnsResourceType getType () const override
 
- Public Member Functions inherited from pcpp::IDnsResource
DnsType getDnsType () const
 
void setDnsType (DnsType newType)
 
DnsClass getDnsClass () const
 
void setDnsClass (DnsClass newClass)
 
const std::string & getName () const
 
size_t getNameOffset () const
 
bool setName (const std::string &newName)
 

Detailed Description

Representing a DNS query record

Member Function Documentation

◆ getSize()

size_t pcpp::DnsQuery::getSize ( ) const
inlineoverridevirtual
Returns
The total size in bytes of this record

Implements pcpp::IDnsResource.

◆ getType()

DnsResourceType pcpp::DnsQuery::getType ( ) const
inlineoverridevirtual
Returns
The type of this record (query, answer, authority, additional)

Implements pcpp::IDnsResource.