MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / checkTimeout

Method checkTimeout

Engine/source/sim/netConnection.cpp:471–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471bool NetConnection::checkTimeout(U32 time)
472{
473 if(!isNetworkConnection())
474 return false;
475
476 if(time > mLastPingSendTime + PingTimeout)
477 {
478 if(mPingSendCount >= mPingRetryCount)
479 return true;
480 mLastPingSendTime = time;
481 mPingSendCount++;
482 sendPingPacket();
483 }
484 return false;
485}
486
487void NetConnection::keepAlive()
488{

Callers 1

checkTimeoutsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected