@@ -311,3 +311,38 @@ For this callback the user needs to remove the most youngest log entry [#]_. The
...
@@ -311,3 +311,38 @@ For this callback the user needs to remove the most youngest log entry [#]_. The
.. [#] The log entry at the front of the log
.. [#] The log entry at the front of the log
.. [#] The log entry at the back of the log
.. [#] The log entry at the back of the log
Receving traffic from peers
===========================
To receive ``Append Entries``, ``Append Entries response``, ``Request Vote``, and ``Request Vote response`` messages, you need to deserialize the bytes into the message's corresponding struct.
The table below shows the structs that you need to deserialize-to or deserialize-from: