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

Method PacifierUpdate

neo/framework/async/AsyncServer.cpp:2529–2546  ·  view source on GitHub ↗

================== idAsyncServer::PacifierUpdate ================== */

Source from the content-addressed store, hash-verified

2527==================
2528*/
2529void idAsyncServer::PacifierUpdate( void ) {
2530 int i;
2531
2532 if ( !IsActive() ) {
2533 return;
2534 }
2535 realTime = Sys_Milliseconds();
2536 ProcessConnectionLessMessages();
2537 for ( i = 0; i < MAX_ASYNC_CLIENTS; i++ ) {
2538 if ( clients[i].clientState >= SCS_PUREWAIT ) {
2539 if ( clients[i].channel.UnsentFragmentsLeft() ) {
2540 clients[i].channel.SendNextFragment( serverPort, serverTime );
2541 } else {
2542 SendEmptyToClient( i );
2543 }
2544 }
2545 }
2546}
2547
2548/*
2549==================

Callers

nothing calls this directly

Calls 3

Sys_MillisecondsFunction · 0.85
UnsentFragmentsLeftMethod · 0.80
SendNextFragmentMethod · 0.80

Tested by

no test coverage detected