diff options
author | irungentoo <irungentoo@gmail.com> | 2014-12-14 20:33:31 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-12-14 20:33:31 -0500 |
commit | 015a8b7d75d46234d0bbb97efbf07e7c26afcc15 (patch) | |
tree | f5e2738a6650e30f4ad5b13f1cc58bdb00aca90a /docs/updates/DHT.md | |
parent | 6f3312c137cb86f17d1cd7ee97c9f6dd797fb2ce (diff) |
Sendback data size is always 8 bytes.
Diffstat (limited to 'docs/updates/DHT.md')
-rw-r--r-- | docs/updates/DHT.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/updates/DHT.md b/docs/updates/DHT.md index 86fad3d1..26f60399 100644 --- a/docs/updates/DHT.md +++ b/docs/updates/DHT.md | |||
@@ -95,11 +95,11 @@ ping_id = a random integer, the response must contain the exact same number as t | |||
95 | Get nodes (Request): | 95 | Get nodes (Request): |
96 | Packet contents: | 96 | Packet contents: |
97 | ``` | 97 | ``` |
98 | [byte with value: 02][char array (client node_id), length=32 bytes][random 24 byte nonce][Encrypted with the nonce and private key of the sender:[char array: requested_node_id (node_id of which we want the ip), length=32 bytes][Sendback data (must be sent back unmodified by in the response), length=1 to NODES_ENCRYPTED_MESSAGE_LENGTH bytes]] | 98 | [byte with value: 02][char array (client node_id), length=32 bytes][random 24 byte nonce][Encrypted with the nonce and private key of the sender:[char array: requested_node_id (node_id of which we want the ip), length=32 bytes][Sendback data (must be sent back unmodified by in the response), length=8 bytes]] |
99 | ``` | 99 | ``` |
100 | Valid replies: a send_nodes packet | 100 | Valid replies: a send_nodes packet |
101 | 101 | ||
102 | Send_nodes (response (for all addresses)): | 102 | Send_nodes (response (for all addresses)): |
103 | ``` | 103 | ``` |
104 | [byte with value: 04][char array (client node_id), length=32 bytes][random 24 byte nonce][Encrypted with the nonce and private key of the sender:[uint8_t number of nodes in this packet][Nodes in node format, length=?? * (number of nodes (maximum of 8 nodes)) bytes][Sendback data, length=1 to NODES_ENCRYPTED_MESSAGE_LENGTH bytes]] | 104 | [byte with value: 04][char array (client node_id), length=32 bytes][random 24 byte nonce][Encrypted with the nonce and private key of the sender:[uint8_t number of nodes in this packet][Nodes in node format, length=?? * (number of nodes (maximum of 8 nodes)) bytes][Sendback data, length=8 bytes]] |
105 | ``` | 105 | ``` |