Kea 2.5.8
isc::dns::rdata::generic::OPT::PseudoRR Class Reference

A class representing a pseudo RR (or option) within an OPT RR (see RFC 6891). More...

#include <rdataclass.h>

Public Member Functions

 PseudoRR (uint16_t code, boost::shared_ptr< std::vector< uint8_t > > &data)
 Constructor.
 
uint16_t getCode () const
 Return the option code of this pseudo RR.
 
const uint8_t * getData () const
 Return the option data of this pseudo RR.
 
uint16_t getLength () const
 Return the length of the option data of this pseudo RR.
 

Detailed Description

A class representing a pseudo RR (or option) within an OPT RR (see RFC 6891).

Definition at line 265 of file rdataclass.h.

Constructor & Destructor Documentation

◆ PseudoRR()

isc::dns::rdata::generic::OPT::PseudoRR::PseudoRR ( uint16_t  code,
boost::shared_ptr< std::vector< uint8_t > > &  data 
)

Constructor.

Parameters
codeThe OPTION-CODE field of the pseudo RR.
dataThe OPTION-DATA field of the pseudo RR. OPTION-LENGTH is set to the length of this vector.

Member Function Documentation

◆ getCode()

uint16_t isc::dns::rdata::generic::OPT::PseudoRR::getCode ( ) const

Return the option code of this pseudo RR.

◆ getData()

const uint8_t * isc::dns::rdata::generic::OPT::PseudoRR::getData ( ) const

Return the option data of this pseudo RR.

◆ getLength()

uint16_t isc::dns::rdata::generic::OPT::PseudoRR::getLength ( ) const

Return the length of the option data of this pseudo RR.


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