diff options
Diffstat (limited to 'toxcore/TCP_connection.h')
-rw-r--r-- | toxcore/TCP_connection.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/TCP_connection.h b/toxcore/TCP_connection.h index 98f52f8d..07d7820c 100644 --- a/toxcore/TCP_connection.h +++ b/toxcore/TCP_connection.h | |||
@@ -34,14 +34,14 @@ | |||
34 | #define TCP_CONNECTIONS_STATUS_REGISTERED 1 | 34 | #define TCP_CONNECTIONS_STATUS_REGISTERED 1 |
35 | #define TCP_CONNECTIONS_STATUS_ONLINE 2 | 35 | #define TCP_CONNECTIONS_STATUS_ONLINE 2 |
36 | 36 | ||
37 | #define MAX_FRIEND_TCP_CONNECTIONS 4 | 37 | #define MAX_FRIEND_TCP_CONNECTIONS 6 |
38 | 38 | ||
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 | 42 | /* The amount of recommended connections for each friend |
43 | NOTE: Must be equal or smaller than MAX_FRIEND_TCP_CONNECTIONS */ | 43 | NOTE: Must be at most (MAX_FRIEND_TCP_CONNECTIONS / 2) */ |
44 | #define RECOMMENDED_FRIEND_TCP_CONNECTIONS 3 | 44 | #define RECOMMENDED_FRIEND_TCP_CONNECTIONS (MAX_FRIEND_TCP_CONNECTIONS / 2) |
45 | 45 | ||
46 | typedef struct { | 46 | typedef struct { |
47 | uint8_t status; | 47 | uint8_t status; |