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/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 220 of file net.cpp.

Here is the call graph for this function:

◆ clearbanned()

static UniValue clearbanned ( const JSONRPCRequest request)
static

Definition at line 648 of file net.cpp.

Here is the call graph for this function:

◆ disconnectnode()

static UniValue disconnectnode ( const JSONRPCRequest request)
static

Definition at line 270 of file net.cpp.

Here is the call graph for this function:

◆ getaddednodeinfo()

static UniValue getaddednodeinfo ( const JSONRPCRequest request)
static

Definition at line 314 of file net.cpp.

Here is the call graph for this function:

◆ getconnectioncount()

static UniValue getconnectioncount ( const JSONRPCRequest request)
static

Definition at line 30 of file net.cpp.

Here is the call graph for this function:

◆ getnettotals()

static UniValue getnettotals ( const JSONRPCRequest request)
static

Definition at line 382 of file net.cpp.

Here is the call graph for this function:

◆ getnetworkinfo()

static UniValue getnetworkinfo ( const JSONRPCRequest request)
static

Definition at line 449 of file net.cpp.

Here is the call graph for this function:

◆ GetNetworksInfo()

static UniValue GetNetworksInfo ( )
static

Definition at line 428 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 688 of file net.cpp.

Here is the call graph for this function:

◆ getpeerinfo()

static UniValue getpeerinfo ( const JSONRPCRequest request)
static

Definition at line 74 of file net.cpp.

Here is the call graph for this function:

◆ listbanned()

static UniValue listbanned ( const JSONRPCRequest request)
static

Definition at line 613 of file net.cpp.

Here is the call graph for this function:

◆ ping()

static UniValue ping ( const JSONRPCRequest request)
static

Definition at line 50 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 759 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 533 of file net.cpp.

Here is the call graph for this function:

◆ setnetworkactive()

static UniValue setnetworkactive ( const JSONRPCRequest request)
static

Definition at line 668 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:668
static UniValue clearbanned(const JSONRPCRequest &request)
Definition: net.cpp:648
static UniValue getnettotals(const JSONRPCRequest &request)
Definition: net.cpp:382
static UniValue getaddednodeinfo(const JSONRPCRequest &request)
Definition: net.cpp:314
static UniValue disconnectnode(const JSONRPCRequest &request)
Definition: net.cpp:270
static UniValue getconnectioncount(const JSONRPCRequest &request)
Definition: net.cpp:30
static UniValue ping(const JSONRPCRequest &request)
Definition: net.cpp:50
static UniValue listbanned(const JSONRPCRequest &request)
Definition: net.cpp:613
static UniValue setban(const JSONRPCRequest &request)
Definition: net.cpp:533
static UniValue getnetworkinfo(const JSONRPCRequest &request)
Definition: net.cpp:449
static UniValue getnodeaddresses(const JSONRPCRequest &request)
Definition: net.cpp:688
static UniValue getpeerinfo(const JSONRPCRequest &request)
Definition: net.cpp:74
static UniValue addnode(const JSONRPCRequest &request)
Definition: net.cpp:220

Definition at line 740 of file net.cpp.