Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

net.cpp File Reference
#include <rpc/server.h>
#include <chainparams.h>
#include <clientversion.h>
#include <core_io.h>
#include <validation.h>
#include <net.h>
#include <net_processing.h>
#include <netbase.h>
#include <policy/policy.h>
#include <rpc/protocol.h>
#include <sync.h>
#include <timedata.h>
#include <ui_interface.h>
#include <util.h>
#include <utilstrencodings.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

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

Variables

static const CRPCCommand commands []
 

Function Documentation

◆ addnode()

◆ clearbanned()

◆ disconnectnode()

◆ getaddednodeinfo()

◆ getconnectioncount()

◆ getnettotals()

◆ getnetworkinfo()

◆ GetNetworksInfo()

◆ getpeerinfo()

◆ listbanned()

◆ ping()

◆ RegisterNetRPCCommands()

void RegisterNetRPCCommands ( CRPCTable t)

Register P2P networking RPC commands.

Definition at line 670 of file net.cpp.

References CRPCTable::appendCommand(), ARRAYLEN, commands, and CRPCCommand::name.

Referenced by RegisterAllCoreRPCCommands().

◆ setban()

◆ setnetworkactive()

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"} },
}
UniValue setban(const JSONRPCRequest &request)
Definition: net.cpp:518
UniValue getnettotals(const JSONRPCRequest &request)
Definition: net.cpp:360
UniValue clearbanned(const JSONRPCRequest &request)
Definition: net.cpp:615
UniValue getpeerinfo(const JSONRPCRequest &request)
Definition: net.cpp:69
UniValue listbanned(const JSONRPCRequest &request)
Definition: net.cpp:582
UniValue setnetworkactive(const JSONRPCRequest &request)
Definition: net.cpp:633
UniValue ping(const JSONRPCRequest &request)
Definition: net.cpp:46
UniValue getaddednodeinfo(const JSONRPCRequest &request)
Definition: net.cpp:292
UniValue getconnectioncount(const JSONRPCRequest &request)
Definition: net.cpp:27
UniValue disconnectnode(const JSONRPCRequest &request)
Definition: net.cpp:249
UniValue addnode(const JSONRPCRequest &request)
Definition: net.cpp:202
UniValue getnetworkinfo(const JSONRPCRequest &request)
Definition: net.cpp:426

Definition at line 653 of file net.cpp.

Referenced by RegisterNetRPCCommands().

Released under the MIT license