From 3516a0194c45854bf416d4a54a8acafd3322a638 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 14 Dec 2014 20:38:06 -0500 Subject: Fixed DHT doc. --- docs/updates/DHT.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ DHT protocol ============ +NOTE: only the protocol section is up to date, the rest needs to be rewritten. + Follows pretty much the principle of the torrent DHT: http://www.bittorrent.org/beps/bep_0005.html (READ IT) But: @@ -101,5 +103,5 @@ Valid replies: a send_nodes packet Send_nodes (response (for all addresses)): ``` -[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]] +[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]] ``` -- cgit v1.2.3