Good day to all, dear programmers. I am developing my own MMORPG game. Now, I'm working on an automated client update system, a launcher in other words. The launcher works on the following principles:
- When the server boots up, the game's patchlist download thread will start. (Patches are created before the server is started by separate software).
- When the player launches the launcher, it connects to the server's remote connection. The server sends a session key, stating that the connection was successful, the client is registered by the system under this key.
- The launcher sends the version of the launcher and the client that is on the user's PC.
- In cases where the versions do not match the latest update, the server starts a task (scheduler) to send data about the patch.
- The synchronization of the server with the client begins. The server starts sending a patch, 8 KB per clock cycle. The launcher accepts these requests and writes an 8 KB buffer of bytes to a temporary file.
- After a successful download, the launcher launches a system for comparing the cache functions of files. If the caches match, the file was transferred successfully. The patch processing and patching of the game client begins.
This system works, but I wish the server didn't have to deal with it. I want the server to send a link to download the correct patch. Tell me, friends, where can I get such a site? So that I can easily download a patch from a specific URL using the link via DownloaderClient. This will significantly reduce the load on the server. Since during testing, 15 people have already downloaded from me and, frankly speaking, the load is strong ... I will be very grateful to you for the code example. You can link to github. Thank you all and good mood)