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

Function queryMasterGameTypes

Engine/source/app/net/serverQuery.cpp:483–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481//-----------------------------------------------------------------------------
482
483void queryMasterGameTypes()
484{
485 Vector<MasterInfo> *masterList = getMasterServerList();
486 if ( masterList->size() != 0 )
487 {
488 U32 master = Sim::getCurrentTime() % masterList->size();
489 // Send a request to the master server for the game types:
490 Con::printf( "Requesting game types from the master server..." );
491 sendPacket( NetInterface::MasterServerGameTypesRequest, &(*masterList)[master].address, gKey, gPingSession, 0 );
492 }
493}
494
495//-----------------------------------------------------------------------------
496

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected