irungentoo
87fb1e4119
Adjusted onion timeouts.
2014-12-29 22:15:16 -05:00
irungentoo
895f269285
Onion client improvements.
...
Put bootstrap nodes in a separate list than known good nodes.
2014-12-25 15:04:31 -05:00
irungentoo
15077f2981
Improved detection of dead paths.
2014-12-22 22:53:17 -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
irungentoo
057f08fb13
Tox clients now should show they are offline with much better precision.
2014-11-20 21:30:16 -05:00
irungentoo
3b14bbf78e
This might fix some peer finding issues.
2014-11-02 21:00:22 -05:00
irungentoo
1e44edaf8f
Increasing max number of onion paths might increase initial connection
...
speed.
2014-09-27 18:48:24 -04:00
irungentoo
c618263acd
Removed useless code from onion_client.
...
Astyled.
2014-09-26 20:43:59 -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
92dd71cdba
Speeded up onion friend finding.
2014-08-18 20:22:51 -04:00
irungentoo
f0b2cd7ad2
Function to save path nodes.
...
Forgot to commit it with before last commit.
2014-08-14 17:34:42 -04:00
irungentoo
5376d40f54
tox_isconnected() now works on TCP only.
2014-08-14 15:41:10 -04:00
irungentoo
f4b10c99ff
Tox should now work on TCP only networks.
...
Coming soon: a function to disable UDP.
2014-08-13 20:47:56 -04:00
irungentoo
bb2a6cbbe2
Added path_nodes array and add_path_node() function.
2014-08-08 22:07:28 -04:00
Marc Schütz
9762089bad
Const-correctness for onion_client.c
2014-06-30 21:41:03 +02:00
Marc Schütz
8391417f61
Const correctness for toxcore/Messenger.c and related files
2014-06-30 21:26:50 +02:00
Marc Schütz
5a34595f58
Const correctness in toxcore/onion_client.c
2014-06-13 22:18:18 +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
116f3d46e8
Removed now useless code.
2014-05-19 10:57:56 -04:00
irungentoo
e87929e869
TCP branch now ready for start of real testing.
...
Friends can now exchange TCP relay addresses so that they can
connect together.
Currently all bootstrap nodes are treated as TCP relays.
2014-05-18 10:55:38 -04:00
irungentoo
3aef4711ce
Added function to set the DHT public key in onion_client.
2014-05-17 13:16:58 -04:00
irungentoo
a5da6df144
Net_crypto can now handle packets sent as TCP OOB packets.
...
Added timestamp to know which DHT public key is good in case
onion_client and net_crypto report different ones.
2014-05-17 12:33:22 -04:00
irungentoo
8783bea25e
Use ping_array to store onion announce information instead of sending
...
over a huge cookie.
This reduces the size of the onion announce packets by 100 bytes.
2014-05-12 14:39:12 -04:00
irungentoo
a26ced5fcb
Merge branch 'master' into TCP
2014-05-08 18:26:01 -04:00
irungentoo
db78c99ff4
Messenger now works with the new net_crypto api.
...
Added callbacks in net_crypto for the data packets and status changes.
Added onion_getfriend_DHT_pubkey to onion_client.
Net crypto isn't done yet so connections between toxes are not
lossless, this means file sending is broken hence why the test fails.
2014-05-02 21:25:23 -04:00
irungentoo
384750af8c
Major cleanups.
...
Fixed circular dependency between DHT and net_crypto: DHT no longer
depends on net_crypto.
Moved the crypto request packets functions to crypto core and DHT.
Cleaned up/added some defines that can be used to get the true maximum
length of things like the friends request message.
MAX_DATA_SIZE has been replaced in most places by more appropriate defines.
2014-04-23 11:35:40 -04:00
irungentoo
9c6a8432ce
Crypto related cleanups.
...
Moved Bunch of functions from net_crypto to crypto_core.
decrypt_data_fast and decrypt_data_symmetric were the same thing
therefore, removed decrypt_data_fast.
Replaced all the crypto_secretbox_* defines with the equivalent
crypto_box_* one.
New define: crypto_box_KEYBYTES that is equal to
crypto_box_BEFORENMBYTES.
2014-04-21 16:51:36 -04:00
Carlos E. Garcia
cf33c2f9ad
multiple spelling fixes
2014-04-16 12:14:44 -04:00
irungentoo
d0e3712924
Reduced the number of useless onion packets sent.
2014-03-09 20:51:04 -04:00
irungentoo
a251e71a97
Some small changes/fixes.
...
Changed some timeouts and made cryptopacket_handle return correctly.
2014-03-03 20:46:34 -05:00
irungentoo
602c71bc17
Made onion paths expire eventually client side.
2014-03-03 11:23:46 -05:00
irungentoo
16b93e823b
Very simple fix to lower bandwidth usage at startup.
2014-02-28 21:14:55 -05:00
irungentoo
cebae58ddc
Major speed/cpu usage/bandwidth improvements to onion.
2014-02-26 12:18:47 -05:00
irungentoo
bba2027e7b
Onion now eventualy deletes friends from the DHT search.
...
This should improve long term bandwidth usage by a bit.
2014-02-13 17:54:09 -05:00
irungentoo
980318a8c6
Adjusted some timeouts.
2014-01-21 07:51:30 -05:00
irungentoo
9aa94bfe1d
Fakeid packets are now also sent via the DHT.
2014-01-20 12:23:10 -05:00
irungentoo
639b37de67
Small protocol change for more replay attack prevention.
...
see the changes to Prevent_Tracking.txt
2014-01-19 13:53:24 -05:00
irungentoo
cdcb8b8600
Added no_replay and added some things to the docs.
2014-01-19 09:44:33 -05:00
irungentoo
99ae23813b
Some optimizations and fixes.
2014-01-18 18:35:28 -05:00
irungentoo
cd2474a2f6
Incorporated onion into Tox.
...
Fixed a couple of issues related to that.
2014-01-17 13:35:40 -05:00
irungentoo
aff78b159c
onion_client almost done.
2014-01-15 20:47:26 -05:00
irungentoo
a49a09f94b
Onion data packets can now be handled in onion_client.
...
oniondata_registerhandler(...) can be used to register different packet
types to handle them and send_onion_data(...) can be used to send these
packets.
2014-01-14 14:20:42 -05:00
irungentoo
878762a8e4
Added functions to add/remove friends in onion_client.
...
Added a tiny optimization to net_crypto.
2014-01-13 20:11:54 -05:00
irungentoo
675487936e
Some work done in onion_client.
2014-01-12 20:56:39 -05:00
irungentoo
dac7fe0338
Some work done on onion_client
2014-01-11 21:19:50 -05:00
irungentoo
94b5e55189
Some work on onion_client done.
2014-01-10 23:04:39 -05:00
irungentoo
83e9890d6b
Some work done on the client part.
2014-01-09 20:55:45 -05:00
irungentoo
5e6e503201
Added shell of onion_client.c
2014-01-07 19:38:37 -05:00