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

Function MultiSendRequestForPlayers

Descent3/multi_client.cpp:225–237  ·  view source on GitHub ↗

Ask the server to tell me about the players

Source from the content-addressed store, hash-verified

223
224// Ask the server to tell me about the players
225void MultiSendRequestForPlayers() {
226 int size;
227 uint8_t data[MAX_GAME_DATA_SIZE];
228 int count = 0;
229
230 mprintf(0, "Sending request for players\n");
231
232 size = START_DATA(MP_REQUEST_PLAYERS, data, &count);
233 MultiAddByte(Player_num, data, &count);
234 END_DATA(count, data, size);
235
236 nw_SendReliable(NetPlayers[Player_num].reliable_socket, data, count);
237}
238
239// Ask the server to tell me about the buildings
240void MultiSendRequestForBuildings() {

Callers 1

MultiDoClientFrameFunction · 0.85

Calls 4

START_DATAFunction · 0.85
MultiAddByteFunction · 0.85
END_DATAFunction · 0.85
nw_SendReliableFunction · 0.85

Tested by

no test coverage detected