partial autodownload rewrite

* own source file for autodownload
* use cleaned up zip functions
* use new http get function (no more curl)
* enforce strict file naming rules and file size limits
* ping all package servers on every game start to determine ping times
* support media file update lists (also kept on package servers)
* allow users to manually prioritise package servers
* automatically select server with newest media file revision

new or changed commands:

addpckserver hostname [priority]
  Adds a host name to the list of package servers. If a priority is given,
  it influences the sorting of servers. Servers with higher priority are
  queried first. If servers have the same priority, they are sorted by
  ping. Default priority is zero.

getpackageserver
  Returns a table with four columns of all configured package servers. The
  columns are: host name, priority, ping and resolved.
  "resolved" is a flag, indicating, if the server answered the ping during
  game start.

removed cubescript idents: sortpckservers gamestarts
DOCREF addpckserver getpckserver
This commit is contained in:
ac-stef
2015-09-07 14:53:56 +02:00
parent c8313a946e
commit 7988443b1d
16 changed files with 616 additions and 585 deletions
+4
View File
@@ -431,6 +431,10 @@
<Option target="default" />
<Option target="debug" />
</Unit>
<Unit filename="../src/autodownload.cpp">
<Option target="default" />
<Option target="debug" />
</Unit>
<Unit filename="../src/serverchecks.h">
<Option target="default" />
<Option target="debug" />
+3
View File
@@ -287,6 +287,9 @@
<Unit filename="../src/http.cpp">
<Option target="&lt;{~None~}&gt;" />
</Unit>
<Unit filename="../src/autodownload.cpp">
<Option target="&lt;{~None~}&gt;" />
</Unit>
<Unit filename="../src/serverchecks.h">
<Option target="&lt;{~None~}&gt;" />
</Unit>