Commit Graph

193 Commits

Author SHA1 Message Date
irungentoo 6aaac706fa Fixed bug. 2015-06-28 22:15:29 -04:00
irungentoo f2be0a3c5d Fixed warning. 2015-06-25 22:18:34 -04:00
irungentoo 1434b319f3 Added code to net_crypto to calculate rtt. 2015-06-23 22:05:39 -04:00
irungentoo a0e783213b Lower the chances of disconnect when transferring files. 2015-06-21 21:36:10 -04:00
irungentoo 67df1ab7ce Made new_tcp_connections() not depend on dht. 2015-06-16 23:00:24 -04:00
irungentoo b072c692e7 Congestion control tweaks. 2015-05-31 20:10:38 -04:00
irungentoo 2ba076ac5c Load only secret key from tox save, not public key.
Calculate public key from it.
2015-05-21 20:39:47 -04:00
irungentoo 8760aba257 Some protocol efficiency improvements.
Reduced the amount of waste from dropped packets.
2015-05-17 18:41:02 -04:00
irungentoo e3ee9702fb Don't resend the same packet twice within a short timeframe. 2015-05-16 21:57:07 -04:00
irungentoo b5d712502b Fixed friends getting disconnected when transferring files. 2015-05-15 21:27:50 -04:00
irungentoo 84d4f95038 Fixed possible connection issue. 2015-05-04 08:40:21 -04:00
irungentoo 7d13f1928e Fixed some non standard C.
Replaced void * with uint8_t * in list.c
2015-05-01 15:13:38 -04:00
irungentoo b2c966a6e3 Fixed some warnings.
Removed useless include.
2015-04-30 20:51:43 -04:00
irungentoo 28de3f59fd Fixed some possible connection issues. 2015-04-24 20:39:45 -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 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 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 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
irungentoo b4fc0809a7 The only secure compare function currently needed is one to compare 2 public keys. 2015-04-18 13:13:29 -04:00
irungentoo 0886b4f7b8 Enable proxy support in TCP_connection. 2015-04-18 09:32:17 -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
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 083bfdd25a Use define instead of 0. 2015-04-04 19:21:51 -04:00
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 b4320e5fac File sending improvements.
Use correct double to integer conversion.
2015-03-12 18:56:33 -04:00
irungentoo 0d67598aed File transfer fixes and improvements. 2015-03-12 18:01:08 -04:00
irungentoo 62f8910fb7 Fixed memory leak. 2015-02-06 19:18:40 -05:00
irungentoo 57c22b1acb Fix memory leaks. 2015-02-06 19:10:16 -05:00
irungentoo 33f65929e3 Fixed bug where mutex would be destroyed but not recreated for new
net_crypto connection.

Only destroy mutex when it is realloced out.
2015-01-31 13:28:22 -05:00
irungentoo f463cb52a2 Code cleanups.
Rename array in Node_format from client_id to public_key.
2015-01-29 19:38:44 -05: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 c2e394c5c2 Fixed bug with auto tests and cleaned up the code a bit. 2014-12-26 20:12:51 -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 d7f5713277 Fixed crash when connection was killed during the packet callback. 2014-12-11 13:54:55 -05:00
irungentoo 475c157d68 Fixed possible threading issue. 2014-12-03 14:22:41 -05:00
irungentoo 4a27f61956 Fixed possible threading issue. 2014-12-03 14:02:43 -05:00
irungentoo d8a8e8b982 Fixed possible threading issues. 2014-12-03 13:58:50 -05:00
irungentoo 8deb032b2d Merge branch 'mutex-1' of https://github.com/mannol/toxcore 2014-11-29 16:09:24 -05:00
mannol e62ded3a6d More av cleanup 2014-11-29 13:42:19 +01:00
irungentoo a7a225d1d6 Fixed threading issues in toxcore. 2014-11-25 17:23:26 -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 9cd1102f4a Fixed some threading related issues in toxcore. 2014-11-14 11:03:05 -05:00
irungentoo ab42c91a49 Prevent connection ips from switching on LAN. 2014-11-11 08:03:11 -05:00
irungentoo_trip b877d1dc1c Merge branch 'master' of https://github.com/xor2003/toxcore
#
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-10-25 08:51:43 -07:00