Encapsulates URI resource record data. More...
#include <DwmDnsRRDataURI.hh>


Public Member Functions | |
| RRDataURI () | |
| Construct with an empty target. | |
| RRDataURI (uint16_t priority, uint16_t weight, const std::string &target) | |
Construct with the given priority, weight and target. | |
| bool | operator== (const RRDataURI &srv) const |
| Equal-to operator, mostly for unit testing. | |
| uint16_t | Priority () const |
| Returns the contained priority. | |
| uint16_t | Priority (uint16_t priority) |
| Sets and returns the contained priority. | |
| uint16_t | Weight () const |
| Returns the contained weight. | |
| uint16_t | Weight (uint16_t weight) |
| Sets and returns the contained weight. | |
| const std::string & | Target () const |
| Returns the contained target. | |
| const std::string & | Target (const std::string &target) |
| Sets and returns the contained target. | |
| uint8_t * | Encode (uint8_t *pkt, uint8_t *ptr, uint16_t pktlen, LabelPositions &lps) const |
Encodes the URI 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 URI resource record data from buffer pkt of length pktlen, starting at ptr. More... | |
Static Public Attributes | |
| static const uint16_t | k_rrtype = 256 |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RRDataURI &uri) |
| Print the URI resource record data to an ostream in human readable form. More... | |
Encapsulates URI resource record data.
See RFC7553 for details.
|
virtual |
Decodes the URI resource record data from buffer pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded URI resource record data in pkt on success. Throws std::out_of_range if pkt was too short to contain an encoded URI resource record data.
Implements Dwm::Dns::RRData.
|
virtual |
Encodes the URI resource record data into buffer @ pkt of length pktlen, starting at ptr.
Returns the address immediately following the encoded URI resource record data in pkt on success. Throws std::out_of_range if pkt is too short to contain the encoded URI resource record data.
Implements Dwm::Dns::RRData.
|
friend |
Print the URI resource record data to an ostream in human readable form.