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

#include <DNSMessage.hpp>

Inheritance diagram for Botcraft::DNSMessage:
ProtocolCraft::NetworkType

Public Member Functions

const std::vector< unsigned char > & GetIdentification () const
 
char GetFlagQR () const
 
char GetFlagOPCode () const
 
char GetFlagAA () const
 
char GetFlagTC () const
 
char GetFlagRD () const
 
char GetFlagRA () const
 
char GetFlagZ () const
 
char GetFlagRCode () const
 
short GetNumberQuestion () const
 
short GetNumberAnswer () const
 
short GetNumberAuthority () const
 
short GetNumberAdditionalRR () const
 
const std::vector< DNSQuestion > & GetQuestions () const
 
const std::vector< DNSResourceRecord > & GetAnswers () const
 
const std::vector< DNSResourceRecord > & GetAuthorities () const
 
const std::vector< DNSResourceRecord > & GetAdditionals () const
 
void SetIdentification (const std::vector< unsigned char > &identification_)
 
void SetFlagQR (const char qr_)
 
void SetFlagOPCode (const char opcode_)
 
void SetFlagAA (const char aa_)
 
void SetFlagTC (const char tc_)
 
void SetFlagRD (const char rd_)
 
void SetFlagRA (const char ra_)
 
void SetFlagZ (const char z_)
 
void SetFlagRCode (const char rcode_)
 
void SetNumberQuestion (const short number_question_)
 
void SetNumberAnswer (const short number_answer_)
 
void SetNumberAuthority (const short number_authority_)
 
void SetNumberAdditionalRR (const short number_additional_rr_)
 
void SetQuestions (const std::vector< DNSQuestion > &questions_)
 
void SetAnswers (const std::vector< DNSResourceRecord > &answers_)
 
void SetAuthorities (const std::vector< DNSResourceRecord > &authorities_)
 
void SetAdditionals (const std::vector< DNSResourceRecord > &additionals_)
 
- 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< unsigned char > identification
 
char qr
 
char opcode
 
char aa
 
char tc
 
char rd
 
char ra
 
char z
 
char rcode
 
short number_question
 
short number_answer
 
short number_authority
 
short number_additional_rr
 
std::vector< DNSQuestionquestions
 
std::vector< DNSResourceRecordanswers
 
std::vector< DNSResourceRecordauthorities
 
std::vector< DNSResourceRecordadditionals
 

Detailed Description

Definition at line 12 of file DNSMessage.hpp.

Member Function Documentation

◆ GetAdditionals()

const std::vector< DNSResourceRecord > & Botcraft::DNSMessage::GetAdditionals ( ) const
inline

Definition at line 95 of file DNSMessage.hpp.

References additionals.

◆ GetAnswers()

const std::vector< DNSResourceRecord > & Botcraft::DNSMessage::GetAnswers ( ) const
inline

Definition at line 85 of file DNSMessage.hpp.

References answers.

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

◆ GetAuthorities()

const std::vector< DNSResourceRecord > & Botcraft::DNSMessage::GetAuthorities ( ) const
inline

Definition at line 90 of file DNSMessage.hpp.

References authorities.

◆ GetFlagAA()

char Botcraft::DNSMessage::GetFlagAA ( ) const
inline

Definition at line 30 of file DNSMessage.hpp.

References aa.

◆ GetFlagOPCode()

char Botcraft::DNSMessage::GetFlagOPCode ( ) const
inline

Definition at line 25 of file DNSMessage.hpp.

References opcode.

◆ GetFlagQR()

char Botcraft::DNSMessage::GetFlagQR ( ) const
inline

Definition at line 20 of file DNSMessage.hpp.

References qr.

◆ GetFlagRA()

char Botcraft::DNSMessage::GetFlagRA ( ) const
inline

Definition at line 45 of file DNSMessage.hpp.

References ra.

◆ GetFlagRCode()

char Botcraft::DNSMessage::GetFlagRCode ( ) const
inline

Definition at line 55 of file DNSMessage.hpp.

References rcode.

◆ GetFlagRD()

char Botcraft::DNSMessage::GetFlagRD ( ) const
inline

Definition at line 40 of file DNSMessage.hpp.

References rd.

◆ GetFlagTC()

char Botcraft::DNSMessage::GetFlagTC ( ) const
inline

Definition at line 35 of file DNSMessage.hpp.

References tc.

◆ GetFlagZ()

char Botcraft::DNSMessage::GetFlagZ ( ) const
inline

Definition at line 50 of file DNSMessage.hpp.

References z.

◆ GetIdentification()

const std::vector< unsigned char > & Botcraft::DNSMessage::GetIdentification ( ) const
inline

Definition at line 15 of file DNSMessage.hpp.

References identification.

◆ GetNumberAdditionalRR()

short Botcraft::DNSMessage::GetNumberAdditionalRR ( ) const
inline

Definition at line 75 of file DNSMessage.hpp.

References number_additional_rr.

◆ GetNumberAnswer()

short Botcraft::DNSMessage::GetNumberAnswer ( ) const
inline

Definition at line 65 of file DNSMessage.hpp.

References number_answer.

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

◆ GetNumberAuthority()

short Botcraft::DNSMessage::GetNumberAuthority ( ) const
inline

Definition at line 70 of file DNSMessage.hpp.

References number_authority.

◆ GetNumberQuestion()

short Botcraft::DNSMessage::GetNumberQuestion ( ) const
inline

Definition at line 60 of file DNSMessage.hpp.

References number_question.

◆ GetQuestions()

const std::vector< DNSQuestion > & Botcraft::DNSMessage::GetQuestions ( ) const
inline

Definition at line 80 of file DNSMessage.hpp.

References questions.

◆ ReadImpl()

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

◆ SerializeImpl()

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

◆ SetAdditionals()

void Botcraft::DNSMessage::SetAdditionals ( const std::vector< DNSResourceRecord > &  additionals_)
inline

Definition at line 181 of file DNSMessage.hpp.

References additionals.

◆ SetAnswers()

void Botcraft::DNSMessage::SetAnswers ( const std::vector< DNSResourceRecord > &  answers_)
inline

Definition at line 171 of file DNSMessage.hpp.

References answers.

◆ SetAuthorities()

void Botcraft::DNSMessage::SetAuthorities ( const std::vector< DNSResourceRecord > &  authorities_)
inline

Definition at line 176 of file DNSMessage.hpp.

References authorities.

◆ SetFlagAA()

void Botcraft::DNSMessage::SetFlagAA ( const char  aa_)
inline

Definition at line 116 of file DNSMessage.hpp.

References aa.

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

◆ SetFlagOPCode()

void Botcraft::DNSMessage::SetFlagOPCode ( const char  opcode_)
inline

Definition at line 111 of file DNSMessage.hpp.

References opcode.

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

◆ SetFlagQR()

void Botcraft::DNSMessage::SetFlagQR ( const char  qr_)
inline

Definition at line 106 of file DNSMessage.hpp.

References qr.

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

◆ SetFlagRA()

void Botcraft::DNSMessage::SetFlagRA ( const char  ra_)
inline

Definition at line 131 of file DNSMessage.hpp.

References ra.

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

◆ SetFlagRCode()

void Botcraft::DNSMessage::SetFlagRCode ( const char  rcode_)
inline

Definition at line 141 of file DNSMessage.hpp.

References rcode.

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

◆ SetFlagRD()

void Botcraft::DNSMessage::SetFlagRD ( const char  rd_)
inline

Definition at line 126 of file DNSMessage.hpp.

References rd.

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

◆ SetFlagTC()

void Botcraft::DNSMessage::SetFlagTC ( const char  tc_)
inline

Definition at line 121 of file DNSMessage.hpp.

References tc.

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

◆ SetFlagZ()

void Botcraft::DNSMessage::SetFlagZ ( const char  z_)
inline

Definition at line 136 of file DNSMessage.hpp.

References z.

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

◆ SetIdentification()

void Botcraft::DNSMessage::SetIdentification ( const std::vector< unsigned char > &  identification_)
inline

Definition at line 101 of file DNSMessage.hpp.

References identification.

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

◆ SetNumberAdditionalRR()

void Botcraft::DNSMessage::SetNumberAdditionalRR ( const short  number_additional_rr_)
inline

Definition at line 161 of file DNSMessage.hpp.

References number_additional_rr.

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

◆ SetNumberAnswer()

void Botcraft::DNSMessage::SetNumberAnswer ( const short  number_answer_)
inline

Definition at line 151 of file DNSMessage.hpp.

References number_answer.

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

◆ SetNumberAuthority()

void Botcraft::DNSMessage::SetNumberAuthority ( const short  number_authority_)
inline

Definition at line 156 of file DNSMessage.hpp.

References number_authority.

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

◆ SetNumberQuestion()

void Botcraft::DNSMessage::SetNumberQuestion ( const short  number_question_)
inline

Definition at line 146 of file DNSMessage.hpp.

References number_question.

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

◆ SetQuestions()

void Botcraft::DNSMessage::SetQuestions ( const std::vector< DNSQuestion > &  questions_)
inline

Definition at line 166 of file DNSMessage.hpp.

References questions.

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

◆ WriteImpl()

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

Member Data Documentation

◆ aa

char Botcraft::DNSMessage::aa
private

Definition at line 319 of file DNSMessage.hpp.

Referenced by GetFlagAA(), ReadImpl(), SerializeImpl(), SetFlagAA(), and WriteImpl().

◆ additionals

std::vector<DNSResourceRecord> Botcraft::DNSMessage::additionals
private

Definition at line 335 of file DNSMessage.hpp.

Referenced by GetAdditionals(), ReadImpl(), SerializeImpl(), SetAdditionals(), and WriteImpl().

◆ answers

std::vector<DNSResourceRecord> Botcraft::DNSMessage::answers
private

Definition at line 333 of file DNSMessage.hpp.

Referenced by GetAnswers(), ReadImpl(), SerializeImpl(), SetAnswers(), and WriteImpl().

◆ authorities

std::vector<DNSResourceRecord> Botcraft::DNSMessage::authorities
private

Definition at line 334 of file DNSMessage.hpp.

Referenced by GetAuthorities(), ReadImpl(), SerializeImpl(), SetAuthorities(), and WriteImpl().

◆ identification

std::vector<unsigned char> Botcraft::DNSMessage::identification
private

Definition at line 314 of file DNSMessage.hpp.

Referenced by GetIdentification(), ReadImpl(), SetIdentification(), and WriteImpl().

◆ number_additional_rr

short Botcraft::DNSMessage::number_additional_rr
private

◆ number_answer

short Botcraft::DNSMessage::number_answer
private

Definition at line 328 of file DNSMessage.hpp.

Referenced by GetNumberAnswer(), ReadImpl(), SerializeImpl(), SetNumberAnswer(), and WriteImpl().

◆ number_authority

short Botcraft::DNSMessage::number_authority
private

◆ number_question

short Botcraft::DNSMessage::number_question
private

◆ opcode

char Botcraft::DNSMessage::opcode
private

Definition at line 318 of file DNSMessage.hpp.

Referenced by GetFlagOPCode(), ReadImpl(), SerializeImpl(), SetFlagOPCode(), and WriteImpl().

◆ qr

char Botcraft::DNSMessage::qr
private

Definition at line 317 of file DNSMessage.hpp.

Referenced by GetFlagQR(), ReadImpl(), SerializeImpl(), SetFlagQR(), and WriteImpl().

◆ questions

std::vector<DNSQuestion> Botcraft::DNSMessage::questions
private

Definition at line 332 of file DNSMessage.hpp.

Referenced by GetQuestions(), ReadImpl(), SerializeImpl(), SetQuestions(), and WriteImpl().

◆ ra

char Botcraft::DNSMessage::ra
private

Definition at line 322 of file DNSMessage.hpp.

Referenced by GetFlagRA(), ReadImpl(), SerializeImpl(), SetFlagRA(), and WriteImpl().

◆ rcode

char Botcraft::DNSMessage::rcode
private

Definition at line 324 of file DNSMessage.hpp.

Referenced by GetFlagRCode(), ReadImpl(), SerializeImpl(), and SetFlagRCode().

◆ rd

char Botcraft::DNSMessage::rd
private

Definition at line 321 of file DNSMessage.hpp.

Referenced by GetFlagRD(), ReadImpl(), SerializeImpl(), SetFlagRD(), and WriteImpl().

◆ tc

char Botcraft::DNSMessage::tc
private

Definition at line 320 of file DNSMessage.hpp.

Referenced by GetFlagTC(), ReadImpl(), SerializeImpl(), SetFlagTC(), and WriteImpl().

◆ z

char Botcraft::DNSMessage::z
private

Definition at line 323 of file DNSMessage.hpp.

Referenced by GetFlagZ(), ReadImpl(), SerializeImpl(), SetFlagZ(), and WriteImpl().


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