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

Function MultiSendReliablyToAllExcept

Descent3/multi_server.cpp:1827–1839  ·  view source on GitHub ↗

Sends this reliable packet to everyone except the server and the named slot

Source from the content-addressed store, hash-verified

1825
1826// Sends this reliable packet to everyone except the server and the named slot
1827void MultiSendReliablyToAllExcept(int except, uint8_t *data, int size, int seq_threshold, bool urgent) {
1828 for (int i = 0; i < MAX_NET_PLAYERS; i++) {
1829 if (!(NetPlayers[i].flags & NPF_CONNECTED))
1830 continue;
1831
1832 // Don't send to these clowns
1833 if (i == except || i == Player_num)
1834 continue;
1835
1836 if (NetPlayers[i].sequence >= seq_threshold && NetPlayers[i].sequence != NETSEQ_LEVEL_END)
1837 nw_SendReliable(NetPlayers[i].reliable_socket, data, size, urgent);
1838 }
1839}
1840
1841// Sends this nonreliable packet to everyone except the server and the named slot
1842void MultiSendToAllExcept(int except, uint8_t *data, int size, int seq_threshold) {

Callers 15

MultiSendMSafeFunctionFunction · 0.85
MultiSendMSafePowerupFunction · 0.85
MultiSendDamagePlayerFunction · 0.85
MultiSendLeaveGameFunction · 0.85
MultiSendLevelEndedFunction · 0.85
MultiDoLeaveGameFunction · 0.85
MultiSendBlowupBuildingFunction · 0.85
MultiSendPlayerDeadFunction · 0.85
MultiSendRenewPlayerFunction · 0.85

Calls 1

nw_SendReliableFunction · 0.85

Tested by

no test coverage detected