diff options
Diffstat (limited to 'toxcore/net_crypto.h')
-rw-r--r-- | toxcore/net_crypto.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h index 7d616be6..a010c4d2 100644 --- a/toxcore/net_crypto.h +++ b/toxcore/net_crypto.h | |||
@@ -235,13 +235,11 @@ int64_t write_cryptpacket(Net_Crypto *c, int crypt_connection_id, uint8_t *data, | |||
235 | int crypto_kill(Net_Crypto *c, int crypt_connection_id); | 235 | int crypto_kill(Net_Crypto *c, int crypt_connection_id); |
236 | 236 | ||
237 | 237 | ||
238 | /* return 0 if no connection. | 238 | /* return one of CRYPTO_CONN_* values indicating the state of the connection. |
239 | * return 1 we have sent a handshake | 239 | * |
240 | * return 2 if connexion is not confirmed yet (we have received a handshake but no empty data packet). | 240 | * sets direct_connected to 1 if connection connects directly to other, 0 if it isn't. |
241 | * return 3 if the connection is established. | ||
242 | * return 4 if the connection is timed out and waiting to be killed. | ||
243 | */ | 241 | */ |
244 | int is_cryptoconnected(Net_Crypto *c, int crypt_connection_id); | 242 | unsigned int crypto_connection_status(Net_Crypto *c, int crypt_connection_id, uint8_t *direct_connected); |
245 | 243 | ||
246 | 244 | ||
247 | /* Generate our public and private keys. | 245 | /* Generate our public and private keys. |