![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
#include "net.h"#include "addrman.h"#include "chainparams.h"#include "clientversion.h"#include "crypto/common.h"#include "guiinterface.h"#include "main.h"#include "primitives/transaction.h"#include "netbase.h"#include "scheduler.h"#include <fcntl.h>#include <boost/thread.hpp>#include <math.h>Go to the source code of this file.
Classes | |
| struct | NodeEvictionCandidate |
| class | CompareNetGroupKeyed |
| class | CNetCleanup |
Macros | |
| #define | DUMP_ADDRESSES_INTERVAL 900 |
| #define | FEELER_SLEEP_WINDOW 1 |
| #define | X(name) stats.name = name |
Functions | |
| CNodeSignals & | GetNodeSignals () |
| void | AddOneShot (std::string strDest) |
| unsigned short | GetListenPort () |
| bool | GetLocal (CService &addr, const CNetAddr *paddrPeer) |
| CAddress | GetLocalAddress (const CNetAddr *paddrPeer) |
| int | GetnScore (const CService &addr) |
| bool | IsPeerAddrLocalGood (CNode *pnode) |
| void | AdvertiseLocal (CNode *pnode) |
| bool | AddLocal (const CService &addr, int nScore) |
| bool | AddLocal (const CNetAddr &addr, int nScore) |
| bool | RemoveLocal (const CService &addr) |
| void | SetLimited (enum Network net, bool fLimited) |
| Make a particular network entirely off-limits (no automatic connects to it) More... | |
| bool | IsLimited (enum Network net) |
| bool | IsLimited (const CNetAddr &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 | 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... | |
| 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 &addr) |
| CNode * | ConnectNode (CAddress addrConnect, const char *pszDest, bool fCountFailure) |
| void | SocketSendData (CNode *pnode) |
| void | ThreadSocketHandler () |
| void | MapPort (bool) |
| void | ThreadDNSAddressSeed () |
| void | DumpAddresses () |
| void | DumpData () |
| void | ThreadOpenConnections () |
| std::vector< AddedNodeInfo > | GetAddedNodeInfo () |
| void | ThreadOpenAddedConnections () |
| bool | OpenNetworkConnection (const CAddress &addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound, const char *pszDest, bool fOneShot, bool fFeeler) |
| void | ThreadMessageHandler () |
| bool | BindListenPort (const CService &addrBind, std::string &strError, bool fWhitelisted) |
| void | StartNode (boost::thread_group &threadGroup, CScheduler &scheduler) |
| bool | StopNode () |
| void | RelayTransaction (const CTransaction &tx) |
| void | RelayTransaction (const CTransaction &tx, const CDataStream &ss) |
| void | RelayTransactionLockReq (const CTransaction &tx, bool relayToAll) |
| void | RelayInv (CInv &inv) |
| unsigned int | ReceiveFloodSize () |
| unsigned int | SendBufferSize () |
| bool | validateMasternodeIP (const std::string &addrStr) |
| 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 = true |
| bool | fListen = true |
| ServiceFlags | nLocalServices = NODE_NETWORK |
| RecursiveMutex | cs_mapLocalHost |
| std::map< CNetAddr, LocalServiceInfo > | mapLocalHost |
| uint64_t | nLocalHostNonce = 0 |
| CAddrMan | addrman |
| int | nMaxConnections = DEFAULT_MAX_PEER_CONNECTIONS |
| bool | fAddressesInitialized = false |
| std::string | strSubVersion |
Subversion as sent to the P2P network in version messages. More... | |
| 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 (MAX_INV_SZ) |
| RecursiveMutex | cs_vOneShots |
| std::vector< std::string > | vAddedNodes |
| RecursiveMutex | cs_vAddedNodes |
| NodeId | nLastNodeId = 0 |
| RecursiveMutex | cs_nLastNodeId |
| boost::condition_variable | messageHandlerCondition |
| class CNetCleanup | instance_of_cnetcleanup |
| #define X | ( | name | ) | stats.name = name |
| bool AddLocal | ( | const CNetAddr & | addr, |
| int | nScore | ||
| ) |
| bool AddLocal | ( | const CService & | addr, |
| int | nScore | ||
| ) |
| void AddOneShot | ( | std::string | strDest | ) |
| void AddressCurrentlyConnected | ( | const CService & | addr | ) |
| void AdvertiseLocal | ( | CNode * | pnode | ) |
| bool BindListenPort | ( | const CService & | addrBind, |
| std::string & | strError, | ||
| bool | fWhitelisted | ||
| ) |
| void DumpAddresses | ( | ) |
| void DumpData | ( | ) |
| std::vector<AddedNodeInfo> GetAddedNodeInfo | ( | ) |
| unsigned short GetListenPort | ( | ) |
| CNodeSignals& GetNodeSignals | ( | ) |
| int GetnScore | ( | const CService & | addr | ) |
| 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 | ) |
| bool OpenNetworkConnection | ( | const CAddress & | addrConnect, |
| bool | fCountFailure, | ||
| CSemaphoreGrant * | grantOutbound, | ||
| const char * | pszDest, | ||
| bool | fOneShot, | ||
| bool | fFeeler | ||
| ) |
| 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 | ||
| ) |
| bool RemoveLocal | ( | const CService & | addr | ) |
| bool SeenLocal | ( | const CService & | addr | ) |
| unsigned int SendBufferSize | ( | ) |
| void SetLimited | ( | enum Network | net, |
| bool | fLimited | ||
| ) |
| void StartNode | ( | boost::thread_group & | threadGroup, |
| CScheduler & | scheduler | ||
| ) |
| bool StopNode | ( | ) |
| void ThreadDNSAddressSeed | ( | ) |
| void ThreadMessageHandler | ( | ) |
| void ThreadOpenAddedConnections | ( | ) |
| void ThreadSocketHandler | ( | ) |
| bool validateMasternodeIP | ( | const std::string & | addrStr | ) |
| RecursiveMutex cs_mapLocalHost |
| RecursiveMutex cs_mapRelay |
| RecursiveMutex cs_nLastNodeId |
| RecursiveMutex cs_vAddedNodes |
| RecursiveMutex cs_vNodes |
| RecursiveMutex cs_vOneShots |
| class CNetCleanup instance_of_cnetcleanup |
| limitedmap<CInv, int64_t> mapAlreadyAskedFor(MAX_INV_SZ) |
| std::map<CNetAddr, LocalServiceInfo> mapLocalHost |
| std::map<CInv, CDataStream> mapRelay |
| ServiceFlags nLocalServices = NODE_NETWORK |
| std::string strSubVersion |
1.8.17