diff options
-rw-r--r-- | docs/updates/DHT.md | 4 |
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 @@ | |||
1 | DHT protocol | 1 | DHT protocol |
2 | ============ | 2 | ============ |
3 | 3 | ||
4 | NOTE: only the protocol section is up to date, the rest needs to be rewritten. | ||
5 | |||
4 | Follows pretty much the principle of the torrent DHT: http://www.bittorrent.org/beps/bep_0005.html (READ IT) | 6 | Follows pretty much the principle of the torrent DHT: http://www.bittorrent.org/beps/bep_0005.html (READ IT) |
5 | 7 | ||
6 | But: | 8 | But: |
@@ -101,5 +103,5 @@ Valid replies: a send_nodes packet | |||
101 | 103 | ||
102 | Send_nodes (response (for all addresses)): | 104 | Send_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 | ``` |