MySQL 9.1.0
Source Code Documentation
|
A RFC2782 compliant SRV records storage. More...
#include <dns_srv_data.h>
Classes | |
class | Dns_entry |
Public Member Functions | |
void | clear () |
void | add (const std::string &host, unsigned port, unsigned priority, unsigned weight) |
bool | pop_next (std::string &host, unsigned &port) |
Private Types | |
using | dns_entry_list_t = std::list< Dns_entry > |
using | dns_entry_data_t = std::map< unsigned, Dns_srv_data::dns_entry_list_t > |
Private Attributes | |
dns_entry_data_t | data_ |
A RFC2782 compliant SRV records storage.
Stores host/port/weight/priority entries into a data structure that then allows retrieving these via the Dns_srv_data::pop_next() method.
Entries can be stored by calling Dns_srv_data::add() in any order.
This usage pattern is roughly as follows:
|
private |
|
private |
|
inline |
|
inline |
|
inline |
|
private |