[#NetWhitelistPermissions]
= NetWhitelistPermissions
:mrdocs:

Permissions applied to peers matching a subnet, parsed from a &hyphen;whitelist entry&period;

== Synopsis

Declared in `&lt;net&lowbar;permissions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class NetWhitelistPermissions
    : public xref:NetPermissions.adoc[NetPermissions]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:NetPermissions.adoc[NetPermissions]`
| Holds the permission flags granted to a peer and helpers to query and modify them&period;
|===

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:NetPermissions/AddFlag.adoc[`AddFlag`] 
| Add a flag to a set of flags&period;
| xref:NetPermissions/ClearFlag.adoc[`ClearFlag`] 
| Remove a flag from a set of flags&period; ClearFlag is only called with `f` &equals;&equals; NetPermissionFlags&colon;&colon;Implicit&period; If that should change in the future, be aware that ClearFlag should not be called with a subflag of a multiflag, e&period;g&period; NetPermissionFlags&colon;&colon;Relay or NetPermissionFlags&colon;&colon;Download, as that would leave `flags` in an invalid state corresponding to none of the existing flags&period;
| xref:NetPermissions/HasFlag.adoc[`HasFlag`] 
| Test whether a set of flags contains a given flag (or flag combination)&period;
| xref:NetPermissions/ToStrings.adoc[`ToStrings`] 
| Convert a set of permission flags into their human&hyphen;readable names&period;
| xref:NetWhitelistPermissions/TryParse.adoc[`TryParse`] 
| Parse a &hyphen;whitelist string into permissions, a subnet, and a connection direction&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:NetPermissions/m_flags.adoc[`m&lowbar;flags`] 
| The permission flags currently granted&period;
| xref:NetWhitelistPermissions/m_subnet.adoc[`m&lowbar;subnet`] 
| The subnet these permissions apply to&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
