summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
AgeCommit message (Collapse)Author
2016-08-31Add braces to all if statements.iphydf
2016-08-27Move logging to a callback.iphydf
This removes the global logger (which by the way was deleted when the first tox was killed, so other toxes would then stop logging). Various bits of the code now carry a logger or pass it around. It's a bit less transparent now, but now there is no need to have a global logger, and clients can decide what to log and where.
2016-08-18Make tox_callback_friend_name stateless.iphydf
See #27 and #40 for details.
2016-08-17Add missing DHT_bootstrap to CMakeLists.txt.iphydf
- This PR also adds a DEBUG cmake option that enables -DTOX_DEBUG. - We also remove `-Wall`, because there are too many warnings, and nobody really looks at them at the moment. We'll see about fixing them soon. We'll also want to enable `-Werror` at some point. - Finally, this PR enables `-O3` to make sure toxcore still works correctly under heavy compiler optimisations.
2016-01-27 add: comment about endiannessRoman Proskuryakov
2016-01-27 fix: compare sensitive data with sodium_memcmpRoman Proskuryakov
fix: make increment_nonce & increment_nonce_number independent of user-controlled input fix: make crypto_core more stable agains null ptr dereference
2016-01-04Cleanups.irungentoo
2016-01-04DHT improvements part 1.irungentoo
2015-12-17Allow 0 length sendnode.irungentoo
2015-12-16Send get nodes instead of ping to timing out nodes.irungentoo
2015-12-16This is still useful.irungentoo
2015-12-16Improved the to_ping list.irungentoo
2015-12-15More efficient DHT searching.irungentoo
2015-12-14Sort list if timed out nodes are in the middle of the list.irungentoo
2015-12-14Send get nodes more to closer nodes than further nodes.irungentoo
2015-12-12Update so this works with the new distance function.irungentoo
2015-12-11Remove useless vars.irungentoo
2015-12-11More DHT fixes.irungentoo
2015-12-11DHT fix.irungentoo
2015-12-11DHT improvements.irungentoo
Feed better nodes to onion, bootstrap off close clients when DHT friend is added.
2015-12-11DHT fix.irungentoo
Return only closest nodes in get nodes packet.
2015-12-11DHT fixes.irungentoo
2015-12-10Check if node can be stored before sorting.irungentoo
2015-12-09Small fix.irungentoo
2015-12-09DHT fix.irungentoo
Improve DHT distance function.
2015-12-08Improve likelyhood of the closest nodes being in our lists.irungentoo
2015-12-08Fixed DHT bug.irungentoo
2015-08-11Remove useless code.irungentoo
2015-08-07Removed a useless define.irungentoo
2015-08-06client_id -> public_keyirungentoo
2015-08-05client_id -> public_keyirungentoo
2015-08-04comp_client_id -> comp_public_keyirungentoo
2015-08-01DHT save fixes.irungentoo
2015-07-30client_id -> public_keyirungentoo
2015-07-29client_id -> public_keyirungentoo
2015-07-28client_id -> public_keyirungentoo
2015-07-27client_id -> public_keyirungentoo
2015-07-24Removed useless variable.irungentoo
2015-07-18Fixed bug.irungentoo
2015-07-15Added function to help calculate size of packet nodes.irungentoo
2015-07-14DHT_size now returns correct size for packed nodes.irungentoo
2015-07-14Use size define instead of sizeof.irungentoo
2015-07-12Pack DHT nodes in save.irungentoo
TODO: Make DHT_size return exact size of DHT save.
2015-06-27Removed some comented out code.irungentoo
2015-06-26Some comment fixes.irungentoo
2015-06-09Define fix.irungentoo
2015-06-08Remove useless variables.irungentoo
2015-06-07Don't bootstrap to all loaded nodes at once.irungentoo
2015-06-07Save DHT friend nodes too.irungentoo
2015-06-06Save DHT nodes in a smarter way.irungentoo