MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Remote_ClientProcess

Function Remote_ClientProcess

netgames/dmfc/dmfcremote.cpp:315–333  ·  view source on GitHub ↗

handles a remote command (client side)

Source from the content-addressed store, hash-verified

313
314// handles a remote command (client side)
315void Remote_ClientProcess(const char *command) {
316 if (basethis->GetLocalRole() == LR_SERVER)
317 return;
318 if (!IAmAnAdmin) {
319 // only let "login" go through
320 if (!strnicmp(command, "login", strlen("login"))) {
321 mprintf(0, "Sending login attempt for remote administration\n");
322 } else {
323 return;
324 }
325 }
326
327 const char *ptr = command;
328 while (*ptr == ' ')
329 ptr++;
330 if (*ptr) {
331 Remote_SendStringToServer(ptr);
332 }
333}
334
335// handles a remote command (server side)
336void Remote_ServerProcess(int precnum, char *command) {

Callers 1

DMFCInputCommand_RemoteFunction · 0.85

Calls 2

GetLocalRoleMethod · 0.80

Tested by

no test coverage detected