Bitcoin Core  0.19.99
P2P Digital Currency
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 <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 UniValue getconnectioncount (const JSONRPCRequest &request)
 
static UniValue ping (const JSONRPCRequest &request)
 
static UniValue getpeerinfo (const JSONRPCRequest &request)
 
static UniValue addnode (const JSONRPCRequest &request)
 
static UniValue disconnectnode (const JSONRPCRequest &request)
 
static UniValue getaddednodeinfo (const JSONRPCRequest &request)
 
static UniValue getnettotals (const JSONRPCRequest &request)
 
static UniValue GetNetworksInfo ()
 
static UniValue getnetworkinfo (const JSONRPCRequest &request)
 
static UniValue setban (const JSONRPCRequest &request)
 
static UniValue listbanned (const JSONRPCRequest &request)
 
static UniValue clearbanned (const JSONRPCRequest &request)
 
static UniValue setnetworkactive (const JSONRPCRequest &request)
 
static UniValue getnodeaddresses (const JSONRPCRequest &request)
 
void RegisterNetRPCCommands (CRPCTable &t)
 Register P2P networking RPC commands. More...
 

Variables

static const CRPCCommand commands []
 

Function Documentation

◆ addnode()

static UniValue addnode ( const JSONRPCRequest request)
static

Definition at line 227 of file net.cpp.

Here is the call graph for this function:

◆ clearbanned()

static UniValue clearbanned ( const JSONRPCRequest request)
static

Definition at line 671 of file net.cpp.

Here is the call graph for this function:

◆ disconnectnode()

static UniValue disconnectnode ( const JSONRPCRequest request)
static

Definition at line 277 of file net.cpp.

Here is the call graph for this function:

◆ getaddednodeinfo()

static UniValue getaddednodeinfo ( const JSONRPCRequest request)
static

Definition at line 321 of file net.cpp.

Here is the call graph for this function:

◆ getconnectioncount()

static UniValue getconnectioncount ( const JSONRPCRequest request)
static

Definition at line 31 of file net.cpp.

Here is the call graph for this function:

◆ getnettotals()

static UniValue getnettotals ( const JSONRPCRequest request)
static

Definition at line 392 of file net.cpp.

Here is the call graph for this function:

◆ getnetworkinfo()

static UniValue getnetworkinfo ( const JSONRPCRequest request)
static

Definition at line 460 of file net.cpp.

Here is the call graph for this function:

◆ GetNetworksInfo()

static UniValue GetNetworksInfo ( )
static

Definition at line 439 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getnodeaddresses()

static UniValue getnodeaddresses ( const JSONRPCRequest request)
static

Definition at line 711 of file net.cpp.

Here is the call graph for this function:

◆ getpeerinfo()

static UniValue getpeerinfo ( const JSONRPCRequest request)
static

Definition at line 75 of file net.cpp.

Here is the call graph for this function:

◆ listbanned()

static UniValue listbanned ( const JSONRPCRequest request)
static

Definition at line 627 of file net.cpp.

Here is the call graph for this function:

◆ ping()

static UniValue ping ( const JSONRPCRequest request)
static

Definition at line 51 of file net.cpp.

Here is the call graph for this function:

◆ RegisterNetRPCCommands()

void RegisterNetRPCCommands ( CRPCTable t)

Register P2P networking RPC commands.

Definition at line 783 of file net.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setban()

static UniValue setban ( const JSONRPCRequest request)
static

Definition at line 547 of file net.cpp.

Here is the call graph for this function:

◆ setnetworkactive()

static UniValue setnetworkactive ( const JSONRPCRequest request)
static

Definition at line 691 of file net.cpp.

Here is the call graph for this function:

Variable Documentation

◆ commands

const CRPCCommand commands[]
static
Initial value:
=
{
{ "network", "getconnectioncount", &getconnectioncount, {} },
{ "network", "ping", &ping, {} },
{ "network", "getpeerinfo", &getpeerinfo, {} },
{ "network", "addnode", &addnode, {"node","command"} },
{ "network", "disconnectnode", &disconnectnode, {"address", "nodeid"} },
{ "network", "getaddednodeinfo", &getaddednodeinfo, {"node"} },
{ "network", "getnettotals", &getnettotals, {} },
{ "network", "getnetworkinfo", &getnetworkinfo, {} },
{ "network", "setban", &setban, {"subnet", "command", "bantime", "absolute"} },
{ "network", "listbanned", &listbanned, {} },
{ "network", "clearbanned", &clearbanned, {} },
{ "network", "setnetworkactive", &setnetworkactive, {"state"} },
{ "network", "getnodeaddresses", &getnodeaddresses, {"count"} },
}
static UniValue setnetworkactive(const JSONRPCRequest &request)
Definition: net.cpp:691
static UniValue clearbanned(const JSONRPCRequest &request)
Definition: net.cpp:671
static UniValue getnettotals(const JSONRPCRequest &request)
Definition: net.cpp:392
static UniValue getaddednodeinfo(const JSONRPCRequest &request)
Definition: net.cpp:321
static UniValue disconnectnode(const JSONRPCRequest &request)
Definition: net.cpp:277
static UniValue getconnectioncount(const JSONRPCRequest &request)
Definition: net.cpp:31
static UniValue ping(const JSONRPCRequest &request)
Definition: net.cpp:51
static UniValue listbanned(const JSONRPCRequest &request)
Definition: net.cpp:627
static UniValue setban(const JSONRPCRequest &request)
Definition: net.cpp:547
static UniValue getnetworkinfo(const JSONRPCRequest &request)
Definition: net.cpp:460
static UniValue getnodeaddresses(const JSONRPCRequest &request)
Definition: net.cpp:711
static UniValue getpeerinfo(const JSONRPCRequest &request)
Definition: net.cpp:75
static UniValue addnode(const JSONRPCRequest &request)
Definition: net.cpp:227

Definition at line 764 of file net.cpp.