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

Function SendPilotTrackerPacket

netcon/mtclient/mt_net.cpp:257–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257int SendPilotTrackerPacket(void *packet) {
258 udp_packet_header *p_pack = (udp_packet_header *)packet;
259
260 network_address send_address;
261 memset(&send_address, 0, sizeof(network_address));
262 SOCKADDR_IN *inaddr = (SOCKADDR_IN *)&ptrackaddr;
263 memcpy(send_address.address, &inaddr->sin_addr, 4);
264 send_address.port = htons(inaddr->sin_port);
265 send_address.connection_type = NP_TCP;
266 return DLLnw_SendWithID(PXO_NETID_USER_TRACKER, (uint8_t *)p_pack, INTEL_SHORT(p_pack->len), &send_address);
267}

Callers 6

AckServerFunction · 0.85
IdlePTrackFunction · 0.85
ValidateUserFunction · 0.85
ValidIdleFunction · 0.85
VersionIdleFunction · 0.85
MTAVersionCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected