Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Willemt Raft
Commits
9cccd2c2
Commit
9cccd2c2
authored
Sep 03, 2015
by
Willem Thiart
Browse files
Added HOWTO guide
parent
29b41e6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
HOWTO.rst
View file @
9cccd2c2
...
...
@@ -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:
+-------------------------+------------------------------+
| Message Type | Struct |
+-------------------------+------------------------------+
| Append Entries | msg_appendentries_t |
| Append Entries response | msg_appendentries_response_t |
| Request Vote | msg_requestvote_t |
| Request Vote response | msg_requestvote_response_t |
+-------------------------+------------------------------+
+-------------------------+------------------------------+----------------------------------+
| Message Type | Struct | Function |
+-------------------------+------------------------------+----------------------------------+
| Append Entries | msg_appendentries_t | raft_recv_appendentries |
+-------------------------+------------------------------+----------------------------------+
| Append Entries response | msg_appendentries_response_t | raft_recv_appendentries_response |
+-------------------------+------------------------------+----------------------------------+
| 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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment