diff options
author | irungentoo <irungentoo@gmail.com> | 2015-04-16 19:19:21 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-04-16 19:19:21 -0400 |
commit | de8956267c06444443e43980a53e7ded49ee4d3a (patch) | |
tree | ad5c86ff67eb71c9ba92ede1eb7aa7d0ab391147 /toxcore/TCP_connection.h | |
parent | 7d466fda2cb7108fb203e4e1b94f88187597a014 (diff) |
Some fixes and improvements.
Fixed that the first TCP relays in the list would never be disconnected
even if they were useless.
Diffstat (limited to 'toxcore/TCP_connection.h')
-rw-r--r-- | toxcore/TCP_connection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/TCP_connection.h b/toxcore/TCP_connection.h index 10c7198e..98f52f8d 100644 --- a/toxcore/TCP_connection.h +++ b/toxcore/TCP_connection.h | |||
@@ -39,6 +39,10 @@ | |||
39 | /* Time until connection to friend gets killed (if it doesn't get locked withing that time) */ | 39 | /* Time until connection to friend gets killed (if it doesn't get locked withing that time) */ |
40 | #define TCP_CONNECTION_ANNOUNCE_TIMEOUT (TCP_CONNECTION_TIMEOUT) | 40 | #define TCP_CONNECTION_ANNOUNCE_TIMEOUT (TCP_CONNECTION_TIMEOUT) |
41 | 41 | ||
42 | /* The amount of recommended connections for each friend | ||
43 | NOTE: Must be equal or smaller than MAX_FRIEND_TCP_CONNECTIONS */ | ||
44 | #define RECOMMENDED_FRIEND_TCP_CONNECTIONS 3 | ||
45 | |||
42 | typedef struct { | 46 | typedef struct { |
43 | uint8_t status; | 47 | uint8_t status; |
44 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; /* The dht public key of the peer */ | 48 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; /* The dht public key of the peer */ |