Commit Graph

3570 Commits

Author SHA1 Message Date
mannol
cbb8fdd4ea Add extern "C" 2015-04-20 11:21:55 +02:00
irungentoo
4a987bf751
Removed useless stuff. 2015-04-19 10:34:13 -04:00
irungentoo
ef5ef8ef36
If connection is directly connected, don't fallback to sending with tcp
if sending directly fails.
2015-04-19 09:49:24 -04:00
irungentoo
1a2fa1b7e6
Some changes to net crypto.
Should fix certain connection issues that sometimes happen.

The dht public key of the peer must be known to create the connection.

If the dht pk of the peer changes when a connection is active, it is
killed to make way for the new one.
2015-04-18 22:14:37 -04:00
mannol
3a12a3b329 Update comment 2015-04-18 19:15:46 +02:00
irungentoo
b4fc0809a7
The only secure compare function currently needed is one to compare 2 public keys. 2015-04-18 13:13:29 -04:00
mannol
eb9f4ad592 Fix toxav callback 2015-04-18 19:08:18 +02:00
irungentoo
453548f181
Some messenger fixes. 2015-04-18 11:15:59 -04:00
irungentoo
eb0f50d297
Send oob packets to all relays tied to the connection.
Don't fallback to sending oob packets if pipe for normal connection is clogged.
2015-04-18 10:27:19 -04:00
irungentoo
0886b4f7b8
Enable proxy support in TCP_connection. 2015-04-18 09:32:17 -04:00
irungentoo
863b6d6f4c
If connected tcp relay becomes disconnected, try to reconnect once. 2015-04-18 09:24:39 -04:00
irungentoo
c20062e633
Fixed some tox.h comments. 2015-04-17 20:55:29 -04:00
irungentoo
2a2390b5e7
Assign some TCP relays for use with onion packets and keep them connected
for that purpose.
2015-04-17 20:50:05 -04:00
mannol
d1fd3e36a6 Updated with upstream 2015-04-17 19:19:58 +02:00
mannol
969367b72a Update latest 2015-04-17 15:55:02 +02:00
irungentoo
92a708578f
Properly share connected relays and connect to the friend correctly
with them.
2015-04-16 20:39:09 -04:00
irungentoo
de8956267c
Some fixes and improvements.
Fixed that the first TCP relays in the list would never be disconnected
even if they were useless.
2015-04-16 19:19:21 -04:00
irungentoo
7d466fda2c
Only increase connection lock if connection is actively used to connect
to a friend.

Give the connection a couple seconds (TCP_CONNECTION_ANNOUNCE_TIMEOUT) to
connect itself to the friend before killing it if we are already connected to
enough total relays.
2015-04-16 15:17:47 -04:00
irungentoo
565d73713a
Store TCP relays tied to friend and reconnect to some when reconnecting. 2015-04-16 14:17:57 -04:00
irungentoo
0bc3730387
Made net_crypto use TCP_connection.
TODO:
-Reconnection.
-If UDP connction is good, connect to less TCP relays.
-Store some TCP relays in friend connection associated to each friend?
2015-04-15 20:53:21 -04:00
irungentoo
f8087887fe
If we know the pk that the oob packet was sent from treat it as a normal data packet. 2015-04-15 20:51:36 -04:00
mannol
da6c17222f The pretty basic adaptive bitrate is *working* 2015-04-16 02:00:34 +02:00
irungentoo
be014f9e3c
Fixed memory leak in TCP connection. 2015-04-15 19:52:13 -04:00
irungentoo
34265616bd
Some work done on TCP_Connection.
The main thing left to do is the reconnect if we get disconnected part.
2015-04-15 19:47:57 -04:00
irungentoo
2ff39d3d54
Fixed windows warning. 2015-04-14 20:56:16 -04:00
irungentoo
4b29aff04a
TCP connection mostly done.
Only thing left is testing and integrating it in net_crypto.
2015-04-13 19:29:45 -04:00
irungentoo
d05e39274c
Make tox_new return TOX_ERR_NEW_PORT_ALLOC for all socket related errors. 2015-04-13 08:32:33 -04:00
mannol
2465f486ac Started custom RTCP 2015-04-13 01:45:53 +02:00
irungentoo
42d8be4ce9
Added link to multiple nospam PR. 2015-04-12 16:52:24 -04:00
irungentoo
4ea4a5e3f3
Merge branch 'patch-2' of https://github.com/GrayHatter/toxcore 2015-04-12 16:50:01 -04:00
irungentoo
39b66c2180
Merge branch 'rtobsd' of https://github.com/carbin/toxcore 2015-04-12 16:34:03 -04:00
irungentoo
405558258d
Enable SO_REUSEADDR on TCP server socket. 2015-04-11 20:24:39 -04:00
mannol
b2d88a4544 Random fixes 2015-04-11 02:07:54 +02:00
irungentoo
11b750c745
More work on TCP connection.
Only a couple things left to add.
2015-04-10 19:50:47 -04:00
irungentoo
4e1f49955a
Some more work on TCP connection. 2015-04-09 20:59:33 -04:00
irungentoo
3c87c84223
tox_hash fix. 2015-04-09 09:50:24 -04:00
irungentoo
c3a6c5b92e
Small change to TCP test. 2015-04-08 20:50:19 -04:00
mannol
4fa31d14cf Make it possible to decode mono audio with stereo decoder 2015-04-09 02:43:13 +02:00
Carlin
7db063e93d do not check for librt on OpenBSD
clock_gettime is in OpenBSD's libc
2015-04-09 03:57:07 +12:00
irungentoo
3e9c4e80f0
TCP_connection started.
The plan is to move some of the TCP stuff from net_crypto into it.
2015-04-07 20:19:30 -04:00
mannol
9c003c9dd2 Video works now 2015-04-08 01:00:19 +02:00
mannol
bf9f7e2ae8 Video works but there is one deadlock left and video replay is slow 2015-04-07 01:24:36 +02:00
irungentoo
cf436fde12
Fixed onion test. 2015-04-06 15:57:23 -04:00
GrayHatter
27cd42a4c1 Update the toxcore todo list
added markdown formatting as well!
2015-04-06 11:37:29 -07:00
irungentoo
db931f0aa9
Fixed typo. 2015-04-05 20:55:26 -04:00
irungentoo
083bfdd25a
Use define instead of 0. 2015-04-04 19:21:51 -04:00
irungentoo
b279a4a883
Fixed offline callback being called when connection timed out and died
without ever actually being connected.
2015-04-03 17:20:20 -04:00
irungentoo
62dad7b3f7
File transfer fixes.
Don't allow non transferring files to be paused and then resumed
starting the file transfer.
2015-04-03 17:16:36 -04:00
irungentoo
6315ff2362
Attempted fix of on off UDP connection causing toxcore to disconnect from
the friend.
2015-04-03 14:29:58 -04:00
irungentoo
5593d7318a
Merge branch 'last_online' of https://github.com/JFreegman/toxcore 2015-04-02 22:06:00 -04:00