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

#include <DNSQuestion.hpp>

Inheritance diagram for Botcraft::DNSQuestion:
ProtocolCraft::NetworkType

Public Member Functions

const std::vector< std::string > & GetNameLabels () const
 
const unsigned short GetTypeCode () const
 
const unsigned short GetClassCode () const
 
void SetNameLabels (const std::vector< std::string > &name_labels_)
 
void SetTypeCode (const unsigned short type_code_)
 
void SetClassCode (const unsigned short class_code_)
 
- 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
 

Detailed Description

Definition at line 9 of file DNSQuestion.hpp.

Member Function Documentation

◆ GetClassCode()

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

Definition at line 22 of file DNSQuestion.hpp.

References class_code.

◆ GetNameLabels()

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

Definition at line 12 of file DNSQuestion.hpp.

References name_labels.

◆ GetTypeCode()

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

Definition at line 17 of file DNSQuestion.hpp.

References type_code.

◆ ReadImpl()

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

◆ SerializeImpl()

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

Implements ProtocolCraft::NetworkType.

Definition at line 73 of file DNSQuestion.hpp.

References class_code, name_labels, and type_code.

◆ SetClassCode()

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

Definition at line 38 of file DNSQuestion.hpp.

References class_code.

Referenced by Botcraft::TCP_Com::SetIPAndPortFromAddress().

◆ SetNameLabels()

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

Definition at line 28 of file DNSQuestion.hpp.

References name_labels.

Referenced by Botcraft::TCP_Com::SetIPAndPortFromAddress().

◆ SetTypeCode()

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

Definition at line 33 of file DNSQuestion.hpp.

References type_code.

Referenced by Botcraft::TCP_Com::SetIPAndPortFromAddress().

◆ WriteImpl()

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

Member Data Documentation

◆ class_code

unsigned short Botcraft::DNSQuestion::class_code
private

Definition at line 93 of file DNSQuestion.hpp.

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

◆ name_labels

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

Definition at line 91 of file DNSQuestion.hpp.

Referenced by GetNameLabels(), ReadImpl(), SerializeImpl(), SetNameLabels(), and WriteImpl().

◆ type_code

unsigned short Botcraft::DNSQuestion::type_code
private

Definition at line 92 of file DNSQuestion.hpp.

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


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