Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Enumerations | Functions | Variables
net_permissions.h File Reference
#include <netaddress.h>
#include <string>
#include <type_traits>
#include <vector>
Include dependency graph for net_permissions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NetPermissions
 
class  NetWhitebindPermissions
 
class  NetWhitelistPermissions
 

Enumerations

enum  NetPermissionFlags : uint32_t {
  NetPermissionFlags::None = 0, NetPermissionFlags::BloomFilter = (1U << 1), NetPermissionFlags::Relay = (1U << 3), NetPermissionFlags::ForceRelay = (1U << 2) | Relay,
  NetPermissionFlags::Download = (1U << 6), NetPermissionFlags::NoBan = (1U << 4) | Download, NetPermissionFlags::Mempool = (1U << 5), NetPermissionFlags::Addr = (1U << 7),
  NetPermissionFlags::Implicit = (1U << 31), NetPermissionFlags::All = BloomFilter | ForceRelay | Relay | NoBan | Mempool | Download | Addr
}
 

Functions

static constexpr NetPermissionFlags operator| (NetPermissionFlags a, NetPermissionFlags b)
 

Variables

const std::vector< std::string > NET_PERMISSIONS_DOC
 

Enumeration Type Documentation

◆ NetPermissionFlags

enum NetPermissionFlags : uint32_t
strong
Enumerator
None 
BloomFilter 
Relay 
ForceRelay 
Download 
NoBan 
Mempool 
Addr 
Implicit 
All 

Definition at line 18 of file net_permissions.h.

Function Documentation

◆ operator|()

static constexpr NetPermissionFlags operator| ( NetPermissionFlags  a,
NetPermissionFlags  b 
)
inlinestaticconstexpr

Definition at line 42 of file net_permissions.h.

Variable Documentation

◆ NET_PERMISSIONS_DOC

const std::vector<std::string> NET_PERMISSIONS_DOC

Definition at line 11 of file net_permissions.cpp.