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

Function querySingleServer

Engine/source/app/net/serverQuery.cpp:609–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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