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

Represents an A resource record. More...

#include <dnsrecord.h>

Inheritance diagram for DNS::RRecordA:
DNS::ResourceRecord

Public Member Functions

 RRecordA (const std::string &name, int32_t ttl, const struct in_addr &address)
 Class constructor. More...
 
const struct in_addr & getAddress ()
 Retrieves the IP address for this A record. More...
 
EString getAddressString ()
 Convert the IPv4 address to a string. More...
 
virtual Void dump ()
 Prints the contents fo this A 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 A resource record.

Constructor & Destructor Documentation

◆ RRecordA()

DNS::RRecordA::RRecordA ( const std::string &  name,
int32_t  ttl,
const struct in_addr &  address 
)
inline

Class constructor.

Parameters
namethe domain name to which this resource record pertains.
ttlthe time to live value.
addressthe IPv4 address associated with this server.

Member Function Documentation

◆ dump()

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

Prints the contents fo this A record.

Reimplemented from DNS::ResourceRecord.

◆ getAddress()

const struct in_addr& DNS::RRecordA::getAddress ( )
inline

Retrieves the IP address for this A record.

Returns
the IP address for this A record.

◆ getAddressString()

EString DNS::RRecordA::getAddressString ( )
inline

Convert the IPv4 address to a string.

Returns
the string representation of the IPv4 address.

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