Commit Graph

2357 Commits

Author SHA1 Message Date
irungentoo ac5e44debb Kill toxes when finished in tox_test to test tox_kill. 2014-06-06 09:50:19 -04:00
irungentoo 2cbfbef6e5 Fixed possible bug in list. 2014-06-06 09:00:12 -04:00
irungentoo a4ac1497a5 Fixed regression that made packet_send_rate increase even when
no data was transmitted.
2014-06-05 19:16:03 -04:00
irungentoo 0b3980fc73 Removed useless code 2014-06-05 18:26:25 -04:00
irungentoo 94a675f3e9 Optimized net_crypto UDP packet sorting using list. 2014-06-05 18:05:17 -04:00
irungentoo c6d885eede Merge branch 'mannol1-master' 2014-06-04 19:40:01 -04:00
mannol 11ca389e38 Fixed bug when passing invalid call index 2014-06-05 01:36:01 +02:00
irungentoo aa256d5858 Doubled minimum transfer rate.
File transfers got stuck because it was too low.
2014-06-04 17:55:07 -04:00
irungentoo dc6f46a240 Request packets are now sent with send_data_packet_helper().
This means all data packets are now padded the same way.
2014-06-04 17:35:38 -04:00
irungentoo b44b58cae4 Added data packet padding to toxcore.
Data sent as lossless or lossy is now padded with:
((MAX_CRYPTO_DATA_SIZE - data_length) % CRYPTO_MAX_PADDING) bytes
in order to reduce the possibility of length related attacks.

I set CRYPTO_MAX_PADDING to 8 but it can be changed anytime without
breaking network compatibility between tox cores.
2014-06-04 13:28:56 -04:00
irungentoo de5a33e852 Tweaked file transfers a bit. 2014-06-03 20:17:31 -04:00
irungentoo edd5ab3215 This might fix the issue that someone reported about tox no longer
cross compiling for windows.
2014-06-02 20:19:40 -04:00
irungentoo ba0f7974ba Added instructions on how to pause/resume file transfers. 2014-06-02 19:58:48 -04:00
irungentoo 4eecaf3ee6 Increased some timeouts to try to prevent disconnections when
transferring files on wireless networks.
2014-06-02 19:35:49 -04:00
irungentoo ad20432494 tox_test now checks if TOX_MAX_MESSAGE_LENGTH is correctly set. 2014-06-01 20:48:02 -04:00
irungentoo 1bad0b5eea Fixed TOX_MAX_MESSAGE_LENGTH define.
Removed some useless code from toxcore.

Astyled core code with new version of astyle.
2014-06-01 18:55:52 -04:00
irungentoo 7c1b801bd0 Fixed typo.
This typo doesn't actually cause any side effects unless you are like
stqism and have a C library that doesn't have mempcpy().
2014-06-01 18:33:10 -04:00
irungentoo 9684339ab9 Merge branch 'mannol1-master' 2014-05-31 15:36:37 -04:00
mannol fa203aa1ad We gon let it burn burn burn 2014-05-31 21:02:50 +02:00
irungentoo a62a61f9f2 Merge branch 'nurupo-pow-fix' 2014-05-31 13:26:26 -04:00
Maxim Biro 24c6db5968 Fixed the undefined reference to pow error 2014-05-31 13:16:08 -04:00
mannol d7c1157375 Fixed byte order and removed log functions from misc_tools 2014-05-31 17:27:22 +02:00
irungentoo 89bf08287d Renamed tox_do_run_interval to tox_do_interval.
tox_do_interval now returns a time in ms based on how much action
is going on in net_crypto.
2014-05-30 23:01:17 -04:00
irungentoo ab44440f37 Merge branch 'master' of https://github.com/mannol1/ProjectTox-Core into mannol1-master 2014-05-30 19:11:28 -04:00
mannol 2ebefb85b7 Fixed potential memleaks 2014-05-31 00:29:43 +02:00
irungentoo 0e814904e4 Replaced tox_wait* functions with tox_do_run_interval().
Build system fixes.
2014-05-30 13:20:36 -04:00
irungentoo 6b152d2bac Merge branch 'master' of https://github.com/mannol1/ProjectTox-Core into mannol1-master 2014-05-29 18:15:50 -04:00
mannol e0ed51b2dc Apparently i forgot the most important thing... 2014-05-30 00:02:47 +02:00
mannol 08ddce44d8 Rearranged mutex actions. Now allow calling av actions from callbacks 2014-05-29 23:57:58 +02:00
irungentoo 1963a306cc Merge branch 'master' of https://github.com/mannol1/ProjectTox-Core into mannol1-master 2014-05-29 16:55:46 -04:00
mannol 20ab02cf4b Double-free on timeout fix 2014-05-29 22:51:45 +02:00
irungentoo ec25f64407 Fixed Tox sync. 2014-05-28 18:27:35 -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 e9d8eddf26 Merge branch 'Ansa89-CLOCK_MONOTONIC_RAW-fix2' 2014-05-28 08:39:20 -04:00
Ansa89 184e71ede2 Check for CLOCK_MONOTONIC_RAW
This should fix irungentoo/ProjectTox-Core#879 (and it's better than irungentoo/ProjectTox-Core#883).
2014-05-28 14:34:17 +02:00
irungentoo 68511f4e3f Merge branch 'stqism-master' 2014-05-27 08:54:47 -04:00
Sean Qureshi 9528f7c187 Fixed --disable-rt, link against -lm 2014-05-26 22:45:51 -07:00
irungentoo 42675ed215 Fixed possible issue. 2014-05-26 14:06:21 -04:00
irungentoo 41af0e4547 Merge branch 'net' of https://github.com/notsecure/ProjectTox-Core into notsecure-net 2014-05-26 13:36:58 -04:00
notsecure 5346af8067 file transfer fixes
-removed rate limit
-send rate no longer gets reset on local/LAN connections
2014-05-26 13:33:19 -04:00
irungentoo da3b6a04a9 Fixed tox_get_num_online_friends function.
Removed useless code.
2014-05-26 13:22:53 -04:00
irungentoo 0239f79f23 Friend status is now set right before calling the tox_callback_user_status callback. 2014-05-26 13:15:00 -04:00
irungentoo 2a719f3168 Fixed issue. 2014-05-25 12:45:09 -04:00
irungentoo 9a4659e575 Replaced randombytes_salsa20_random_buf() with randombytes() in av tests. 2014-05-25 12:28:59 -04:00
irungentoo 82e38883a2 Merge branch 'mannol1-Multicalls' into multi-av 2014-05-25 12:27:48 -04:00
irungentoo 9d53bc5d1d This function only needs to be ran once per second when epoll is
enabled because all it does then is send pings and check timeouts
which are calculated by the second.
2014-05-24 22:20:24 -04:00
mannol 08ca08dcd9 Small fix 2014-05-24 16:40:17 +02:00
mannol 565e95301f Tests works and some fixes 2014-05-24 16:02:01 +02:00
irungentoo f295125e41 Merge branch 'net' of https://github.com/notsecure/ProjectTox-Core into notsecure-net 2014-05-23 08:18:04 -04:00
notsecure e3bc591b3b more conjestion control
needs testing
2014-05-22 20:19:19 -04:00