 |
Kea
1.5.0
|
Go to the documentation of this file.
39 std::string r(name_.
toText() +
" " + rrclass_.
toText() +
" " +
size_t getLength() const
Return the length of data written in the internal buffer.
unsigned int toWire(AbstractMessageRenderer &renderer) const
Render the Question in the wire format with name compression.
const std::string toText() const
Convert the RRType to a string.
void toWire(AbstractMessageRenderer &renderer) const
Render the RRClass in the wire format.
std::string toText(bool omit_final_dot=false) const
Convert the Name to a string.
virtual void writeName(const Name &name, bool compress=true)=0
Write a Name object into the internal buffer in wire format, with or without name compression.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
Defines the logger used by the top-level component of kea-dhcp-ddns.
The Question class encapsulates the common search key of DNS lookup, consisting of owner name,...
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
virtual void setTruncated()=0
Mark the renderer to indicate truncation has occurred while rendering.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
void toWire(AbstractMessageRenderer &renderer) const
Render the Name in the wire format with compression.
void trim(size_t len)
Trim the specified length of data from the end of the internal buffer.
const std::string toText() const
Convert the RRClass to a string.
void toWire(AbstractMessageRenderer &renderer) const
Render the RRType in the wire format.
virtual size_t getLengthLimit() const =0
Return the maximum length of rendered data that can fit in the corresponding DNS message without trun...
The RRType class encapsulates DNS resource record types.
The RRClass class encapsulates DNS resource record classes.
std::string toText(bool newline=false) const
Convert the Question to a string.