Kea 2.7.4
|
#include <rdataclass.h>
Public Member Functions | |
SOA (const Name &mname, const Name &rname, uint32_t serial, uint32_t refresh, uint32_t retry, uint32_t expire, uint32_t minimum) | |
SOA (const SOA &other) | |
SOA (const std::string &type_str) | |
SOA (isc::util::InputBuffer &buffer, size_t rdata_len) | |
SOA (MasterLexer &lexer, const Name *name, MasterLoader::Options options, MasterLoaderCallbacks &callbacks) | |
virtual int | compare (const Rdata &other) const |
Compare two instances of Rdata . | |
uint32_t | getMinimum () const |
brief Returns the minimum TTL field value of the SOA. | |
Serial | getSerial () const |
Returns the serial stored in the SOA. | |
virtual std::string | toText () const |
Convert an Rdata to a string. | |
virtual void | toWire (AbstractMessageRenderer &renderer) const |
Render the Rdata in the wire format into a MessageRenderer object. | |
virtual void | toWire (isc::util::OutputBuffer &buffer) const |
Render the Rdata in the wire format into a buffer. | |
Public Member Functions inherited from isc::dns::rdata::Rdata | |
virtual uint16_t | getLength () const |
Get the wire format length of an Rdata. | |
virtual | ~Rdata () |
The destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from isc::dns::rdata::Rdata | |
Rdata () | |
The default constructor. | |
Definition at line 370 of file rdataclass.h.
|
explicit |
isc::dns::rdata::generic::SOA::SOA | ( | isc::util::InputBuffer & | buffer, |
size_t | rdata_len ) |
isc::dns::rdata::generic::SOA::SOA | ( | const SOA & | other | ) |
isc::dns::rdata::generic::SOA::SOA | ( | MasterLexer & | lexer, |
const Name * | name, | ||
MasterLoader::Options | options, | ||
MasterLoaderCallbacks & | callbacks ) |
isc::dns::rdata::generic::SOA::SOA | ( | const Name & | mname, |
const Name & | rname, | ||
uint32_t | serial, | ||
uint32_t | refresh, | ||
uint32_t | retry, | ||
uint32_t | expire, | ||
uint32_t | minimum ) |
|
virtual |
Compare two instances of Rdata
.
This method compares this
and the other
Rdata objects in terms of the DNSSEC sorting order as defined in RFC4034, and returns the result as an integer.
This is a pure virtual method without the definition; the actual comparison logic is specific to each derived concrete class and should be explicitly defined in the derived class.
Specific implementations of this method must confirm that this
and the other
are objects of the same concrete derived class of Rdata
. This is normally done by dynamic_cast
in the implementation. It also means if the assumption isn't met an exception of class std::bad_cast
will be thrown.
Here is an implementation choice: instead of relying on dynamic_cast
, we could first convert the data into wire-format and compare the pair as opaque data. This would be more polymorphic, but might involve significant overhead, especially for a large size of RDATA.
other | the right-hand operand to compare against. |
this
would be sorted before other
. this
is identical to other
in terms of sorting order. this
would be sorted after other
. Implements isc::dns::rdata::Rdata.
uint32_t isc::dns::rdata::generic::SOA::getMinimum | ( | ) | const |
brief Returns the minimum TTL field value of the SOA.
|
virtual |
Convert an Rdata
to a string.
This method returns a std::string
object representing the Rdata
.
This is a pure virtual method without the definition; the actual representation is specific to each derived concrete class and should be explicitly defined in the derived class.
Rdata
. Implements isc::dns::rdata::Rdata.
|
virtual |
Render the Rdata
in the wire format into a MessageRenderer
object.
This is a pure virtual method without the definition; the actual conversion is specific to each derived concrete class and should be explicitly defined in the derived class.
renderer | DNS message rendering context that encapsulates the output buffer in which the Rdata is to be stored. |
Implements isc::dns::rdata::Rdata.
|
virtual |
Render the Rdata
in the wire format into a buffer.
This is a pure virtual method without the definition; the actual conversion is specific to each derived concrete class and should be explicitly defined in the derived class.
buff | An output buffer to store the wire data. |
Implements isc::dns::rdata::Rdata.