Fixed DHT doc.

This commit is contained in:
irungentoo 2014-12-14 20:38:06 -05:00
parent 015a8b7d75
commit 3516a0194c
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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]]
```