Commit 9cccd2c2 authored by Willem Thiart's avatar Willem Thiart
Browse files

Added HOWTO guide

parent 29b41e6d
...@@ -318,14 +318,17 @@ To receive ``Append Entries``, ``Append Entries response``, ``Request Vote``, an ...@@ -318,14 +318,17 @@ To receive ``Append Entries``, ``Append Entries response``, ``Request Vote``, an
The table below shows the structs that you need to deserialize-to or deserialize-from: The table below shows the structs that you need to deserialize-to or deserialize-from:
+-------------------------+------------------------------+ +-------------------------+------------------------------+----------------------------------+
| Message Type | Struct | | Message Type | Struct | Function |
+-------------------------+------------------------------+ +-------------------------+------------------------------+----------------------------------+
| Append Entries | msg_appendentries_t | | Append Entries | msg_appendentries_t | raft_recv_appendentries |
| Append Entries response | msg_appendentries_response_t | +-------------------------+------------------------------+----------------------------------+
| Request Vote | msg_requestvote_t | | Append Entries response | msg_appendentries_response_t | raft_recv_appendentries_response |
| Request Vote response | msg_requestvote_response_t | +-------------------------+------------------------------+----------------------------------+
+-------------------------+------------------------------+ | Request Vote | msg_requestvote_t | raft_recv_requestvote |
+-------------------------+------------------------------+----------------------------------+
| Request Vote response | msg_requestvote_response_t | raft_recv_requestvote_response |
+-------------------------+------------------------------+----------------------------------+
Example of how we receive an Append Entries message, and reply to it: Example of how we receive an Append Entries message, and reply to it:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment