MySQL 8.0.39
Source Code Documentation
|
Base abstract class for the allowlist entries. More...
#include <gcs_xcom_networking.h>
Public Member Functions | |
Gcs_ip_allowlist_entry (std::string addr, std::string mask) | |
Constructor. More... | |
virtual | ~Gcs_ip_allowlist_entry ()=default |
virtual bool | init_value ()=0 |
Entry initialization. More... | |
virtual std::vector< std::pair< std::vector< unsigned char >, std::vector< unsigned char > > > * | get_value ()=0 |
Virtual Method that implements value retrieval for this entry. More... | |
std::string | get_addr () const |
Getters. More... | |
std::string | get_mask () const |
Private Attributes | |
std::string | m_addr |
std::string | m_mask |
Base abstract class for the allowlist entries.
This is the base class for the Allowlist entries. Any derived class must implement its two abstract methods:
Gcs_ip_allowlist_entry::Gcs_ip_allowlist_entry | ( | std::string | addr, |
std::string | mask | ||
) |
Constructor.
[in] | addr | IP address or hostname of this entry |
[in] | mask | Network mask of this entry. |
|
virtualdefault |
|
inline |
Getters.
|
inline |
|
pure virtual |
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
Implemented in Gcs_ip_allowlist_entry_ip, and Gcs_ip_allowlist_entry_hostname.
|
pure virtual |
Entry initialization.
If one needs to initialize internal values, it should be done in this method.
Implemented in Gcs_ip_allowlist_entry_ip, and Gcs_ip_allowlist_entry_hostname.
|
private |
|
private |