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

Function FetchServersTask_Run

src/LWeb.c:515–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515void FetchServersTask_Run(void) {
516 cc_string url; char urlBuffer[URL_MAX_SIZE];
517 if (FetchServersTask.Base.working) return;
518
519 LWebTask_Reset(&FetchServersTask.Base);
520 String_InitArray(url, urlBuffer);
521 String_Format1(&url, "%s/servers", &servicesServer);
522
523 FetchServersTask.Base.Handle = FetchServersTask_Handle;
524 FetchServersTask.Base.reqID = Http_AsyncGetDataEx(&url, 0, NULL, NULL, &ccCookies);
525}
526
527void FetchServersTask_ResetOrder(void) {
528 int i;

Callers 2

MainScreen_LoginPhase2Function · 0.85
ServersScreen_RefreshFunction · 0.85

Calls 3

LWebTask_ResetFunction · 0.85
String_Format1Function · 0.85
Http_AsyncGetDataExFunction · 0.70

Tested by

no test coverage detected