summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-04-25 09:02:49 -0400
committerirungentoo <irungentoo@gmail.com>2014-04-25 09:02:49 -0400
commita79eafbb5292b5fb5ae677c97a9bf2ecc4f853b0 (patch)
tree90530ee0fd287aeb47fda190b80d3eed7bf210ad /docs
parent78cbb287b189753bc1f961769637fe27b44377a0 (diff)
The data in the DHT get nodes and send nodes packets can now be of
variable length.
Diffstat (limited to 'docs')
-rw-r--r--docs/updates/DHT.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/updates/DHT.md b/docs/updates/DHT.md
index 9e94ab11..ba6abe3a 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
95Get nodes (Request): 95Get nodes (Request):
96Packet contents: 96Packet 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][Encrypted data (must be sent back unmodified by in the response), length=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=1 to NODES_ENCRYPTED_MESSAGE_LENGTH bytes]]
99``` 99```
100Valid replies: a send_nodes packet 100Valid replies: a send_nodes packet
101 101
102Send_nodes (response (for all addresses)): 102Send_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:[Nodes in node format, length=?? * (number of nodes (maximum of 8 nodes)) bytes][Encrypted data, length=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=1 to NODES_ENCRYPTED_MESSAGE_LENGTH bytes]]
105``` 105```