Commit Graph

202 Commits

Author SHA1 Message Date
irungentoo b8362a6726 Removed some comented out code. 2015-06-27 23:37:11 -04:00
irungentoo 0e982405d6 Some comment fixes. 2015-06-26 22:58:59 -04:00
irungentoo 8ac74ebf47 Define fix. 2015-06-09 23:09:26 -04:00
irungentoo 3e352749ad Remove useless variables. 2015-06-08 22:02:34 -04:00
irungentoo 0a38ffcbba Don't bootstrap to all loaded nodes at once. 2015-06-07 20:47:40 -04:00
irungentoo 14afb3b9b7 Save DHT friend nodes too. 2015-06-07 20:30:36 -04:00
irungentoo f4d0b85284 Save DHT nodes in a smarter way. 2015-06-06 22:13:43 -04:00
irungentoo 0045ace8a8 Small cleanups. 2015-05-02 21:55:42 -04:00
irungentoo a1127e63d5 Better DHT distance function. 2015-03-14 10:03:19 -04:00
irungentoo f463cb52a2 Code cleanups.
Rename array in Node_format from client_id to public_key.
2015-01-29 19:38:44 -05:00
irungentoo f07c588ef5 Don't enforce limits on pings for LAN ips. 2015-01-14 20:56:37 -05:00
irungentoo 6650f18b86 Attempted fix of Tox killing routers part 2.
Reduced drastically the number of ips the DHT pings by only pinging
nodes that would be included in one of the close lists.
2015-01-12 20:26:29 -05:00
irungentoo 90f68f578c Merge branch 'mannol-master' 2015-01-10 21:39:40 -05:00
mannol ad67259535 Logger fix 2015-01-10 23:29:00 +01:00
irungentoo 139fc8e0f0 Removed unused variables. 2015-01-06 22:56:21 -05:00
irungentoo d4ea2809db Removed useless function. 2015-01-02 22:40:53 -05:00
irungentoo 4c8737785a Removed now useless packet id. 2014-12-31 13:01:01 -05:00
irungentoo 8ff85f09cb Check if received ip family is valid for the onion packets. 2014-12-31 12:30:39 -05:00
irungentoo 523cc20eb0 Remove useless code. 2014-12-30 21:34:01 -05:00
irungentoo e1a3bb3b2e DHT fixes.
This should speed up DHT searches.
2014-12-15 16:47:26 -05:00
irungentoo 015a8b7d75 Sendback data size is always 8 bytes. 2014-12-14 20:33:31 -05:00
irungentoo 6bbb939855 Cleaned up packet length types in toxcore.
They are now all uint16_t instead of sometimes being uint32_t.

Replaced some other uint32_t with unsigned ints.
2014-11-21 20:18:29 -05:00
Tux3 / Mlkj / !Lev.uXFMLA 7bb0c495ac Fix DHT memory leak
Found with valgrind, in the order of magnitude of 100kB leaked
2014-10-27 22:57:12 +01:00
irungentoo 834ffee47d Make the ip port from DHT timeout after a while.
Some small fixes.
2014-09-27 08:00:42 -04:00
irungentoo f2a313359e Added callbacks to onion_client and net_crypto for the temp dht key.
Better than the polling mess.

Moved DHT to Messenger from onion_client (still needs some cleanups).
2014-09-26 20:32:38 -04:00
irungentoo 33721da46a Added callbacks to DHT called when the ip of a peer is discovered. 2014-09-26 17:56:06 -04:00
irungentoo bb60c28b73 DHT can now be used for group chat cons and friend cons at the same time. 2014-09-26 15:42:56 -04:00
irungentoo 9527d28b70 Some cleanups to last PR. 2014-09-12 17:40:09 -04:00
irungentoo 269fd6814e Merge branch 'tox_connect' of https://github.com/saneki/toxcore 2014-09-12 17:07:27 -04:00
saneki 27369ac762 Removed tox_connect, initial connections are made on first tox_do 2014-09-12 12:21:17 -05:00
Tux3 / Mlkj / !Lev.uXFMLA 5abcb7e32e Remove unused function in DHT.c 2014-09-10 19:47:21 +02:00
saneki 98a93c7880 Fixed spacing 2014-09-09 14:48:09 -05:00
saneki f771bfbe30 Added tox_connect function, no connecting done during tox_load 2014-09-09 11:34:39 -05:00
irungentoo 69a55b87d2 Fixed some gcc warnings. 2014-08-21 20:55:14 -04:00
irungentoo c959f6c019 Added function to check if we were only connected to LAN DHT peers. 2014-08-18 18:56:02 -04:00
irungentoo f6955f2f3e Merge branch 'remove-sort_list' of https://github.com/pyruvate/toxcore 2014-08-09 17:35:23 -04:00
pyruvate bdf1c97273 Refactoring of node replacements in addto_lists function
An index for replacement candidate is searched
in one lookup cycle for all types (bad, possibly bad, good).
Sorting of items has been removed (sorting logic can be substituted
by a maximum search).
2014-08-09 11:33:20 +03:00
Marc Schütz 9762089bad Const-correctness for onion_client.c 2014-06-30 21:41:03 +02:00
Tux3 / Mlkj / !Lev.uXFMLA 3044bd8101 Fix CppCheck style errors
#if 0 the content of toxav/msi.c : int stringify_message(MSIMessage
*msg, char *dest)
This function has no effect and does not seem to be used for actively
waiting.

Fix various other style errors, reduce scope when possible, avoid
redundant writes, clarify operator priorities, etc.
2014-06-20 21:43:21 +02:00
Jman012 54e8986fcc Included assert.h for Messenger/DHT.c 2014-06-18 14:26:02 -07:00
Marc Schütz 4940c4c62b Const correctness for various packet callbacks 2014-06-13 22:55:15 +02:00
irungentoo 07936960df Astyle and fixes. 2014-06-10 18:35:55 -04:00
Marc Schütz 99d5940140 Const correctness in various interdependent files 2014-06-10 20:54:48 +02:00
irungentoo f2101a7d86 Toxcore closer to building correctly with gcc -std=c99. 2014-06-07 22:56:52 -04:00
irungentoo d87c772a7e Reduced size of get_node packets.
Sendback data is now 8 bytes.

This does not break the network as the sendback data can be any
size between 1 and 150 bytes.
2014-05-28 17:59:48 -04:00
irungentoo 82e38883a2 Merge branch 'mannol1-Multicalls' into multi-av 2014-05-25 12:27:48 -04:00
mannol a1f2a18ae4 Merge upstream and other stuff 2014-05-20 00:10:40 +02:00
irungentoo 0b2c44a708 It's bad to have more than one path with the same first node in the
same path array.
2014-05-14 12:08:30 -04:00
irungentoo a05ab89dbf pack/unpack nodes can now pack and unpack TCP nodes. 2014-05-13 14:53:59 -04:00
irungentoo a5ff3f8aff Nodes already in the DHT closelist should not be added to the toping list. 2014-05-13 12:14:09 -04:00