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

Function sendHeartbeat

engine/source/network/serverQuery.cc:732–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730//-----------------------------------------------------------------------------
731
732void sendHeartbeat( U8 flags )
733{
734 // send heartbeats to all of the master servers:
735 Vector<MasterInfo> *masterList = getMasterServerList();
736 for(U32 i = 0; i < (U32)masterList->size(); i++)
737 {
738 char buffer[256];
739 Net::addressToString(&(*masterList)[i].address, buffer);
740 // Send a request to the master server for the game types:
741 Con::printf( "Sending heartbeat to master server [%s]", buffer );
742 sendPacket( NetInterface::GameHeartbeat, &(*masterList)[i].address, 0, gPingSession, flags );
743 }
744}
745
746//-----------------------------------------------------------------------------
747

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