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

Function querySingleServer

engine/source/network/serverQuery.cc:516–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514//-----------------------------------------------------------------------------
515
516void querySingleServer( const NetAddress* addr, U8 /*flags*/ )
517{
518 sgServerQueryActive = true;
519 ServerInfo* si = findServerInfo( addr );
520 if ( si )
521 si->status = ServerInfo::Status_New | ServerInfo::Status_Updating;
522
523 // Remove the server from the finished list (if it's there):
524 for ( U32 i = 0; i < (U32)gFinishedList.size(); i++ )
525 {
526 if ( Net::compareAddresses( addr, &gFinishedList[i] ) )
527 {
528 gFinishedList.erase( i );
529 break;
530 }
531 }
532
533 Con::executef( 4, "onServerQueryStatus", "start", "Refreshing server...", "0" );
534 gServerPingCount = gServerQueryCount = 0;
535 pushPingRequest( addr );
536 processPingsAndQueries( gPingSession );
537}
538
539//-----------------------------------------------------------------------------
540

Callers 1

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