 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
11 #ifndef BITCOIN_NET_PERMISSIONS_H
12 #define BITCOIN_NET_PERMISSIONS_H
44 using t =
typename std::underlying_type<NetPermissionFlags>::type;
55 using t =
typename std::underlying_type<NetPermissionFlags>::type;
56 return (
static_cast<t>(
flags) &
static_cast<t>(f)) ==
static_cast<t>(f);
70 using t =
typename std::underlying_type<NetPermissionFlags>::type;
89 #endif // BITCOIN_NET_PERMISSIONS_H
A combination of a network address (CNetAddr) and a (TCP) port.
static std::vector< std::string > ToStrings(NetPermissionFlags flags)
static void ClearFlag(NetPermissionFlags &flags, NetPermissionFlags f)
ClearFlag is only called with f == NetPermissionFlags::Implicit.
static bool HasFlag(NetPermissionFlags flags, NetPermissionFlags f)
static bool TryParse(const std::string &str, NetWhitelistPermissions &output, bilingual_str &error)
const std::vector< std::string > NET_PERMISSIONS_DOC
static constexpr NetPermissionFlags operator|(NetPermissionFlags a, NetPermissionFlags b)
static bool TryParse(const std::string &str, NetWhitebindPermissions &output, bilingual_str &error)
static void AddFlag(NetPermissionFlags &flags, NetPermissionFlags f)
NetPermissionFlags m_flags
bool error(const char *fmt, const Args &... args)