From 6e47bdc8a4ec35b075fdff69e075897cd270e8ac Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Wed, 1 Nov 2023 10:13:10 -0400 Subject: [PATCH] Comments --- SQCSim-common/netprotocol.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SQCSim-common/netprotocol.h b/SQCSim-common/netprotocol.h index cd2d508..26b946b 100644 --- a/SQCSim-common/netprotocol.h +++ b/SQCSim-common/netprotocol.h @@ -7,8 +7,6 @@ /* Protocole Particulier de Partie a Plusieurs Personnes (PPPPP) */ -// Packet: packet[0] = PacketType, packet[1..n-1] = {packet} - namespace netprot { enum class PACKET_TYPE: uint8_t { ERR, INPUT, OUTPUT, SYNC, @@ -31,7 +29,7 @@ namespace netprot { PACKET_TYPE type = PACKET_TYPE::ERR; }; - inline const char Footer[sizeof(uint32_t)] = { '\0', '\r', '\0', '\n' }; + inline const char Footer[sizeof(uint32_t)] = { '\0', '\r', '\0', '\n' }; // constante de footer qui est ajoutée à chaque paquet envoyé. struct Keys { bool forward, @@ -69,7 +67,7 @@ namespace netprot { States states; // 0bJSH_____ bit-packing de bool. }; - struct Sync { // srv -> cli TCP ~second + struct Sync { // srv -> cli TCP ~second - un premier sync démarre la partie. Timestamp timestamp; uint64_t sid = 0; uint32_t timer = 0; @@ -202,6 +200,5 @@ namespace netprot { buf->rstLen(); } - }; #endif