DwmDns-0.1.0
Dwm::Dns::RRDataMG Class Reference

Encapsulates MG resource record data. More...

#include <DwmDnsRRDataMG.hh>

Inheritance diagram for Dwm::Dns::RRDataMG:
Collaboration diagram for Dwm::Dns::RRDataMG:

Public Member Functions

 RRDataMG ()
 Construct MG resource record data with an empty domain name.
 
 RRDataMG (const std::string &mg)
 Construct MG resource record data with domain name mg.
 
const std::string & Mg () const
 Returns the domain name contained in the MG resource record data.
 
const std::string & Mg (const std::string &value)
 Sets and Returns the domain name contained in the MG resource record data. More...
 
- Public Member Functions inherited from Dwm::Dns::RRDataDomainName
 RRDataDomainName ()
 constructs an empty domain name resource record data object.
 
 RRDataDomainName (const std::string &value)
 Construct with the given domain name value.
 
bool operator== (const RRDataDomainName &domainName) const
 Equal-to operator, mostly for unit testing.
 
const std::string & Value () const
 Returns the contained domain name.
 
const std::string & Value (const std::string &value)
 Sets and returns the contained domain name.
 
uint8_t * Encode (uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const
 Encodes the domain name resource record data into buffer @ pkt of length pktlen, starting at ptr. More...
 
const uint8_t * Decode (const uint8_t *pkt, const uint8_t *ptr, uint16_t pktlen, uint16_t rdlen)
 Decodes the domain name resource record data from buffer pkt of length pktlen, starting at ptr. More...
 

Static Public Attributes

static const uint16_t k_rrtype = 8
 

Additional Inherited Members

- Protected Attributes inherited from Dwm::Dns::RRDataDomainName
std::string _value
 

Detailed Description

Encapsulates MG resource record data.

See RFC1035 for details.

Member Function Documentation

◆ Mg()

const std::string& Dwm::Dns::RRDataMG::Mg ( const std::string &  value)
inline

Sets and Returns the domain name contained in the MG resource record data.


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