Prevent head of line blocking and track server resource download progress

This commit is contained in:
Yousef Khadadeh 2025-10-10 10:34:12 +03:00
parent 344ef4093a
commit 2aab3e9e60
14 changed files with 179 additions and 83 deletions

View file

@ -14,7 +14,10 @@ class ConnectionManager {
}
bool is_client_disconnected();
bool is_host_disconnected();
std::pair<uint64_t, uint64_t> client_get_resource_retrieval_progress();
bool host_exists();
bool client_exists();
std::unordered_map<ServerClientID, NetLibrary::DownloadProgress> server_get_resource_retrieval_progress();
NetLibrary::DownloadProgress client_get_resource_retrieval_progress();
private:
std::shared_ptr<NetClient> client;
std::unique_ptr<MainServer> localServer;