PcapPlusPlus
pcpp::DnsQuery Class Reference

#include <DnsLayer.h>

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

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from pcpp::IDnsResource
enum  ResourceType { DnsQuery = 0, DnsAnswer = 1, DnsAuthority = 2, DnsAdditional = 3 }
 

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 ResourceType pcpp::DnsQuery::getType ( )
inlinevirtual
Returns
The type of this record (query, answer, authority, additional)

Implements pcpp::IDnsResource.