Botcraft 1.21.4
Loading...
Searching...
No Matches
Botcraft::DNSResourceRecord Class Reference

#include <DNSResourceRecord.hpp>

Inheritance diagram for Botcraft::DNSResourceRecord:
ProtocolCraft::NetworkType

Public Member Functions

const std::vector< std::string > & GetNameLabels () const
 
const unsigned short GetTypeCode () const
 
const unsigned short GetClassCode () const
 
const unsigned int GetTTL () const
 
const unsigned short GetRDLength () const
 
const std::vector< unsigned char > & GetRData () const
 
void SetNameLabels (const std::vector< std::string > &name_labels_)
 
void SetTypeCode (const unsigned short type_code_)
 
void SetClassCode (const unsigned short class_code_)
 
void SetTTL (const unsigned int ttl_)
 
void SetRDLength (const unsigned short rd_length_)
 
void SetRData (const std::vector< unsigned char > &rdata_)
 
- Public Member Functions inherited from ProtocolCraft::NetworkType
virtual ~NetworkType ()
 
virtual void Read (ReadIterator &iter, size_t &length)
 
virtual void Write (WriteContainer &container) const
 
virtual Json::Value Serialize () const
 

Protected Member Functions

virtual void ReadImpl (ReadIterator &iter, size_t &length) override
 
virtual void WriteImpl (WriteContainer &container) const override
 
virtual Json::Value SerializeImpl () const override
 

Private Attributes

std::vector< std::string > name_labels
 
unsigned short type_code
 
unsigned short class_code
 
unsigned int ttl
 
unsigned short rd_length
 
std::vector< unsigned char > rdata
 

Detailed Description

Definition at line 9 of file DNSResourceRecord.hpp.

Member Function Documentation

◆ GetClassCode()

const unsigned short Botcraft::DNSResourceRecord::GetClassCode ( ) const
inline

Definition at line 22 of file DNSResourceRecord.hpp.

References class_code.

◆ GetNameLabels()

const std::vector< std::string > & Botcraft::DNSResourceRecord::GetNameLabels ( ) const
inline

Definition at line 12 of file DNSResourceRecord.hpp.

References name_labels.

◆ GetRData()

const std::vector< unsigned char > & Botcraft::DNSResourceRecord::GetRData ( ) const
inline

Definition at line 37 of file DNSResourceRecord.hpp.

References rdata.

◆ GetRDLength()

const unsigned short Botcraft::DNSResourceRecord::GetRDLength ( ) const
inline

Definition at line 32 of file DNSResourceRecord.hpp.

References rd_length.

◆ GetTTL()

const unsigned int Botcraft::DNSResourceRecord::GetTTL ( ) const
inline

Definition at line 27 of file DNSResourceRecord.hpp.

References ttl.

◆ GetTypeCode()

const unsigned short Botcraft::DNSResourceRecord::GetTypeCode ( ) const
inline

Definition at line 17 of file DNSResourceRecord.hpp.

References type_code.

◆ ReadImpl()

virtual void Botcraft::DNSResourceRecord::ReadImpl ( ReadIterator iter,
size_t &  length 
)
inlineoverrideprotectedvirtual

◆ SerializeImpl()

virtual Json::Value Botcraft::DNSResourceRecord::SerializeImpl ( ) const
inlineoverrideprotectedvirtual

Implements ProtocolCraft::NetworkType.

Definition at line 124 of file DNSResourceRecord.hpp.

References class_code, name_labels, rd_length, rdata, ttl, and type_code.

◆ SetClassCode()

void Botcraft::DNSResourceRecord::SetClassCode ( const unsigned short  class_code_)
inline

Definition at line 53 of file DNSResourceRecord.hpp.

References class_code.

◆ SetNameLabels()

void Botcraft::DNSResourceRecord::SetNameLabels ( const std::vector< std::string > &  name_labels_)
inline

Definition at line 43 of file DNSResourceRecord.hpp.

References name_labels.

◆ SetRData()

void Botcraft::DNSResourceRecord::SetRData ( const std::vector< unsigned char > &  rdata_)
inline

Definition at line 68 of file DNSResourceRecord.hpp.

References rdata.

◆ SetRDLength()

void Botcraft::DNSResourceRecord::SetRDLength ( const unsigned short  rd_length_)
inline

Definition at line 63 of file DNSResourceRecord.hpp.

References rd_length.

◆ SetTTL()

void Botcraft::DNSResourceRecord::SetTTL ( const unsigned int  ttl_)
inline

Definition at line 58 of file DNSResourceRecord.hpp.

References ttl.

◆ SetTypeCode()

void Botcraft::DNSResourceRecord::SetTypeCode ( const unsigned short  type_code_)
inline

Definition at line 48 of file DNSResourceRecord.hpp.

References type_code.

◆ WriteImpl()

virtual void Botcraft::DNSResourceRecord::WriteImpl ( WriteContainer container) const
inlineoverrideprotectedvirtual

Member Data Documentation

◆ class_code

unsigned short Botcraft::DNSResourceRecord::class_code
private

Definition at line 146 of file DNSResourceRecord.hpp.

Referenced by GetClassCode(), ReadImpl(), SerializeImpl(), SetClassCode(), and WriteImpl().

◆ name_labels

std::vector<std::string> Botcraft::DNSResourceRecord::name_labels
private

◆ rd_length

unsigned short Botcraft::DNSResourceRecord::rd_length
private

Definition at line 148 of file DNSResourceRecord.hpp.

Referenced by GetRDLength(), ReadImpl(), SerializeImpl(), SetRDLength(), and WriteImpl().

◆ rdata

std::vector<unsigned char> Botcraft::DNSResourceRecord::rdata
private

Definition at line 149 of file DNSResourceRecord.hpp.

Referenced by GetRData(), ReadImpl(), SerializeImpl(), SetRData(), and WriteImpl().

◆ ttl

unsigned int Botcraft::DNSResourceRecord::ttl
private

Definition at line 147 of file DNSResourceRecord.hpp.

Referenced by GetTTL(), ReadImpl(), SerializeImpl(), SetTTL(), and WriteImpl().

◆ type_code

unsigned short Botcraft::DNSResourceRecord::type_code
private

Definition at line 145 of file DNSResourceRecord.hpp.

Referenced by GetTypeCode(), ReadImpl(), SerializeImpl(), SetTypeCode(), and WriteImpl().


The documentation for this class was generated from the following file: