MCPcopy Create free account
hub / github.com/LUX-Core/lux / ProcessOneShot

Function ProcessOneShot

src/net.cpp:1381–1397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1379}
1380
1381void static ProcessOneShot()
1382{
1383 string strDest;
1384 {
1385 LOCK(cs_vOneShots);
1386 if (vOneShots.empty())
1387 return;
1388 strDest = vOneShots.front();
1389 vOneShots.pop_front();
1390 }
1391 CAddress addr;
1392 CSemaphoreGrant grant(*semOutbound, true);
1393 if (grant) {
1394 if (!OpenNetworkConnection(addr, false, &grant, strDest.c_str(), true))
1395 AddOneShot(strDest);
1396 }
1397}
1398
1399void ThreadOpenConnections() {
1400 // 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