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

Function Remote_HandleClientPacket

netgames/dmfc/dmfcremote.cpp:593–600  ·  view source on GitHub ↗

Handles remote admin packets from a client

Source from the content-addressed store, hash-verified

591
592// Handles remote admin packets from a client
593void Remote_HandleClientPacket(uint8_t *data) {
594 char buffer[512];
595 int prec = Remote_RecieveStringFromClient(data, buffer, 512);
596 if (prec == -1)
597 return;
598
599 Remote_ServerProcess(prec, buffer);
600}
601
602// Recieves a string from a client (function decrypts it)
603int Remote_RecieveStringFromClient(uint8_t *data, char *buffer, int size) {

Callers

nothing calls this directly

Calls 2

Remote_ServerProcessFunction · 0.85

Tested by

no test coverage detected