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

Function sendHeartbeat

Engine/source/app/net/serverQuery.cpp:876–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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