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

Function nw_GetNetworkStats

networking/networking.cpp:2672–2680  ·  view source on GitHub ↗

fills in the buffer with network stats pass NULL to reset the stats

Source from the content-addressed store, hash-verified

2670// fills in the buffer with network stats
2671// pass NULL to reset the stats
2672void nw_GetNetworkStats(tNetworkStatus *stats) {
2673 if (!stats) {
2674 // reset the stats
2675 memset(&NetStatistics, 0, sizeof(NetStatistics));
2676 return;
2677 }
2678
2679 memcpy(stats, &NetStatistics, sizeof(NetStatistics));
2680}

Callers 2

nw_InitNetworkingFunction · 0.85
GameFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected