summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r--toxcore/net_crypto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index 14b14229..25f8c2f7 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -267,6 +267,14 @@ int add_tcp_relay_peer(Net_Crypto *c, int crypt_connection_id, IP_Port ip_port,
267 */ 267 */
268int add_tcp_relay(Net_Crypto *c, IP_Port ip_port, uint8_t *public_key); 268int add_tcp_relay(Net_Crypto *c, IP_Port ip_port, uint8_t *public_key);
269 269
270/* Copy a maximum of num TCP relays we are connected to to tcp_relays.
271 * NOTE that the family of the copied ip ports will be set to TCP_INET or TCP_INET6.
272 *
273 * return number of relays copied to tcp_relays on success.
274 * return 0 on failure.
275 */
276unsigned int copy_connected_tcp_relays(Net_Crypto *c, Node_format *tcp_relays, uint16_t num);
277
270/* Kill a crypto connection. 278/* Kill a crypto connection.
271 * 279 *
272 * return -1 on failure. 280 * return -1 on failure.