From 89c22f685bf5b4bd6d64ad0f9d7faa0e19cb2570 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sun, 6 Dec 2015 15:20:40 +0000 Subject: [PATCH] small fixes in the comments --- src/protocol.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/protocol.cpp b/src/protocol.cpp index 1707f7a6..1d94a27f 100755 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -28,7 +28,7 @@ MAIN FRAME - cnt: counter which is increment for each message and wraps around at 255 - length n in bytes of the data - actual data, dependent on message type -- 16 bits CRC, calculating over the entire message, is transmitted inverted +- 16 bits CRC, calculated over the entire message and is transmitted inverted Generator polynom: G_16(x) = x^16 + x^12 + x^5 + 1, initial state: all ones @@ -38,9 +38,9 @@ MESSAGES (with connection) - PROTMESSID_ACKN: Acknowledgement message - +-----------------------------------+ - | 2 bytes ID of message to be ackn. | - +-----------------------------------+ + +------------------------------------------+ + | 2 bytes ID of message to be acknowledged | + +------------------------------------------+ note: the cnt value is the same as of the message to be acknowledged @@ -245,9 +245,9 @@ CONNECTION LESS MESSAGES for each registered server append following data: - +--------------------+--------------+--------------------------------+ - | 4 bytes IP address | 2 bytes port | PROTMESSID_CLM_REGISTER_SERVER | - +--------------------+--------------+--------------------------------+ + +--------------------+--------------------------------+ + | 4 bytes IP address | PROTMESSID_CLM_REGISTER_SERVER | + +--------------------+--------------------------------+ - "PROTMESSID_CLM_REGISTER_SERVER" means that exactly the same message body of the PROTMESSID_CLM_REGISTER_SERVER message is used