|
| void | Init (const Options &connOptions) |
| |
| | CConnman (uint64_t seed0, uint64_t seed1) |
| |
| | ~CConnman () |
| |
| bool | Start (CScheduler &scheduler, const Options &options) |
| |
| void | Stop () |
| |
| void | Interrupt () |
| |
| bool | GetNetworkActive () const |
| |
| void | SetNetworkActive (bool active) |
| |
| void | OpenNetworkConnection (const CAddress &addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound=nullptr, const char *strDest=nullptr, bool fOneShot=false, bool fFeeler=false, bool fAddnode=false, bool masternode_connection=false, bool masternode_probe_connection=false) |
| |
| bool | CheckIncomingNonce (uint64_t nonce) |
| |
| bool | ForNode (NodeId id, std::function< bool(CNode *pnode)> func) |
| |
| bool | ForNode (const CService &addr, const std::function< bool(const CNode *pnode)> &cond, const std::function< bool(CNode *pnode)> &func) |
| |
| void | PushMessage (CNode *pnode, CSerializedNetMsg &&msg, bool allowOptimisticSend=DEFAULT_ALLOW_OPTIMISTIC_SEND) |
| |
| template<typename Callable > |
| bool | ForEachNodeContinueIf (Callable &&func) |
| |
| template<typename Callable > |
| bool | ForEachNodeInRandomOrderContinueIf (Callable &&func) |
| |
| template<typename Callable > |
| void | ForEachNode (Callable &&func) |
| |
| template<typename Callable > |
| void | ForEachNode (Callable &&func) const |
| |
| template<typename Callable , typename CallableAfter > |
| void | ForEachNodeThen (Callable &&pre, CallableAfter &&post) |
| |
| template<typename Callable , typename CallableAfter > |
| void | ForEachNodeThen (Callable &&pre, CallableAfter &&post) const |
| |
| std::vector< CNode * > | CopyNodeVector (std::function< bool(const CNode *pnode)> cond) |
| |
| std::vector< CNode * > | CopyNodeVector () |
| |
| void | ReleaseNodeVector (const std::vector< CNode * > &vecNodes) |
| |
| void | RemoveAskFor (const uint256 &invHash, int invType) |
| |
| void | RelayInv (CInv &inv, int minProtoVersion=ActiveProtocol()) |
| |
| bool | IsNodeConnected (const CAddress &addr) |
| |
| CNode * | ConnectNode (const CAddress &addrConnect) |
| |
| void | SetServices (const CService &addr, ServiceFlags nServices) |
| |
| void | MarkAddressGood (const CAddress &addr) |
| |
| void | AddNewAddress (const CAddress &addr, const CAddress &addrFrom, int64_t nTimePenalty=0) |
| |
| bool | AddNewAddresses (const std::vector< CAddress > &vAddr, const CAddress &addrFrom, int64_t nTimePenalty=0) |
| |
| std::vector< CAddress > | GetAddresses (size_t max_addresses, size_t max_pct, Optional< Network > network) |
| | Return all or many randomly selected addresses, optionally by network. More...
|
| |
| void | Ban (const CNetAddr &netAddr, const BanReason &reason, int64_t bantimeoffset=0, bool sinceUnixEpoch=false) |
| |
| void | Ban (const CSubNet &subNet, const BanReason &reason, int64_t bantimeoffset=0, bool sinceUnixEpoch=false) |
| |
| void | ClearBanned () |
| |
| bool | IsBanned (CNetAddr ip) |
| |
| bool | IsBanned (CSubNet subnet) |
| |
| bool | Unban (const CNetAddr &ip) |
| |
| bool | Unban (const CSubNet &ip) |
| |
| void | GetBanned (banmap_t &banmap) |
| |
| void | SetBanned (const banmap_t &banmap) |
| |
| bool | AddNode (const std::string &node) |
| |
| bool | RemoveAddedNode (const std::string &node) |
| |
| std::vector< AddedNodeInfo > | GetAddedNodeInfo () |
| |
| size_t | GetNodeCount (NumConnections num) |
| |
| size_t | GetMaxOutboundNodeCount () |
| |
| void | GetNodeStats (std::vector< CNodeStats > &vstats) |
| |
| bool | DisconnectNode (const std::string &node) |
| |
| bool | DisconnectNode (NodeId id) |
| |
| unsigned int | GetSendBufferSize () const |
| |
| ServiceFlags | GetLocalServices () const |
| |
| uint64_t | GetTotalBytesRecv () |
| |
| uint64_t | GetTotalBytesSent () |
| |
| void | SetBestHeight (int height) |
| |
| int | GetBestHeight () const |
| |
| CSipHasher | GetDeterministicRandomizer (uint64_t id) |
| | Get a unique deterministic randomizer. More...
|
| |
| unsigned int | GetReceiveFloodSize () const |
| |
| void | SetAsmap (std::vector< bool > asmap) |
| |
| TierTwoConnMan * | GetTierTwoConnMan () |
| | Unique tier two connections manager. More...
|
| |
| void | UpdateQuorumRelayMemberIfNeeded (CNode *pnode) |
| | Update the node to be a iqr member if needed. More...
|
| |
| void | WakeSelect () |
| | Interrupt the select/poll system call. More...
|
| |
|
| bool | BindListenPort (const CService &bindAddr, std::string &strError, bool fWhitelisted=false) |
| |
| bool | Bind (const CService &addr, unsigned int flags) |
| |
| bool | InitBinds (const std::vector< CService > &binds, const std::vector< CService > &whiteBinds) |
| |
| void | ThreadOpenAddedConnections () |
| |
| void | AddOneShot (const std::string &strDest) |
| |
| void | ProcessOneShot () |
| |
| void | ThreadOpenConnections (const std::vector< std::string > connect) |
| |
| void | ThreadMessageHandler () |
| |
| void | AcceptConnection (const ListenSocket &hListenSocket) |
| |
| void | DisconnectNodes () |
| |
| void | NotifyNumConnectionsChanged () |
| |
| void | InactivityCheck (CNode *pnode) |
| |
| bool | GenerateSelectSet (std::set< SOCKET > &recv_set, std::set< SOCKET > &send_set, std::set< SOCKET > &error_set) |
| |
| void | SocketEvents (std::set< SOCKET > &recv_set, std::set< SOCKET > &send_set, std::set< SOCKET > &error_set) |
| |
| void | SocketHandler () |
| |
| void | ThreadSocketHandler () |
| |
| void | ThreadDNSAddressSeed () |
| |
| void | WakeMessageHandler () |
| |
| uint64_t | CalculateKeyedNetGroup (const CAddress &ad) |
| |
| CNode * | FindNode (const CNetAddr &ip) |
| |
| CNode * | FindNode (const CSubNet &subNet) |
| |
| CNode * | FindNode (const std::string &addrName) |
| |
| CNode * | FindNode (const CService &addr) |
| |
| bool | AttemptToEvictConnection (bool fPreferNewConnection) |
| | Try to find a connection to evict when the node is full. More...
|
| |
| CNode * | ConnectNode (CAddress addrConnect, const char *pszDest, bool fCountFailure, bool manual_connection) |
| |
| bool | IsWhitelistedRange (const CNetAddr &addr) |
| |
| void | DeleteNode (CNode *pnode) |
| |
| NodeId | GetNewNodeId () |
| |
| size_t | SocketSendData (CNode *pnode) |
| |
| bool | BannedSetIsDirty () |
| | check is the banlist has unwritten changes More...
|
| |
| void | SetBannedSetDirty (bool dirty=true) |
| | set the "dirty" flag for the banlist More...
|
| |
| void | SweepBanned () |
| | clean unused entries (if bantime has expired) More...
|
| |
| void | DumpAddresses () |
| |
| void | DumpData () |
| |
| void | DumpBanlist () |
| |
| void | RecordBytesRecv (uint64_t bytes) |
| |
| void | RecordBytesSent (uint64_t bytes) |
| |
| uint64_t nTotalBytesRecv | GUARDED_BY (cs_totalBytesRecv)=0 |
| |
| uint64_t nTotalBytesSent | GUARDED_BY (cs_totalBytesSent)=0 |
| |
| std::vector< std::string > vAddedNodes | GUARDED_BY (cs_vAddedNodes) |
| |
Definition at line 144 of file net.h.