MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / FindNode

Function FindNode

src/net.cpp:338–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336CCriticalSection CNode::cs_totalBytesSent;
337
338CNode* FindNode(const CNetAddr& ip)
339{
340 LOCK(cs_vNodes);
341 BOOST_FOREACH(CNode* pnode, vNodes)
342 if ((CNetAddr)pnode->addr == ip)
343 return (pnode);
344 return NULL;
345}
346
347CNode* FindNode(const std::string& addrName)
348{

Callers 2

ConnectNodeFunction · 0.85
OpenNetworkConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected