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

Function stopServerQuery

Engine/source/app/net/serverQuery.cpp:678–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

DefineEngineFunctionFunction · 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