42 #ifndef _DWMDNSLABELSEQUENCE_HH_ 43 #define _DWMDNSLABELSEQUENCE_HH_ 87 operator std::string ()
const;
97 uint8_t *
Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen,
103 uint8_t *
Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen)
const;
112 const uint8_t *
Decode(
const uint8_t *pkt,
const uint8_t *ptr,
123 #endif // _DWMDNSLABELSEQUENCE_HH_ Dwm::Dns::LabelPositions class definition.
const uint8_t * Decode(const uint8_t *pkt, const uint8_t *ptr, uint16_t pktlen)
Decodes the label sequence from buffer pkt of length pktlen, starting at ptr.
Definition: DwmDnsEtcHosts.hh:60
LabelSequence()
Constructs an empty label sequence.
From RFC1035 section 4.1.4: The compression scheme allows a domain name in a message to be represente...
Definition: DwmDnsLabelSequence.hh:71
A helper class used when performing label sequence compression.
Definition: DwmDnsLabelPositions.hh:57
uint8_t * Encode(uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const
Encodes the label sequence into buffer @ pkt of length pktlen, starting at ptr.