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

Function MultiSendFullPacket

Descent3/multi.cpp:6518–6527  ·  view source on GitHub ↗

Sends a full packet out the the server Resets the send_size variable Server only

Source from the content-addressed store, hash-verified

6516// Resets the send_size variable
6517// Server only
6518void MultiSendFullPacket(int slot, int flags) {
6519 MULTI_ASSERT_NOMESSAGE(Netgame.local_role == LR_SERVER);
6520
6521 if (Multi_send_size[slot] < 1)
6522 return;
6523
6524 MULTI_ASSERT_NOMESSAGE(NetPlayers[slot].flags & NPF_CONNECTED);
6525 nw_Send(&NetPlayers[slot].addr, Multi_send_buffer[slot], Multi_send_size[slot], flags);
6526 Multi_send_size[slot] = 0;
6527}
6528
6529// Sends a full packet out the the server
6530// Resets the send_size variable

Callers 4

MultiSendRobotFireWeaponFunction · 0.85
MultiPlay3dSoundFunction · 0.85
MultiSendRobotFireSoundFunction · 0.85
MultiDoServerRobotFrameFunction · 0.85

Calls 1

nw_SendFunction · 0.85

Tested by

no test coverage detected