-
Notifications
You must be signed in to change notification settings - Fork 23
QuantumGate::IPAddress::TryParseMask
Karel Donk edited this page Dec 23, 2021
·
6 revisions
Attempts to parse an IP address mask from a string.
static bool TryParseMask(const IPAddress::Family af,
const WChar* mask_str, IPAddress& ipmask) noexcept;
static bool TryParseMask(const IPAddress::Family af,
const String& mask_str, IPAddress& ipmask) noexcept;
Name | Description |
---|---|
af |
The address family. See QuantumGate::IPAddress::Family for more details. |
mask_str |
The IP address mask in string format. The mask can either be in IP address format (e.g. "255.255.0.0" ) or just the CIDR leading bits (e.g. "/24" ). |
ipmask |
A QuantumGate::IPAddress object to store the mask in. |
Returns true
if the operation succeeded, otherwise false
. Upon successful completion the mask will be stored in the ipmask
parameter.