PcapPlusPlus  19.12
pcpp::DnsQuery Class Reference

#include <DnsResource.h>

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

Public Member Functions

virtual size_t getSize () const
 
virtual DnsResourceType getType () const
 
- Public Member Functions inherited from pcpp::IDnsResource
DnsType getDnsType () const
 
void setDnsType (DnsType newType)
 
DnsClass getDnsClass () const
 
void setDnsClass (DnsClass newClass)
 
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()

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

Implements pcpp::IDnsResource.

◆ getType()

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

Implements pcpp::IDnsResource.