summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/updates/DHT.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/updates/DHT.md b/docs/updates/DHT.md
index 26f60399..9857b419 100644
--- a/docs/updates/DHT.md
+++ b/docs/updates/DHT.md
@@ -1,6 +1,8 @@
1DHT protocol 1DHT protocol
2============ 2============
3 3
4NOTE: only the protocol section is up to date, the rest needs to be rewritten.
5
4Follows pretty much the principle of the torrent DHT: http://www.bittorrent.org/beps/bep_0005.html (READ IT) 6Follows pretty much the principle of the torrent DHT: http://www.bittorrent.org/beps/bep_0005.html (READ IT)
5 7
6But: 8But:
@@ -101,5 +103,5 @@ Valid replies: a send_nodes packet
101 103
102Send_nodes (response (for all addresses)): 104Send_nodes (response (for all addresses)):
103``` 105```
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]] 106[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 4 nodes)) bytes][Sendback data, length=8 bytes]]
105``` 107```