MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ProcessOneShot

Function ProcessOneShot

src/net.cpp:937–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935}
936
937void static ProcessOneShot() {
938 string strDest;
939 {
940 LOCK(cs_vOneShots);
941 if (vOneShots.empty())
942 return;
943 strDest = vOneShots.front();
944 vOneShots.pop_front();
945 }
946 CAddress addr;
947 CSemaphoreGrant grant(*semOutbound, true);
948 if (grant) {
949 if (!OpenNetworkConnection(addr, &grant, strDest.c_str(), true))
950 AddOneShot(strDest);
951 }
952}
953
954void ThreadOpenConnections() {
955 // Connect to specific addresses

Callers 1

ThreadOpenConnectionsFunction · 0.85

Calls 3

OpenNetworkConnectionFunction · 0.85
AddOneShotFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected