42 #ifndef _DWMDNSRRDATAHINFO_HH_ 43 #define _DWMDNSRRDATAHINFO_HH_ 63 static const uint16_t k_rrtype = 13;
73 RRDataHINFO(
const std::string & cpu,
const std::string & os);
83 const std::string &
Cpu()
const;
88 const std::string &
Cpu(
const std::string & cpu);
93 const std::string &
Os()
const;
99 const std::string &
Os(
const std::string & os);
108 uint8_t *
Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen,
118 const uint8_t *
Decode(
const uint8_t *pkt,
const uint8_t *ptr,
119 uint16_t pktlen, uint16_t rdlen);
125 friend std::ostream &
operator << (std::ostream & os,
137 #endif // _DWMDNSRRDATAHINFO_HH_ RRDataHINFO()
Construct empty HINFO resource record data.
uint8_t * Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const
Encodes the HINFO resource record data into buffer @ pkt of length pktlen, starting at ptr...
const std::string & Cpu() const
Returns the CPU in the HINFO resource record data.
Definition: DwmDnsEtcHosts.hh:60
const uint8_t * Decode(const uint8_t *pkt, const uint8_t *ptr, uint16_t pktlen, uint16_t rdlen)
Decodes the HINFO resource record data from buffer pkt of length pktlen, starting at ptr...
Encapsulates HINFO resource record data.
Definition: DwmDnsRRDataHINFO.hh:59
friend std::ostream & operator<<(std::ostream &os, const RRDataHINFO &hinfo)
Print the HINFO resource record data to an ostream in human readable form.
Dwm::Dns::RRData class definition.
A helper class used when performing label sequence compression.
Definition: DwmDnsLabelPositions.hh:57
bool operator==(const RRDataHINFO &hinfo) const
Equal-to operator, mostly for unit testing.
Abstract (pure virtual) base for resource record data classes.
Definition: DwmDnsRRData.hh:71
const std::string & Os() const
Returns the operating system in the HINFO resource record data.