Commit Graph

15 Commits

Author SHA1 Message Date
Jfreegman 684ddd7667 Clarifications for the TCP API 2015-06-28 21:36:35 -04:00
irungentoo 67df1ab7ce Made new_tcp_connections() not depend on dht. 2015-06-16 23:00:24 -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 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 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 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 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 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 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 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