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

Method checkTimeout

Engine/source/sim/netConnection.cpp:476–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

checkTimeoutsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected