diff options
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r-- | toxcore/net_crypto.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h index 9eb5e2d3..a0498b42 100644 --- a/toxcore/net_crypto.h +++ b/toxcore/net_crypto.h | |||
@@ -224,10 +224,12 @@ int new_crypto_connection(Net_Crypto *c, const uint8_t *real_public_key, const u | |||
224 | 224 | ||
225 | /* Set the direct ip of the crypto connection. | 225 | /* Set the direct ip of the crypto connection. |
226 | * | 226 | * |
227 | * Connected is 0 if we are not sure we are connected to that person, 1 if we are sure. | ||
228 | * | ||
227 | * return -1 on failure. | 229 | * return -1 on failure. |
228 | * return 0 on success. | 230 | * return 0 on success. |
229 | */ | 231 | */ |
230 | int set_direct_ip_port(Net_Crypto *c, int crypt_connection_id, IP_Port ip_port); | 232 | int set_direct_ip_port(Net_Crypto *c, int crypt_connection_id, IP_Port ip_port, _Bool connected); |
231 | 233 | ||
232 | /* Set function to be called when connection with crypt_connection_id goes connects/disconnects. | 234 | /* Set function to be called when connection with crypt_connection_id goes connects/disconnects. |
233 | * | 235 | * |