Commit Graph

3402 Commits

Author SHA1 Message Date
mannol
64037017cc Fix bug 2015-05-12 22:16:00 +02:00
mannol
73fbc22961 Fixed inconsistencies 2015-05-07 23:14:03 +02:00
mannol
eb6e8aa290 Fixed* api comments and some bugs 2015-05-01 22:29:25 +02:00
mannol
5c4f275686 Merge branch 'new_api' of github.com:mannol/toxcore into new_api 2015-04-30 00:40:53 +02:00
mannol
b2b11f0fba Added many test and fixed various warnings 2015-04-30 00:40:30 +02:00
mannol
d259fc1116 Merge pull request #2 from krobelus/new_api
Fixed typo
2015-04-29 10:51:39 +02:00
krobelus
45c45841cf Fixed typo 2015-04-29 09:21:28 +02:00
mannol
d8c34f4ffa Merge branch 'master' into new_api 2015-04-29 01:02:47 +02:00
mannol
9bba7a0434 Done 2015-04-29 01:01:25 +02:00
irungentoo
3454bc7da7
Merge branch 'master' of https://github.com/worfox/toxcore 2015-04-28 16:49:14 -04:00
worfox
b295bb70ec Fixed 404ing link to TODO in README.md 2015-04-28 21:25:44 +02:00
mannol
e4a020333d working av new api 2015-04-28 00:55:57 +02:00
irungentoo
69e3e5f3a4
Move LAN discovery from Messenger to friend_connection. 2015-04-27 16:13:04 -04:00
mannol
27e0254a98 Almooooooost 2015-04-27 00:15:57 +02:00
irungentoo
6a1efc32e6
Fixed one case of the connection callback not getting called on reconnection. 2015-04-26 12:19:13 -04:00
irungentoo
422e74424a
Switched tox.h to the dsl generated one.
Added input file to generate it.

Moved the astyle stuff to the astyle directory in other/.
2015-04-25 20:39:13 -04:00
mannol
144fc94d69 Almost done 2015-04-26 00:31:03 +02:00
irungentoo
28de3f59fd
Fixed some possible connection issues. 2015-04-24 20:39:45 -04:00
irungentoo
9d1acdddd5
Merge branch 'patch-4' of https://github.com/urras/toxcore 2015-04-24 11:48:21 -04:00
irungentoo
3e256e429f
Fixed a couple possible issues with the friend connection callback.
A TCP callback could be received when only a UDP connection was present.

Increased a UDP timeout to make it less likely to time out and switch to TCP.
2015-04-24 11:09:42 -04:00
irungentoo
e24d57d467
Fixed some warnings. 2015-04-23 20:59:08 -04:00
irungentoo
fc549805c1
Fixed a case where the tcp_data_callback would get called when the
connection only worked 1 way.
2015-04-22 09:45:33 -04:00
irungentoo
390f94bfd5
Fixed possible bug. 2015-04-22 09:32:36 -04:00
irungentoo
50b81dc669
Fixed possible bug. 2015-04-22 09:29:16 -04:00
irungentoo
db0438644c
Fixed possible issue. 2015-04-22 09:10:57 -04:00
irungentoo
3bd4f5902c
Move the send tcp relay packet from Messenger to friend connection. 2015-04-21 20:12:24 -04:00
mannol
1bfd93e64a Finished refactoring 2015-04-22 02:09:37 +02:00
irungentoo
e1a98987ff
Only allocate some TCP connections for onion use when needed.
Added a function to enable and disable TCP onion connections.
2015-04-21 15:30:41 -04:00
irungentoo
0a0ed45202
If a net_crypto connection isn't using the TCP relays, disconnect from them.
TCP_connections can now be put to sleep, a state where they store what they
were connected to without being connected and then resumed from sleep.
2015-04-21 14:30:39 -04:00
irungentoo
e4ae993a80
Some small fixes.
Increased interval between onion key changes to 2 hours.
2015-04-20 20:40:32 -04:00
mannol
3fd0ee5f08 Final touchups 2015-04-21 02:31:12 +02:00
Urras
41995efb4d
Fix markdown formatting 2015-04-20 09:33:21 -04:00
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