EpcTools
An event based multi-threaded C++ development framework.
Public Member Functions | List of all members
DNS::RRecordNS Class Reference

Represents an NS resource record. More...

#include <dnsrecord.h>

Inheritance diagram for DNS::RRecordNS:
DNS::ResourceRecord

Public Member Functions

 RRecordNS (const std::string &name, int32_t ttl, const std::string &ns)
 Class constructor. More...
 
const EStringgetNamedServer ()
 
virtual Void dump ()
 Prints the contents fo this NS record. More...
 
- Public Member Functions inherited from DNS::ResourceRecord
 ResourceRecord (const std::string &name, ns_type rtype, ns_class rclass, int32_t ttl)
 Class constructor. More...
 
virtual ~ResourceRecord ()
 Class destructor. More...
 
const EStringgetName ()
 Retrieves the domain name to which this resource record pertains. More...
 
ns_type getType ()
 Retrieves the resource type. More...
 
ns_class getClass ()
 Retrieves the class of the data in the RDATA field. More...
 
uint32_t getTTL ()
 Retrieves the time interval (in seconds) that the resource record may be cached before it should be discarded. More...
 
time_t getExpires ()
 Retrieves the expiration time of this resource record. More...
 
Bool isExpired ()
 Determines if this resource record has expired. More...
 

Detailed Description

Represents an NS resource record.

Constructor & Destructor Documentation

◆ RRecordNS()

DNS::RRecordNS::RRecordNS ( const std::string &  name,
int32_t  ttl,
const std::string &  ns 
)
inline

Class constructor.

Parameters
namethe domain name to which this resource record pertains.
ttlthe time to live value.
nsthe named server for this NS record.

Member Function Documentation

◆ dump()

virtual Void DNS::RRecordNS::dump ( )
inlinevirtual

Prints the contents fo this NS record.

Reimplemented from DNS::ResourceRecord.

◆ getNamedServer()

const EString& DNS::RRecordNS::getNamedServer ( )
inline

The documentation for this class was generated from the following file: