diff options
author | irungentoo <irungentoo@gmail.com> | 2014-12-14 20:38:06 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-12-14 20:38:06 -0500 |
commit | 3516a0194c45854bf416d4a54a8acafd3322a638 (patch) | |
tree | 6d50de1ac5aee95437a5f980205c8af938c08b12 | |
parent | 015a8b7d75d46234d0bbb97efbf07e7c26afcc15 (diff) |
Fixed DHT doc.
-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 | ``` |