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

Function FCEUNET_SendCommand

src/netplay.cpp:82–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82int FCEUNET_SendCommand(uint8 cmd, uint32 len)
83{
84 //mbg merge 7/17/06 changed to alloca
85 //uint8 buf[numlocal + 1 + 4];
86 uint8 *buf = (uint8*)alloca(numlocal+1+4);
87
88
89 buf[0] = 0xFF;
90 FCEU_en32lsb(&buf[numlocal], len);
91 buf[numlocal + 4] = cmd;
92 if(!FCEUD_SendData(buf,numlocal + 1 + 4))
93 {
94 NetError();
95 return(0);
96 }
97 return(1);
98}
99
100void FCEUI_NetplayText(uint8 *text)
101{

Callers 3

FCEUI_NetplayTextFunction · 0.85
FCEUNET_SendFileFunction · 0.85
FCEU_QSimpleCommandFunction · 0.85

Calls 3

FCEU_en32lsbFunction · 0.85
NetErrorFunction · 0.85
FCEUD_SendDataFunction · 0.50

Tested by

no test coverage detected