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

Function ProcessOneShot

src/net.cpp:1282–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1280}
1281
1282void static ProcessOneShot()
1283{
1284 string strDest;
1285 {
1286 LOCK(cs_vOneShots);
1287 if (vOneShots.empty())
1288 return;
1289 strDest = vOneShots.front();
1290 vOneShots.pop_front();
1291 }
1292 CAddress addr;
1293 CSemaphoreGrant grant(*semOutbound, true);
1294 if (grant) {
1295 if (!OpenNetworkConnection(addr, false, &grant, strDest.c_str(), true))
1296 AddOneShot(strDest);
1297 }
1298}
1299
1300void ThreadOpenConnections()
1301{

Callers 1

ThreadOpenConnectionsFunction · 0.85

Calls 3

OpenNetworkConnectionFunction · 0.85
AddOneShotFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected