19#if defined(__sun) && defined(DS)
107 explicit RRType(uint16_t typecode) : typecode_(typecode) {
135 explicit RRType(
const std::string& typestr);
169 const std::string
toText()
const;
220 return (typecode_ == other.typecode_);
234 return (typecode_ != other.typecode_);
257 return (typecode_ < other.typecode_);
334 static RRType rrtype(249);
340 static RRType rrtype(250);
346 static RRType rrtype(255);
The RRType class encapsulates DNS resource record types.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
DNSTextError(const char *file, size_t line, const char *what)
Exception(const char *file, size_t line, const char *what)
IncompleteRRType(const char *file, size_t line, const char *what)
InvalidRRType(const char *file, size_t line, const char *what)
The RRType class encapsulates DNS resource record types.
uint16_t getCode() const
Returns the RR type code as a 16-bit unsigned integer.
static const RRType & TSIG()
RRType(uint16_t typecode)
Constructor from an integer type code.
bool operator<(const RRType &other) const
Less-than comparison for RRType against other.
static const RRType & ANY()
static const RRType & OPT()
static const RRType & NS()
bool operator==(const RRType &other) const
Same as equals().
void toWire(AbstractMessageRenderer &renderer) const
Render the RRType in the wire format.
static const RRType & TKEY()
bool operator!=(const RRType &other) const
Same as nequals().
static const RRType & AAAA()
const std::string toText() const
Convert the RRType to a string.
bool equals(const RRType &other) const
Return true iff two RRTypes are equal.
static const RRType & PTR()
static const RRType & RRSIG()
bool nequals(const RRType &other) const
Return true iff two RRTypes are not equal.
static const RRType & DHCID()
static const RRType & SOA()
static const RRType & TXT()
static const RRType & A()
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
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.