PcapPlusPlus
pcpp::DnsQuery Class Reference

#include <DnsResource.h>

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

Public Member Functions

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

Detailed Description

Representing a DNS query record

Member Function Documentation

◆ getSize()

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

Implements pcpp::IDnsResource.

◆ getType()

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

Implements pcpp::IDnsResource.