Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
rpcnet.cpp File Reference
#include "rpcserver.h"
#include "main.h"
#include "net.h"
#include "netbase.h"
#include "protocol.h"
#include "sync.h"
#include "util.h"
#include <boost/foreach.hpp>
#include "json/json_spirit_value.h"
+ Include dependency graph for rpcnet.cpp:

Go to the source code of this file.

Functions

Value getconnectioncount (const Array &params, bool fHelp)
 
Value ping (const Array &params, bool fHelp)
 
static void CopyNodeStats (std::vector< CNodeStats > &vstats)
 
Value getpeerinfo (const Array &params, bool fHelp)
 
Value addnode (const Array &params, bool fHelp)
 
Value getaddednodeinfo (const Array &params, bool fHelp)
 
Value getnettotals (const Array &params, bool fHelp)
 
Value getnetworkinfo (const Array &params, bool fHelp)
 

Function Documentation

Value addnode ( const Array &  params,
bool  fHelp 
)

Definition at line 145 of file rpcnet.cpp.

References ConnectNode(), cs_vAddedNodes, HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), LOCK, RPC_CLIENT_NODE_ALREADY_ADDED, RPC_CLIENT_NODE_NOT_ADDED, and vAddedNodes.

+ Here is the call graph for this function:

static void CopyNodeStats ( std::vector< CNodeStats > &  vstats)
static

Definition at line 59 of file rpcnet.cpp.

References CNode::copyStats(), cs_vNodes, LOCK, and vNodes.

Referenced by getpeerinfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Value getaddednodeinfo ( const Array &  params,
bool  fHelp 
)

Definition at line 195 of file rpcnet.cpp.

References CNode::addr, cs_vAddedNodes, cs_vNodes, CNode::fInbound, fNameLookup, CChainParams::GetDefaultPort(), HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), LOCK, Lookup(), Params(), RPC_CLIENT_NODE_NOT_ADDED, CService::ToString(), vAddedNodes, and vNodes.

+ Here is the call graph for this function:

Value getconnectioncount ( const Array &  params,
bool  fHelp 
)

Definition at line 20 of file rpcnet.cpp.

References cs_vNodes, HelpExampleCli(), HelpExampleRpc(), LOCK, and vNodes.

+ Here is the call graph for this function:

Value getnettotals ( const Array &  params,
bool  fHelp 
)

Definition at line 312 of file rpcnet.cpp.

References GetTimeMillis(), CNode::GetTotalBytesRecv(), CNode::GetTotalBytesSent(), HelpExampleCli(), and HelpExampleRpc().

+ Here is the call graph for this function:

Value getnetworkinfo ( const Array &  params,
bool  fHelp 
)

Definition at line 337 of file rpcnet.cpp.

References CLIENT_VERSION, cs_mapLocalHost, GetProxy(), GetTimeOffset(), HelpExampleCli(), HelpExampleRpc(), LOCK, mapLocalHost, NET_IPV4, CTransaction::nMinRelayTxFee, LocalServiceInfo::nPort, LocalServiceInfo::nScore, PAIRTYPE, PROTOCOL_VERSION, ValueFromAmount(), and vNodes.

+ Here is the call graph for this function:

Value getpeerinfo ( const Array &  params,
bool  fHelp 
)
Value ping ( const Array &  params,
bool  fHelp 
)

Definition at line 37 of file rpcnet.cpp.

References cs_vNodes, CNode::fPingQueued, HelpExampleCli(), HelpExampleRpc(), LOCK, and vNodes.

+ Here is the call graph for this function: