const std::string & Value() const
Returns the contained domain name.
Encapsulates data for any resource recourd which only contains a domain name.
Definition: DwmDnsRRDataDomainName.hh:60
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...
friend std::ostream & operator<<(std::ostream &os, const RRDataDomainName &domainName)
Print the domain name resource record data to an ostream in human readable form.
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...
RRDataDomainName()
constructs an empty domain name resource record data object.
bool operator==(const RRDataDomainName &domainName) const
Equal-to operator, mostly for unit testing.