31 "Unrecognized RR type string: " + type_str);
37 if (buffer.getLength() - buffer.getPosition() <
sizeof(uint16_t)) {
40 typecode_ = buffer.readUint16();
50 buffer.writeUint16(typecode_);
55 renderer.writeUint16(typecode_);
60 os << rrtype.toText();
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
A standard DNS module exception that is thrown if an RRType object is being constructed from a incomp...
A standard DNS module exception that is thrown if an RRType object is being constructed from an unrec...
static RRParamRegistry & getRegistry()
Return the singleton instance of RRParamRegistry.
The RRType class encapsulates DNS resource record types.
RRType(uint16_t typecode)
Constructor from an integer type code.
void toWire(AbstractMessageRenderer &renderer) const
Render the RRType in the wire format.
const std::string toText() const
Convert the RRType to a string.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
Defines the logger used by the top-level component of kea-lfc.