10 #ifndef BITCOIN_NET_PERMISSIONS_H
11 #define BITCOIN_NET_PERMISSIONS_H
48 return (flags & f) == f;
74 #endif // BITCOIN_NET_PERMISSIONS_H
static void AddFlag(NetPermissionFlags &flags, NetPermissionFlags f)
static void ClearFlag(NetPermissionFlags &flags, NetPermissionFlags f)
const std::vector< std::string > NET_PERMISSIONS_DOC
bool error(const char *fmt, const Args &...args)
A combination of a network address (CNetAddr) and a (TCP) port.
static bool HasFlag(const NetPermissionFlags &flags, NetPermissionFlags f)
NetPermissionFlags m_flags
static bool TryParse(const std::string str, NetWhitebindPermissions &output, bilingual_str &error)
static bool TryParse(const std::string str, NetWhitelistPermissions &output, bilingual_str &error)
static std::vector< std::string > ToStrings(NetPermissionFlags flags)