MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / stopServerQuery

Function stopServerQuery

engine/source/network/serverQuery.cc:580–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578//-----------------------------------------------------------------------------
579
580void stopServerQuery()
581{
582 // Cancel the current query, anything left on the ping
583 // list is moved to the finished list as "done".
584 if ( sgServerQueryActive )
585 {
586 gPacketStatusList.clear();
587
588 if ( gPingList.size() )
589 {
590 while ( gPingList.size() )
591 {
592 gFinishedList.push_back( gPingList[0].address );
593 gPingList.erase( U32( 0 ) );
594 }
595 }
596 else
597 cancelServerQuery();
598 }
599}
600
601void startHeartbeat()
602{

Callers 1

Calls 5

cancelServerQueryFunction · 0.85
clearMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected