MySQL 9.1.0
Source Code Documentation
Dns_srv_data::Dns_entry Class Reference

Public Member Functions

 Dns_entry (const std::string &host, unsigned port, unsigned weight)
 
unsigned port () const
 
std::string host () const
 
unsigned long weight_sum () const
 
void add_weight_sum (unsigned long &weight_sum)
 

Private Member Functions

 Dns_entry ()=delete
 

Private Attributes

std::string host_
 
unsigned port_ {0}
 
unsigned weight_ {0}
 
unsigned long weight_sum_ {0}
 

Constructor & Destructor Documentation

◆ Dns_entry() [1/2]

Dns_srv_data::Dns_entry::Dns_entry ( )
privatedelete

◆ Dns_entry() [2/2]

Dns_srv_data::Dns_entry::Dns_entry ( const std::string &  host,
unsigned  port,
unsigned  weight 
)
inline

Member Function Documentation

◆ add_weight_sum()

void Dns_srv_data::Dns_entry::add_weight_sum ( unsigned long &  weight_sum)
inline

◆ host()

std::string Dns_srv_data::Dns_entry::host ( ) const
inline

◆ port()

unsigned Dns_srv_data::Dns_entry::port ( ) const
inline

◆ weight_sum()

unsigned long Dns_srv_data::Dns_entry::weight_sum ( ) const
inline

Member Data Documentation

◆ host_

std::string Dns_srv_data::Dns_entry::host_
private

◆ port_

unsigned Dns_srv_data::Dns_entry::port_ {0}
private

◆ weight_

unsigned Dns_srv_data::Dns_entry::weight_ {0}
private

◆ weight_sum_

unsigned long Dns_srv_data::Dns_entry::weight_sum_ {0}
private

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