Added basic hearbeat framework

This commit is contained in:
Kayne Ruse
2014-09-03 00:53:55 +10:00
parent d50cf5b91e
commit 5577387d61
5 changed files with 37 additions and 0 deletions
+10
View File
@@ -27,6 +27,16 @@
//basic connections
//-------------------------
void ServerApplication::HandlePing(ServerPacket* const argPacket) {
ServerPacket newPacket;
newPacket.type = SerialPacketType::PONG;
network.SendTo(&argPacket->srcAddress, &newPacket);
}
void ServerApplication::HandlePong(ServerPacket* const argPacket) {
//TODO: ServerApplications::HandlePong()
}
void ServerApplication::HandleBroadcastRequest(ServerPacket* const argPacket) {
//send the server's data
ServerPacket newPacket;