Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/net.cpp
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "rpc/server.h" | #include <rpc/server.h> | ||||
#include "chainparams.h" | #include <chainparams.h> | ||||
#include "clientversion.h" | #include <clientversion.h> | ||||
#include "config.h" | #include <config.h> | ||||
#include "net.h" | #include <net.h> | ||||
#include "net_processing.h" | #include <net_processing.h> | ||||
#include "netbase.h" | #include <netbase.h> | ||||
#include "policy/policy.h" | #include <policy/policy.h> | ||||
#include "protocol.h" | #include <rpc/protocol.h> | ||||
#include "sync.h" | #include <sync.h> | ||||
#include "timedata.h" | #include <timedata.h> | ||||
#include "ui_interface.h" | #include <ui_interface.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include "validation.h" | #include <validation.h> | ||||
#include "version.h" | #include <version.h> | ||||
#include "warnings.h" | #include <warnings.h> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
static UniValue getconnectioncount(const Config &config, | static UniValue getconnectioncount(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
if (request.fHelp || request.params.size() != 0) { | if (request.fHelp || request.params.size() != 0) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
"getconnectioncount\n" | "getconnectioncount\n" | ||||
▲ Show 20 Lines • Show All 770 Lines • Show Last 20 Lines |