![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
#include "bloom.h"#include "compat.h"#include "hash.h"#include "fs.h"#include "limitedmap.h"#include "netaddress.h"#include "protocol.h"#include "random.h"#include "streams.h"#include "sync.h"#include "uint256.h"#include "utilstrencodings.h"#include <atomic>#include <deque>#include <stdint.h>#include <arpa/inet.h>#include <boost/signals2/signal.hpp>Go to the source code of this file.
Classes | |
| struct | CombinerAll |
| struct | CNodeSignals |
| struct | LocalServiceInfo |
| class | CNodeStats |
| class | CNetMessage |
| class | CBanEntry |
| class | CNode |
| Information about a peer. More... | |
| class | CExplicitNetCleanup |
| class | CAddrDB |
| Access to the (IP) address database (peers.dat) More... | |
| class | CBanDB |
| Access to the banlist database (banlist.dat) More... | |
| struct | AddedNodeInfo |
Typedefs | |
| typedef int64_t | NodeId |
| typedef enum BanReason | BanReason |
| typedef std::map< CSubNet, CBanEntry > | banmap_t |
Enumerations | |
| enum | { LOCAL_NONE, LOCAL_IF, LOCAL_BIND, LOCAL_UPNP, LOCAL_MANUAL, LOCAL_MAX } |
| enum | BanReason { BanReasonUnknown = 0, BanReasonNodeMisbehaving = 1, BanReasonManuallyAdded = 2 } |
Functions | |
| unsigned int | ReceiveFloodSize () |
| unsigned int | SendBufferSize () |
| void | AddOneShot (std::string strDest) |
| void | AddressCurrentlyConnected (const CService &addr) |
| CNode * | FindNode (const CNetAddr &ip) |
| CNode * | FindNode (const CSubNet &subNet) |
| CNode * | FindNode (const std::string &addrName) |
| CNode * | FindNode (const CService &ip) |
| bool | OpenNetworkConnection (const CAddress &addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound=NULL, const char *strDest=NULL, bool fOneShot=false, bool fFeeler=false) |
| void | MapPort (bool fUseUPnP) |
| unsigned short | GetListenPort () |
| bool | BindListenPort (const CService &bindAddr, std::string &strError, bool fWhitelisted=false) |
| void | StartNode (boost::thread_group &threadGroup, CScheduler &scheduler) |
| bool | StopNode () |
| void | SocketSendData (CNode *pnode) |
| CNodeSignals & | GetNodeSignals () |
| bool | IsPeerAddrLocalGood (CNode *pnode) |
| void | AdvertiseLocal (CNode *pnode) |
| void | SetLimited (enum Network net, bool fLimited=true) |
| Make a particular network entirely off-limits (no automatic connects to it) More... | |
| bool | IsLimited (enum Network net) |
| bool | IsLimited (const CNetAddr &addr) |
| bool | AddLocal (const CService &addr, int nScore=LOCAL_NONE) |
| bool | AddLocal (const CNetAddr &addr, int nScore=LOCAL_NONE) |
| bool | RemoveLocal (const CService &addr) |
| bool | SeenLocal (const CService &addr) |
| vote for a local address More... | |
| bool | IsLocal (const CService &addr) |
| check whether a given address is potentially local More... | |
| bool | GetLocal (CService &addr, const CNetAddr *paddrPeer=NULL) |
| bool | IsReachable (enum Network net) |
| check whether a given network is one we can probably connect to More... | |
| bool | IsReachable (const CNetAddr &addr) |
| check whether a given address is in a network we can probably connect to More... | |
| CAddress | GetLocalAddress (const CNetAddr *paddrPeer=NULL) |
| bool | validateMasternodeIP (const std::string &addrStr) |
| void | RelayTransaction (const CTransaction &tx) |
| void | RelayTransaction (const CTransaction &tx, const CDataStream &ss) |
| void | RelayTransactionLockReq (const CTransaction &tx, bool relayToAll=false) |
| void | RelayInv (CInv &inv) |
| std::vector< AddedNodeInfo > | GetAddedNodeInfo () |
| int64_t | PoissonNextSend (int64_t nNow, int average_interval_seconds) |
| Return a timestamp in the future (in microseconds) for exponentially distributed events. More... | |
Variables | |
| bool | fDiscover |
| bool | fListen |
| ServiceFlags | nLocalServices |
| uint64_t | nLocalHostNonce |
| CAddrMan | addrman |
| int | nMaxConnections |
| std::vector< CNode * > | vNodes |
| RecursiveMutex | cs_vNodes |
| std::map< CInv, CDataStream > | mapRelay |
| std::deque< std::pair< int64_t, CInv > > | vRelayExpiration |
| RecursiveMutex | cs_mapRelay |
| limitedmap< CInv, int64_t > | mapAlreadyAskedFor |
| std::vector< std::string > | vAddedNodes |
| RecursiveMutex | cs_vAddedNodes |
| NodeId | nLastNodeId |
| RecursiveMutex | cs_nLastNodeId |
| std::string | strSubVersion |
Subversion as sent to the P2P network in version messages. More... | |
| RecursiveMutex | cs_mapLocalHost |
| std::map< CNetAddr, LocalServiceInfo > | mapLocalHost |
| anonymous enum |
| enum BanReason |
| bool AddLocal | ( | const CNetAddr & | addr, |
| int | nScore = LOCAL_NONE |
||
| ) |
| bool AddLocal | ( | const CService & | addr, |
| int | nScore = LOCAL_NONE |
||
| ) |
| void AddOneShot | ( | std::string | strDest | ) |
| void AddressCurrentlyConnected | ( | const CService & | addr | ) |
| void AdvertiseLocal | ( | CNode * | pnode | ) |
| bool BindListenPort | ( | const CService & | bindAddr, |
| std::string & | strError, | ||
| bool | fWhitelisted = false |
||
| ) |
| std::vector<AddedNodeInfo> GetAddedNodeInfo | ( | ) |
| unsigned short GetListenPort | ( | ) |
| CNodeSignals& GetNodeSignals | ( | ) |
| bool IsLimited | ( | const CNetAddr & | addr | ) |
| bool IsLimited | ( | enum Network | net | ) |
| bool IsLocal | ( | const CService & | addr | ) |
| bool IsPeerAddrLocalGood | ( | CNode * | pnode | ) |
| bool IsReachable | ( | const CNetAddr & | addr | ) |
| bool IsReachable | ( | enum Network | net | ) |
| void MapPort | ( | bool | fUseUPnP | ) |
| bool OpenNetworkConnection | ( | const CAddress & | addrConnect, |
| bool | fCountFailure, | ||
| CSemaphoreGrant * | grantOutbound = NULL, |
||
| const char * | strDest = NULL, |
||
| bool | fOneShot = false, |
||
| bool | fFeeler = false |
||
| ) |
| int64_t PoissonNextSend | ( | int64_t | nNow, |
| int | average_interval_seconds | ||
| ) |
| unsigned int ReceiveFloodSize | ( | ) |
| void RelayInv | ( | CInv & | inv | ) |
| void RelayTransaction | ( | const CTransaction & | tx | ) |
| void RelayTransaction | ( | const CTransaction & | tx, |
| const CDataStream & | ss | ||
| ) |
| void RelayTransactionLockReq | ( | const CTransaction & | tx, |
| bool | relayToAll = false |
||
| ) |
| bool RemoveLocal | ( | const CService & | addr | ) |
| bool SeenLocal | ( | const CService & | addr | ) |
| unsigned int SendBufferSize | ( | ) |
| void SetLimited | ( | enum Network | net, |
| bool | fLimited = true |
||
| ) |
| void StartNode | ( | boost::thread_group & | threadGroup, |
| CScheduler & | scheduler | ||
| ) |
| bool StopNode | ( | ) |
| bool validateMasternodeIP | ( | const std::string & | addrStr | ) |
| RecursiveMutex cs_mapLocalHost |
| RecursiveMutex cs_mapRelay |
| RecursiveMutex cs_nLastNodeId |
| RecursiveMutex cs_vAddedNodes |
| RecursiveMutex cs_vNodes |
| limitedmap<CInv, int64_t> mapAlreadyAskedFor |
| std::map<CNetAddr, LocalServiceInfo> mapLocalHost |
| std::map<CInv, CDataStream> mapRelay |
| ServiceFlags nLocalServices |
| std::string strSubVersion |
1.8.17