Commit Graph

2753 Commits

Author SHA1 Message Date
irungentoo
0fe6d84768
Removed useless line. 2014-08-16 22:21:47 -04:00
irungentoo
9134048bb5
Some thread safety related fixes to TCP connections in net_crypto.
Added a recursive mutex to fix possible thread issues when the A/V
thread sends data at the same time as the main thread.
2014-08-16 22:09:29 -04:00
irungentoo
162a900660
New congestion control algorithm.
This new congestion control algorithm uses the increase in size
of the send queue to regulate how fast it sends data.

When tweaked it should work better than the old one.
2014-08-16 18:14:47 -04:00
irungentoo
bb1bb58352
Set socket family to family of proxy when using proxy. 2014-08-15 12:06:13 -04:00
irungentoo
7557b92fc9
Modified tox_bootstrap_from_address() function.
PORT IS NO LONGER PASSED IN NETWORK BYTE ORDER.

Removed useless ipv6enabled parameter.
2014-08-14 19:01:21 -04:00
irungentoo
ef78169842
Added disabling of UDP and basic SOCKS5 proxy support to public API.
tox_new() now takes a Tox_Options struct as argument.

If a NULL pointer is passed to that struct, defaults are used.
2014-08-14 18:34:20 -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
cb815f7584
When getting disconnected from good relay, try to reconnect. 2014-08-14 17:29:50 -04:00
irungentoo
fb9fc81a35
Save some path nodes to speed up joining network on pure TCP. 2014-08-14 16:56:29 -04:00
irungentoo
5376d40f54
tox_isconnected() now works on TCP only. 2014-08-14 15:41:10 -04:00
irungentoo
1298932deb
UDP can now be disabled.
new_messenger() now takes an options struct as an argument.
2014-08-14 15:27:34 -04:00
irungentoo
dbab15cf0c
Remove useless code. 2014-08-14 14:43:01 -04:00
irungentoo
78dd2234e0
Added basic socks5 proxy support to TCP client. 2014-08-14 14:31:26 -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
450ad2dd34
Tox now closer to working on TCP only networks.
Use TCP paths when UDP is not connected.

Made some code depend less on the UDP only DHT.
2014-08-13 20:29:02 -04:00
irungentoo
6311bf8747
If the path is a TCP one, the onion packet is sent with TCP. 2014-08-13 10:19:09 -04:00
irungentoo
bc4fe2c80d
Decreased maximum onion_test test time. 2014-08-13 10:15:25 -04:00
irungentoo
70d338703d
Added function to create onion packets to send via TCP. 2014-08-13 06:41:35 -04:00
irungentoo
19b07f7e80
Fixed bug that led to increased bandwidth usage. 2014-08-12 20:56:46 -04:00
irungentoo
db655c77f8
Onion packets can now be received via TCP. 2014-08-12 16:20:46 -04:00
irungentoo
2c7654bd9a
No longer rely on source ip to get the path the packet was sent with. 2014-08-12 13:01:28 -04:00
irungentoo
e6f21d0524
Added functions to receive and send onion packets via TCP to net_crypto.c 2014-08-11 20:47:56 -04:00
irungentoo
5a22fbf4bf
Some code refactoring to make passing onion packets through TCP easier. 2014-08-11 18:20:13 -04:00
irungentoo
f83fcbb13c
Added length check to onion_send_1(). 2014-08-11 15:48:33 -04:00
irungentoo
0faa2fbad2
Fixed bug. 2014-08-10 14:15:39 -04:00
irungentoo
f6955f2f3e
Merge branch 'remove-sort_list' of https://github.com/pyruvate/toxcore 2014-08-09 17:35:23 -04:00
irungentoo
56624c0af8
Onion paths creation no longer dependent on DHT only. 2014-08-09 15:17:00 -04:00
pyruvate
354f08ec3b Tests fix for an original behavior for duplicates 2014-08-09 13:31:40 +03: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
pyruvate
a460b9fbd0 Added tests for addto_lists function 2014-08-09 11:33:20 +03:00
pyruvate
ec9082f2c3 Remove DEFTESTCASE and DEFTESTCASE_SLOW redefinitions 2014-08-09 11:33:20 +03:00
irungentoo
bb2a6cbbe2
Added path_nodes array and add_path_node() function. 2014-08-08 22:07:28 -04:00
irungentoo
545cc91662
Increased ping interval time to decrease bandwidth usage.
This should not increase the time it takes for people to find themselves.
2014-08-07 16:58:17 -04:00
irungentoo
a679756eca
crypto speed test is pretty useless, removed it. 2014-08-06 20:56:27 -04:00
irungentoo
2ef89f6ae0
memset call to zero when killing call. 2014-08-05 20:58:49 -04:00
irungentoo
b0bdc81426
Merge branch 'fr0stycl34r-patch-1' 2014-08-05 19:52:37 -04:00
Ben Praeger
0e70b7cf7d Update readme 2014-08-05 15:20:01 -04:00
irungentoo
69c8da64cf
The receiver of a file now needs to confirm that he did receive it
correctly.

This should fix an issue that happened when both clients got
disconnected when the file was almost finished sending. The sender
would show that the file had been sent successfully when it had not.

See the modifications to tox.h
2014-08-04 15:18:18 -04:00
irungentoo
aaaeac8f3d
Merge branch 'master' of https://github.com/mannol1/toxcore
Conflicts:
	toxav/toxav.c
2014-08-04 13:49:53 -04:00
irungentoo
d4218dcd61
Set pointer to NULL when freeing to fix issue. 2014-08-04 12:40:18 -04:00
irungentoo
9445b40fb5
Fixed threading bug. 2014-08-04 12:09:03 -04:00
irungentoo
02ed20dc39
Merge branch 'notsecure-split-video' 2014-08-04 12:08:43 -04:00
notsecure
d3e66d73a7 one decoding thread per call 2014-08-04 09:50:32 -04:00
mannol
d08d032368 Update with upstream 2014-08-04 00:15:19 +02:00
mannol
733c509582 Fix some toxav warnings 2014-08-04 00:15:00 +02:00
irungentoo
401982008e
Merge branch 'JFreegman-debug' 2014-08-03 16:16:39 -04:00
Jfreegman
82c40b9c8a
remove unneeded printf's/prevent stdout spam 2014-08-03 15:56:09 -04:00
irungentoo
07833b6731
Increase dequeue queue size to 16 to prevent stuttering. 2014-08-02 20:45:39 -04:00
irungentoo
0719a4296e
Merge branch 'mannol1-master' 2014-08-02 11:29:27 -04:00
mannol
6c1ac97da9 Added userdata pointer to audio/video callbacks 2014-08-02 01:09:33 +02:00