MySQL 8.0.40
Source Code Documentation
Gcs_ip_allowlist_entry_hostname Class Reference

Implementation of Gcs_ip_allowlist_entry to use with hostnames. More...

#include <gcs_xcom_networking.h>

Inheritance diagram for Gcs_ip_allowlist_entry_hostname:
[legend]

Public Member Functions

 Gcs_ip_allowlist_entry_hostname (std::string addr, std::string mask)
 
 Gcs_ip_allowlist_entry_hostname (std::string addr)
 
bool init_value () override
 Entry initialization. More...
 
std::vector< std::pair< std::vector< unsigned char >, std::vector< unsigned char > > > * get_value () override
 Virtual Method that implements value retrieval for this entry. More...
 
- Public Member Functions inherited from Gcs_ip_allowlist_entry
 Gcs_ip_allowlist_entry (std::string addr, std::string mask)
 Constructor. More...
 
virtual ~Gcs_ip_allowlist_entry ()=default
 
std::string get_addr () const
 Getters. More...
 
std::string get_mask () const
 

Detailed Description

Implementation of Gcs_ip_allowlist_entry to use with hostnames.

Constructor & Destructor Documentation

◆ Gcs_ip_allowlist_entry_hostname() [1/2]

Gcs_ip_allowlist_entry_hostname::Gcs_ip_allowlist_entry_hostname ( std::string  addr,
std::string  mask 
)

◆ Gcs_ip_allowlist_entry_hostname() [2/2]

Gcs_ip_allowlist_entry_hostname::Gcs_ip_allowlist_entry_hostname ( std::string  addr)

Member Function Documentation

◆ get_value()

std::vector< std::pair< std::vector< unsigned char >, std::vector< unsigned char > > > * Gcs_ip_allowlist_entry_hostname::get_value ( )
overridevirtual

Virtual Method that implements value retrieval for this entry.

The returned value must be a list of std::pairs that contains both the address and the mask in network octet value. This is in list format because in the case of allowlist names, we can have multiple value for the same entry

Returns
an std::vector of std::pair with ip and mask in network octet form

Implements Gcs_ip_allowlist_entry.

◆ init_value()

bool Gcs_ip_allowlist_entry_hostname::init_value ( )
overridevirtual

Entry initialization.

If one needs to initialize internal values, it should be done in this method.

Returns
false on success, true otherwise

Implements Gcs_ip_allowlist_entry.


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