MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / beginNetwork

Function beginNetwork

switch/source/transferstatus.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void beginNetwork(const std::string& mode, u64 totalBytes)
95 {
96 sCancel.store(false);
97 std::lock_guard<std::mutex> lock(sMutex);
98 sState.kind = TransferKind::Network;
99 sState.active = true;
100 sState.mode = mode;
101 sState.bytesDone = 0;
102 sState.bytesTotal = totalBytes;
103 }
104
105 void setMode(const std::string& mode)
106 {

Callers 3

handleUploadFunction · 0.70
sendBackupMethod · 0.70
streamBodyToFileFunction · 0.70

Calls 1

storeMethod · 0.80

Tested by

no test coverage detected