MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnDownloadProgress

Method OnDownloadProgress

src/network/network_content.cpp:1083–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081}
1082
1083void ClientNetworkContentSocketHandler::OnDownloadProgress(const ContentInfo &ci, int bytes)
1084{
1085 for (size_t i = 0; i < this->callbacks.size(); /* nothing */) {
1086 ContentCallback *cb = this->callbacks[i];
1087 cb->OnDownloadProgress(ci, bytes);
1088 if (i != this->callbacks.size() && this->callbacks[i] == cb) i++;
1089 }
1090}
1091
1092void ClientNetworkContentSocketHandler::OnDownloadComplete(ContentID cid)
1093{

Callers 3

OnFailureMethod · 0.95
OnReceiveDataMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected