MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / GetIncomingRate

Method GetIncomingRate

neo/framework/async/AsyncServer.cpp:408–420  ·  view source on GitHub ↗

================== idAsyncServer::GetIncomingRate ================== */

Source from the content-addressed store, hash-verified

406==================
407*/
408int idAsyncServer::GetIncomingRate( void ) const {
409 int i, rate;
410
411 rate = 0;
412 for ( i = 0; i < MAX_ASYNC_CLIENTS; i++ ) {
413 const serverClient_t &client = clients[i];
414
415 if ( client.clientState >= SCS_CONNECTED ) {
416 rate += client.channel.GetIncomingRate();
417 }
418 }
419 return rate;
420}
421
422/*
423==================

Callers 3

SCR_DrawAsyncStatsFunction · 0.45
GetClientIncomingRateMethod · 0.45
ClientGetIncomingRateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected