30 "Unrecognized RR class string: " + class_str);
32 classcode_ = classcode;
36 if (buffer.getLength() - buffer.getPosition() <
sizeof(uint16_t)) {
39 classcode_ = buffer.readUint16();
49 buffer.writeUint16(classcode_);
54 renderer.writeUint16(classcode_);
62 return (
new RRClass(class_code));
69 os << rrclass.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 RRClass object is being constructed from a incom...
A standard DNS module exception that is thrown if an RRClass object is being constructed from an unre...
The RRClass class encapsulates DNS resource record classes.
void toWire(AbstractMessageRenderer &renderer) const
Render the RRClass in the wire format.
static RRClass * createFromText(const std::string &class_str)
A separate factory of RRClass from text.
const std::string toText() const
Convert the RRClass to a string.
RRClass(uint16_t classcode)
Constructor from an integer class code.
static RRParamRegistry & getRegistry()
Return the singleton instance of RRParamRegistry.
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.