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

Represents an SRV resource record. More...

#include <dnsrecord.h>

Inheritance diagram for DNS::RRecordSRV:
DNS::ResourceRecord

Public Member Functions

 RRecordSRV (const std::string &name, int32_t ttl, uint16_t priority, uint16_t weight, uint16_t port, const std::string &target)
 Class constructor. More...
 
uint16_t getPriority ()
 Retrieves the priority of this target host. More...
 
uint16_t getWeight ()
 Retrieves. More...
 
uint16_t getPort ()
 Retrieves the relative weight for entries with the same priority. More...
 
const EStringgetTarget ()
 The domain name of the target host. More...
 
virtual Void dump ()
 Prints the contents fo this SRV 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 SRV resource record.

Constructor & Destructor Documentation

◆ RRecordSRV()

DNS::RRecordSRV::RRecordSRV ( const std::string &  name,
int32_t  ttl,
uint16_t  priority,
uint16_t  weight,
uint16_t  port,
const std::string &  target 
)
inline

Class constructor.

Parameters
namethe domain name to which this resource record pertains.
ttlthe time to live value.
prioritythe priority of this target host.
weightthe relative weight for entries with the same priority.
portthe port on this target host of this service.
targetthe domain name of the target host.

Member Function Documentation

◆ dump()

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

Prints the contents fo this SRV record.

Reimplemented from DNS::ResourceRecord.

◆ getPort()

uint16_t DNS::RRecordSRV::getPort ( )
inline

Retrieves the relative weight for entries with the same priority.

Returns
the relative weight for entries with the same priority.

◆ getPriority()

uint16_t DNS::RRecordSRV::getPriority ( )
inline

Retrieves the priority of this target host.

Returns
the priority of this target host.

◆ getTarget()

const EString& DNS::RRecordSRV::getTarget ( )
inline

The domain name of the target host.

Returns
the domain name of the target host.

◆ getWeight()

uint16_t DNS::RRecordSRV::getWeight ( )
inline

Retrieves.

Returns


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