Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Functions | Variables
net.cpp File Reference
#include <rpc/server.h>
#include <banman.h>
#include <clientversion.h>
#include <core_io.h>
#include <net.h>
#include <net_permissions.h>
#include <net_processing.h>
#include <net_types.h>
#include <netbase.h>
#include <node/context.h>
#include <policy/settings.h>
#include <rpc/blockchain.h>
#include <rpc/protocol.h>
#include <rpc/util.h>
#include <sync.h>
#include <timedata.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <util/system.h>
#include <util/translation.h>
#include <validation.h>
#include <version.h>
#include <warnings.h>
#include <univalue.h>
Include dependency graph for net.cpp:

Go to the source code of this file.

Functions

static RPCHelpMan getconnectioncount ()
 
static RPCHelpMan ping ()
 
static RPCHelpMan getpeerinfo ()
 
static RPCHelpMan addnode ()
 
static RPCHelpMan disconnectnode ()
 
static RPCHelpMan getaddednodeinfo ()
 
static RPCHelpMan getnettotals ()
 
static UniValue GetNetworksInfo ()
 
static RPCHelpMan getnetworkinfo ()
 
static RPCHelpMan setban ()
 
static RPCHelpMan listbanned ()
 
static RPCHelpMan clearbanned ()
 
static RPCHelpMan setnetworkactive ()
 
static RPCHelpMan getnodeaddresses ()
 
static RPCHelpMan addpeeraddress ()
 
void RegisterNetRPCCommands (CRPCTable &t)
 Register P2P networking RPC commands. More...
 

Variables

const std::vector< std::string > CONNECTION_TYPE_DOC
 

Function Documentation

static RPCHelpMan addnode ( )
static

Definition at line 274 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan addpeeraddress ( )
static

Definition at line 844 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan clearbanned ( )
static

Definition at line 743 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan disconnectnode ( )
static

Definition at line 329 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan getaddednodeinfo ( )
static

Definition at line 376 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan getconnectioncount ( )
static

Definition at line 41 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan getnettotals ( )
static

Definition at line 450 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan getnetworkinfo ( )
static

Definition at line 520 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static UniValue GetNetworksInfo ( )
static

Definition at line 501 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan getnodeaddresses ( )
static

Definition at line 790 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan getpeerinfo ( )
static

Definition at line 91 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan listbanned ( )
static

Definition at line 698 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan ping ( )
static

Definition at line 64 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RegisterNetRPCCommands ( CRPCTable t)

Register P2P networking RPC commands.

Definition at line 894 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan setban ( )
static

Definition at line 614 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static RPCHelpMan setnetworkactive ( )
static

Definition at line 767 of file net.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const std::vector<std::string> CONNECTION_TYPE_DOC
Initial value:
{
"outbound-full-relay (default automatic connections)",
"block-relay-only (does not relay transactions or addresses)",
"inbound (initiated by the peer)",
"manual (added via addnode RPC or -addnode/-connect configuration options)",
"addr-fetch (short-lived automatic connection for soliciting addresses)",
"feeler (short-lived automatic connection for testing addresses)"
}

Definition at line 32 of file net.cpp.