irungentoo
11e8e8bd3a
When link can't send packets anymore, stop the request chunk callback.
...
Removed time variable in packet struct and replaced it with sent
variable.
2015-03-13 16:51:41 -04:00
irungentoo
6e0b807f09
Attempted fix of Tox disconnecting during file transfers by tweaking
...
some congestion control numbers.
2015-01-17 21:27:38 -05:00
irungentoo
0fff7d9994
Tox should work better on TCP only when some people have broken TCP
...
nodes and don't update them.
Paths now try to use the same TCP node for their entire lifetime.
2015-01-16 21:33:11 -05:00
irungentoo
75b7e0dd46
Send less net_crypto packets.
...
Increased interval for sending packets that include cookie request
packets, handshake packets and request packets.
2015-01-07 21:43:58 -05:00
irungentoo
fe57a72659
Merge branch 'http-proxy-feature' of https://github.com/nurupo/InsertProjectNameHere
2014-12-26 19:38:19 -05:00
Maxim Biro
e9bf38499e
Some refactoring of proxy code
2014-12-21 19:59:00 -05:00
irungentoo
f9f236248d
Some optimizations on how TCP relays are used.
2014-12-15 15:21:39 -05:00
irungentoo
7425a0dd09
Increased max TCP connections.
2014-12-15 14:14:22 -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
ab42c91a49
Prevent connection ips from switching on LAN.
2014-11-11 08:03:11 -05:00
irungentoo
1f4b061a4c
Added some comments to net_crypto.h
2014-11-03 20:50:18 -05:00
irungentoo
e322926646
File transfer speed should jump up a bit faster.
2014-10-18 21:52:39 -04:00
irungentoo
03d6f95713
Remove timestamp from set_connection_dht_public_key().
2014-09-26 21:22:07 -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
729a511e82
Lowered minimum transfer speed.
2014-09-18 18:34:52 -04:00
cgar
2bb2bc4163
spelling corrections
2014-09-09 20:31:37 -04:00
irungentoo
0f023d912c
Removed useless code.
2014-08-29 21:39:14 -04:00
irungentoo
69725e8e74
Lossless crypto packets can now be sent without the congestion control applying to them.
2014-08-29 21:32:05 -04:00
irungentoo
33b4268f7e
Added function to check if packet sent with net_crypto was received.
2014-08-27 14:37:28 -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
78dd2234e0
Added basic socks5 proxy support to TCP client.
2014-08-14 14:31:26 -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
d270cf550a
Fixed possible threading issues.
...
send_lossy_cryptpacket() can get called from another thread meaning
the connection can be killed while the packet is sending.
2014-07-31 12:46:36 -04:00
notsecure
e2d388b137
fix send rate going up when peer disconnects
2014-07-10 10:34:38 -04:00
irungentoo
6d4fdb3597
Merge branch 'const_correctness' of https://github.com/schuetzm/ProjectTox-Core
2014-07-02 15:41:59 -04:00
Marc Schütz
aba594d1f8
Const-correctness for toxcore/net_crypto.c
2014-06-30 21:26:51 +02:00
Marc Schütz
8391417f61
Const correctness for toxcore/Messenger.c and related files
2014-06-30 21:26:50 +02:00
irungentoo
8f7638da5c
Core should no longer attempt to send data faster than the links can
...
carry it.
2014-06-29 20:46:06 -04:00
irungentoo
a058a17273
Fixed some more possible issues with file transfers/conjestion control.
2014-06-25 15:04:34 -04:00
irungentoo
2740099da0
pthread is now a core dependency instead of just a toxav dependency.
...
Fixed possible thread bug with sending A/V packets.
TODO: eventually make toxcore thread safe.
2014-06-12 11:15:20 -04:00
Marc Schütz
99d5940140
Const correctness in various interdependent files
2014-06-10 20:54:48 +02:00
irungentoo
7adefb6e6b
Renamed list functions to fix conflict issue on certain machines.
2014-06-06 13:23:21 -04:00
irungentoo
94a675f3e9
Optimized net_crypto UDP packet sorting using list.
2014-06-05 18:05:17 -04: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
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
4eecaf3ee6
Increased some timeouts to try to prevent disconnections when
...
transferring files on wireless networks.
2014-06-02 19:35:49 -04: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
notsecure
e3bc591b3b
more conjestion control
...
needs testing
2014-05-22 20:19:19 -04:00
notsecure
1e4eb83880
improved conjestion control
2014-05-21 20:49:37 -04:00
irungentoo
f818c1a197
Added functions to send and receive lossy encrypted packets over
...
the Tox connection.
A/V should now work over TCP.
2014-05-21 15:28:14 -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
9d4947ffa5
add_tcp_relay_peer() can be used to add relays that we know that
...
peer is connected to.
Some cleanups/fixes.
2014-05-17 21:30:52 -04:00
irungentoo
60ed415a5a
Added a function to get the DHT public key stored in net_crypto.
...
The DHT public keys in onion_client/net_crypto are synced and set
to whichever is more recent.
Tox peers now try to connect directly even when already connected
with a TCP relay.
2014-05-17 14:56:20 -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
454cadb91c
Changed cookie/cookie request packet.
...
Cookie now contains the dht public key of the peer which makes
more sense than including the real public key of the reciever.
It means we no longer have to rely entirely on onion_client to
find the dht public key of the other peer.
2014-05-17 09:21:07 -04:00
irungentoo
86c191c2d4
Fixed typo.
2014-05-16 17:50:26 -04:00
irungentoo
3ab05b6e2e
Some TCP code added to net_crypto.
...
add_tcp_relay() can be used to connect to some TCP relays.
If both Toxes are connected to the same TCP relay(s) and create a
connection on which they set the others dht_public_key, they will
connect.
2014-05-16 17:29:50 -04:00