Kea 2.7.6
|
The D2Zone
encapsulates the Zone section in DNS Update message.
More...
#include <d2_zone.h>
Public Member Functions | |
D2Zone (const dns::Name &name, const dns::RRClass &rrclass) | |
Constructor from Name and RRClass. | |
Getters | |
const dns::Name & | getName () const |
Returns the Zone name. | |
const dns::RRClass & | getClass () const |
Returns the Zone class. | |
std::string | toText () const |
Returns text representation of the Zone. | |
Comparison Operators | |
bool | operator== (const D2Zone &rhs) const |
Equality operator to compare D2Zone objects in query and response messages. | |
bool | operator!= (const D2Zone &rhs) const |
Inequality operator to compare D2Zone objects in query and response messages. | |
The D2Zone
encapsulates the Zone section in DNS Update message.
This class is used by the D2UpdateMessage
to encapsulate the Zone section of the DNS Update message. Class members hold corresponding values of section's fields: NAME, CLASS. This class does not hold the RTYPE field value because RTYPE is always equal to SOA for DNS Update message (see RFC 2136, section 2.3).
Note, that this D2Zone
class neither exposes functions to decode messages from wire format nor to encode to wire format. This is not needed, because isc::d2::D2UpdateMessage
class uses D2Zone
only to return the parsed Zone information to the caller. Internally, D2UpdateMessage parses and stores Zone section using isc::dns::Question
class, and the toWire
and fromWire
functions of the isc::dns::Question
class are used.
isc::d2::D2Zone::D2Zone | ( | const dns::Name & | name, |
const dns::RRClass & | rrclass ) |
Constructor from Name and RRClass.
name | The name of the Zone. |
rrclass | The RR class of the Zone. |
Definition at line 14 of file d2_zone.cc.
|
inline |
|
inline |
|
inline |
|
inline |
std::string isc::d2::D2Zone::toText | ( | ) | const |
Returns text representation of the Zone.
This function concatenates the name of the Zone, Class and Type. The type is always SOA.
Definition at line 18 of file d2_zone.cc.
References isc::dns::Name::toText(), and isc::dns::RRClass::toText().
Referenced by isc::d2::operator<<().