summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-12-14 20:38:06 -0500
committerirungentoo <irungentoo@gmail.com>2014-12-14 20:38:06 -0500
commit3516a0194c45854bf416d4a54a8acafd3322a638 (patch)
tree6d50de1ac5aee95437a5f980205c8af938c08b12 /docs
parent015a8b7d75d46234d0bbb97efbf07e7c26afcc15 (diff)
Fixed DHT doc.
Diffstat (limited to 'docs')
-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```