MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / FetchServerTask_Run

Function FetchServerTask_Run

src/LWeb.c:446–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446void FetchServerTask_Run(const cc_string* hash) {
447 cc_string url; char urlBuffer[URL_MAX_SIZE];
448 if (FetchServerTask.Base.working) return;
449
450 LWebTask_Reset(&FetchServerTask.Base);
451 ServerInfo_Init(&FetchServerTask.server);
452 String_InitArray(url, urlBuffer);
453 String_Format2(&url, "%s/server/%s", &servicesServer, hash);
454
455 FetchServerTask.Base.Handle = FetchServerTask_Handle;
456 FetchServerTask.Base.reqID = Http_AsyncGetDataEx(&url, 0, NULL, NULL, &ccCookies);
457}
458
459
460/*########################################################################################################################*

Callers 1

Launcher_ConnectToServerFunction · 0.85

Calls 4

LWebTask_ResetFunction · 0.85
ServerInfo_InitFunction · 0.85
String_Format2Function · 0.85
Http_AsyncGetDataExFunction · 0.70

Tested by

no test coverage detected