MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / sendNextFileDownloadRequest

Method sendNextFileDownloadRequest

Engine/source/sim/netDownload.cpp:209–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void NetConnection::sendNextFileDownloadRequest()
210{
211 // see if we've already downloaded this file...
212 while(mMissingFileList.size() && (Torque::FS::IsFile(mMissingFileList[0]) || Con::getBoolVariable("$NetConnection::neverDownloadFiles")))
213 {
214 dFree(mMissingFileList[0]);
215 mMissingFileList.pop_front();
216 }
217
218 if(mMissingFileList.size())
219 {
220 postNetEvent(new FileDownloadRequestEvent(&mMissingFileList));
221 }
222 else
223 {
224 fileDownloadSegmentComplete();
225 }
226}
227
228
229void NetConnection::chunkReceived(U8 *chunkData, U32 chunkLen)

Callers

nothing calls this directly

Calls 5

IsFileFunction · 0.85
getBoolVariableFunction · 0.85
dFreeFunction · 0.50
sizeMethod · 0.45
pop_frontMethod · 0.45

Tested by

no test coverage detected