diff options
author | irungentoo <irungentoo@gmail.com> | 2015-04-24 11:09:42 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-04-24 11:09:42 -0400 |
commit | 3e256e429f6b2d3b8d3b49c1beac62f3b2f138ee (patch) | |
tree | d9190ef9e206a754e805a29919cf5707b9ec2cac /toxcore/TCP_connection.h | |
parent | e24d57d46745a4f646b3efd5df5281bbf762a0be (diff) |
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.
Diffstat (limited to 'toxcore/TCP_connection.h')
-rw-r--r-- | toxcore/TCP_connection.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/TCP_connection.h b/toxcore/TCP_connection.h index 3f7b616d..29fbdee0 100644 --- a/toxcore/TCP_connection.h +++ b/toxcore/TCP_connection.h | |||
@@ -186,6 +186,11 @@ int kill_tcp_connection_to(TCP_Connections *tcp_c, int connections_number); | |||
186 | */ | 186 | */ |
187 | int set_tcp_connection_to_status(TCP_Connections *tcp_c, int connections_number, _Bool status); | 187 | int set_tcp_connection_to_status(TCP_Connections *tcp_c, int connections_number, _Bool status); |
188 | 188 | ||
189 | /* return number of online tcp relays tied to the connection on success. | ||
190 | * return 0 on failure. | ||
191 | */ | ||
192 | unsigned int tcp_connection_to_online_tcp_relays(TCP_Connections *tcp_c, int connections_number); | ||
193 | |||
189 | /* Add a TCP relay tied to a connection. | 194 | /* Add a TCP relay tied to a connection. |
190 | * | 195 | * |
191 | * NOTE: This can only be used during the tcp_oob_callback. | 196 | * NOTE: This can only be used during the tcp_oob_callback. |