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

Function queryMasterGameTypes

engine/source/network/serverQuery.cc:417–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415//-----------------------------------------------------------------------------
416
417void queryMasterGameTypes()
418{
419 Vector<MasterInfo> *masterList = getMasterServerList();
420 if ( masterList->size() != 0 )
421 {
422 U32 master = Sim::getCurrentTime() % masterList->size();
423 // Send a request to the master server for the game types:
424 Con::printf( "Requesting game types from the master server..." );
425 sendPacket( NetInterface::MasterServerGameTypesRequest, &(*masterList)[master].address, gKey, gPingSession, 0 );
426 }
427}
428
429//-----------------------------------------------------------------------------
430

Callers

nothing calls this directly

Calls 5

getMasterServerListFunction · 0.85
getCurrentTimeFunction · 0.85
printfFunction · 0.85
sendPacketFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected