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

#include <DNSSrvData.hpp>

Inheritance diagram for Botcraft::DNSSrvData:
ProtocolCraft::NetworkType

Public Member Functions

const unsigned short GetPriority () const
 
const unsigned short GetWeight () const
 
const unsigned short GetPort () const
 
const std::vector< std::string > & GetNameLabels () const
 
void SetPriority (const unsigned short priority_)
 
void SetWeight (const unsigned short weight_)
 
void SetPort (const unsigned short port_)
 
void SetNameLabels (const std::vector< std::string > &name_labels_)
 
- 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

unsigned short priority
 
unsigned short weight
 
unsigned short port
 
std::vector< std::string > name_labels
 

Detailed Description

Definition at line 9 of file DNSSrvData.hpp.

Member Function Documentation

◆ GetNameLabels()

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

Definition at line 27 of file DNSSrvData.hpp.

References name_labels.

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

◆ GetPort()

const unsigned short Botcraft::DNSSrvData::GetPort ( ) const
inline

Definition at line 22 of file DNSSrvData.hpp.

References port.

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

◆ GetPriority()

const unsigned short Botcraft::DNSSrvData::GetPriority ( ) const
inline

Definition at line 12 of file DNSSrvData.hpp.

References priority.

◆ GetWeight()

const unsigned short Botcraft::DNSSrvData::GetWeight ( ) const
inline

Definition at line 17 of file DNSSrvData.hpp.

References weight.

◆ ReadImpl()

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

Implements ProtocolCraft::NetworkType.

Definition at line 54 of file DNSSrvData.hpp.

References name_labels, port, priority, ProtocolCraft::ReadRawString(), and weight.

◆ SerializeImpl()

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

Implements ProtocolCraft::NetworkType.

Definition at line 86 of file DNSSrvData.hpp.

References name_labels, port, priority, and weight.

◆ SetNameLabels()

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

Definition at line 48 of file DNSSrvData.hpp.

References name_labels.

◆ SetPort()

void Botcraft::DNSSrvData::SetPort ( const unsigned short  port_)
inline

Definition at line 43 of file DNSSrvData.hpp.

References port.

◆ SetPriority()

void Botcraft::DNSSrvData::SetPriority ( const unsigned short  priority_)
inline

Definition at line 33 of file DNSSrvData.hpp.

References priority.

◆ SetWeight()

void Botcraft::DNSSrvData::SetWeight ( const unsigned short  weight_)
inline

Definition at line 38 of file DNSSrvData.hpp.

References weight.

◆ WriteImpl()

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

Implements ProtocolCraft::NetworkType.

Definition at line 71 of file DNSSrvData.hpp.

References name_labels, port, priority, weight, and ProtocolCraft::WriteRawString().

Member Data Documentation

◆ name_labels

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

Definition at line 108 of file DNSSrvData.hpp.

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

◆ port

unsigned short Botcraft::DNSSrvData::port
private

Definition at line 107 of file DNSSrvData.hpp.

Referenced by GetPort(), ReadImpl(), SerializeImpl(), SetPort(), and WriteImpl().

◆ priority

unsigned short Botcraft::DNSSrvData::priority
private

Definition at line 105 of file DNSSrvData.hpp.

Referenced by GetPriority(), ReadImpl(), SerializeImpl(), SetPriority(), and WriteImpl().

◆ weight

unsigned short Botcraft::DNSSrvData::weight
private

Definition at line 106 of file DNSSrvData.hpp.

Referenced by GetWeight(), ReadImpl(), SerializeImpl(), SetWeight(), and WriteImpl().


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