MySQL 9.0.0
Source Code Documentation
Gcs_ip_allowlist_entry_ip Class Reference

Implementation of Gcs_ip_allowlist_entry to use with raw IP addresses in format X.X.X.X/XX. More...

#include <gcs_xcom_networking.h>

Inheritance diagram for Gcs_ip_allowlist_entry_ip:
[legend]

Public Member Functions

 Gcs_ip_allowlist_entry_ip (std::string addr, std::string mask)
 
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
 

Private Attributes

std::pair< std::vector< unsigned char >, std::vector< unsigned char > > m_value
 

Detailed Description

Implementation of Gcs_ip_allowlist_entry to use with raw IP addresses in format X.X.X.X/XX.

Constructor & Destructor Documentation

◆ Gcs_ip_allowlist_entry_ip()

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

Member Function Documentation

◆ get_value()

std::vector< std::pair< std::vector< unsigned char >, std::vector< unsigned char > > > * Gcs_ip_allowlist_entry_ip::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_ip::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.

Member Data Documentation

◆ m_value

std::pair<std::vector<unsigned char>, std::vector<unsigned char> > Gcs_ip_allowlist_entry_ip::m_value
private

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