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

Function sendHeartbeat

Engine/source/app/net/serverQuery.cpp:875–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873//-----------------------------------------------------------------------------
874
875void sendHeartbeat( U8 flags )
876{
877 // send heartbeats to all of the master servers:
878 Vector<MasterInfo> *masterList = getMasterServerList();
879 for(U32 i = 0; i < masterList->size(); i++)
880 {
881 char buffer[256];
882 Net::addressToString(&(*masterList)[i].address, buffer);
883 // Send a request to the master server for the game types:
884 Con::printf( "Sending heartbeat to master server [%s]", buffer );
885 sendPacket( NetInterface::GameHeartbeat, &(*masterList)[i].address, 0, gPingSession, flags );
886 }
887}
888
889//-----------------------------------------------------------------------------
890

Callers 1

processHeartbeatFunction · 0.85

Calls 4

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

Tested by

no test coverage detected