using separate MetaServer for mandatory resources for better user experience.

This commit is contained in:
rachytski 2012-07-08 20:48:02 -07:00 committed by Alex Zolotarev
parent 07c17e4eea
commit dd6baaa78e
3 changed files with 7 additions and 1 deletions

View file

@ -226,7 +226,7 @@ extern "C"
CallbackT onProgress(bind(&DownloadFileProgress, jni::make_global_ref(observer), _1));
g_currentRequest.reset(downloader::HttpRequest::PostJson(
GetPlatform().MetaServerUrl(), curFile.m_fileName,
GetPlatform().ResourcesMetaServerUrl(), curFile.m_fileName,
bind(&DownloadURLListFinished, _1, onFinish, onProgress)));
return ERR_FILE_IN_PROGRESS;

View file

@ -31,6 +31,11 @@ string Platform::HashUniqueID(string const & s)
return base64::encode(xoredHash);
}
string Platform::ResourcesMetaServerUrl() const
{
return "http://active.resources.servers.url";
}
string Platform::MetaServerUrl() const
{
return "http://active.servers.url";

View file

@ -123,6 +123,7 @@ public:
/// @return url for clients to download maps
string MetaServerUrl() const;
string ResourcesMetaServerUrl() const;
/// @return JSON-encoded list of urls if metaserver is unreachable
string DefaultUrlsJSON() const;