MCPcopy Create free account
hub / github.com/TASEmulators/fceux / TextToClient

Function TextToClient

fceux-server/server.cpp:509–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509static void TextToClient(ClientEntry *client, const char *fmt, ...) throw()
510{
511 char *moo;
512 va_list ap;
513
514 va_start(ap,fmt);
515 vasprintf(&moo, fmt, ap);
516 va_end(ap);
517
518
519 uint8 poo[5];
520 uint32 len;
521
522 poo[4] = 0x90;
523 len = strlen(moo);
524 en32(poo, len);
525
526 MakeSendTCP(client, poo, 5);
527 MakeSendTCP(client, (uint8*)moo, len);
528 free(moo);
529}
530
531static void BroadcastText(GameEntry *game, const char *fmt, ...) throw()
532{

Callers 2

CheckNBTCPReceiveFunction · 0.85
AddClientToGameFunction · 0.85

Calls 2

MakeSendTCPFunction · 0.85
en32Function · 0.70

Tested by

no test coverage detected