MCPcopy Create free account
hub / github.com/chrxh/alien / incDownloadCounter

Method incDownloadCounter

source/Network/NetworkService.cpp:603–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603void NetworkService::incDownloadCounter(std::string const& simId)
604{
605 try {
606 log(Priority::Important, "network: increment download counter for resource with id=" + simId);
607
608 httplib::SSLClient client(_serverAddress);
609 configureClient(client);
610
611 httplib::Params params;
612 params.emplace("id", simId);
613 executeRequest([&] { return client.Get("/alien-server/incdownloadcount.php", params, {}); });
614 }
615 catch(...) {
616 //do nothing
617 }
618}
619
620bool NetworkService::editResource(std::string const& simId, std::string const& newName, std::string const& newDescription)
621{

Callers 1

processRequestMethod · 0.80

Calls 4

logFunction · 0.85
configureClientFunction · 0.85
executeRequestFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected