Parse a ‐whitelist string into permissions, a subnet, and a connection direction.
Synopsis
Declared in <net_permissions.h>
static
bool
TryParse(
std::string const& str,
NetWhitelistPermissions& output,
ConnectionDirection& output_connection_direction,
bilingual_str& error);
Return Value
true if parsing succeeded.
Parameters
Name |
Description |
str |
The ‐whitelist configuration string to parse. |
output |
Receives the parsed permissions and subnet on success. |
output_connection_direction |
Receives the connection direction the entry applies to. |
error |
Receives an error message on failure. |
Created with MrDocs