Changeset View
Changeset View
Standalone View
Standalone View
src/net.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2019 The Bitcoin Core developers | ||||
// Copyright (c) 2017-2019 The Bitcoin developers | // Copyright (c) 2017-2019 The Bitcoin 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. | ||||
#ifndef BITCOIN_NET_H | #ifndef BITCOIN_NET_H | ||||
#define BITCOIN_NET_H | #define BITCOIN_NET_H | ||||
#include <addrdb.h> | #include <addrdb.h> | ||||
▲ Show 20 Lines • Show All 554 Lines • ▼ Show 20 Lines | struct LocalServiceInfo { | ||||
int nScore; | int nScore; | ||||
int nPort; | int nPort; | ||||
}; | }; | ||||
extern RecursiveMutex cs_mapLocalHost; | extern RecursiveMutex cs_mapLocalHost; | ||||
extern std::map<CNetAddr, LocalServiceInfo> | extern std::map<CNetAddr, LocalServiceInfo> | ||||
mapLocalHost GUARDED_BY(cs_mapLocalHost); | mapLocalHost GUARDED_BY(cs_mapLocalHost); | ||||
extern const std::string NET_MESSAGE_COMMAND_OTHER; | |||||
// Command, total bytes | // Command, total bytes | ||||
typedef std::map<std::string, uint64_t> mapMsgCmdSize; | typedef std::map<std::string, uint64_t> mapMsgCmdSize; | ||||
/** | /** | ||||
* POD that contains various stats about a node. | * POD that contains various stats about a node. | ||||
* Usually constructed from CConman::GetNodeStats. Stats are filled from the | * Usually constructed from CConman::GetNodeStats. Stats are filled from the | ||||
* node using CNode::copyStats. | * node using CNode::copyStats. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 356 Lines • Show Last 20 Lines |