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

Function stopServerQuery

Engine/source/app/net/serverQuery.cpp:677–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675//-----------------------------------------------------------------------------
676
677void stopServerQuery()
678{
679 // Cancel the current query, anything left on the ping
680 // list is moved to the finished list as "done".
681 if ( sgServerQueryActive )
682 {
683 gPacketStatusList.clear();
684
685 if ( gPingList.size() )
686 {
687 while ( gPingList.size() )
688 {
689 gFinishedList.push_back( gPingList[0].address );
690 gPingList.erase( U32( 0 ) );
691 }
692 }
693 else
694 cancelServerQuery();
695 }
696}
697
698DefineConsoleFunction( stopServerQuery, void, (), , "stopServerQuery();" )
699{

Callers 1

DefineConsoleFunctionFunction · 0.85

Calls 6

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

Tested by

no test coverage detected