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

Function MultiSendGreetings

Descent3/multi.cpp:7573–7584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7571}
7572
7573void MultiSendGreetings(uint32_t id) {
7574 int size = 0;
7575 uint8_t data[MAX_GAME_DATA_SIZE];
7576 int count = 0;
7577 // Client sends this only
7578 MULTI_ASSERT_NOMESSAGE(Netgame.local_role != LR_SERVER);
7579 size = START_DATA(MP_GREETINGS_FROM_CLIENT, data, &count);
7580 MultiAddUint(id, data, &count);
7581 mprintf(0, "Saying hello to the server\n");
7582 END_DATA(count, data, size);
7583 nw_Send(&Netgame.server_address, data, count, 0);
7584}
7585
7586void MultiDoGreetings(uint8_t *data, network_address *addr) {
7587 int count = 0;

Callers 1

Calls 4

START_DATAFunction · 0.85
MultiAddUintFunction · 0.85
END_DATAFunction · 0.85
nw_SendFunction · 0.85

Tested by

no test coverage detected