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

Function querySingleServer

Engine/source/app/net/serverQuery.cpp:608–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606//-----------------------------------------------------------------------------
607
608void querySingleServer( const NetAddress* addr, U8 /*flags*/ )
609{
610 sgServerQueryActive = true;
611 ServerInfo* si = findServerInfo( addr );
612 if ( si )
613 si->status = ServerInfo::Status_New | ServerInfo::Status_Updating;
614
615 // Remove the server from the finished list (if it's there):
616 for ( U32 i = 0; i < gFinishedList.size(); i++ )
617 {
618 if ( Net::compareAddresses( addr, &gFinishedList[i] ) )
619 {
620 gFinishedList.erase( i );
621 break;
622 }
623 }
624
625 Con::executef( "onServerQueryStatus", "start", "Refreshing server...", "0" );
626 gServerPingCount = gServerQueryCount = 0;
627 pushPingRequest( addr );
628 processPingsAndQueries( gPingSession );
629}
630
631//-----------------------------------------------------------------------------
632

Callers 1

serverQuery.cppFile · 0.85

Calls 6

findServerInfoFunction · 0.85
executefFunction · 0.85
pushPingRequestFunction · 0.85
processPingsAndQueriesFunction · 0.85
sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected