summaryrefslogtreecommitdiff
path: root/core/net_crypto.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-24 19:39:34 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-24 19:39:34 -0400
commitee331fd73b6fb566bf638ce26d1155cc398e8cff (patch)
treeb20fc72032e2df7e5f84a7d7c75fa7620623aa1e /core/net_crypto.c
parent57e7ed7c10927858e1ee994111d3e5a3516cd9f0 (diff)
Experimental and unoptimized symmetric NAT hole punching added.
Diffstat (limited to 'core/net_crypto.c')
-rw-r--r--core/net_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/net_crypto.c b/core/net_crypto.c
index e01ed695..6536189e 100644
--- a/core/net_crypto.c
+++ b/core/net_crypto.c
@@ -494,7 +494,7 @@ int accept_crypto_inbound(int connection_id, uint8_t * public_key, uint8_t * sec
494 return -1; 494 return -1;
495} 495}
496 496
497/* return 0 if no connection, 1 we have sent a handshake, 2 if connexion is not confirmed yet 497/* return 0 if no connection, 1 we have sent a handshake, 2 if connection is not confirmed yet
498 (we have received a handshake but no empty data packet), 3 if the connection is established. 498 (we have received a handshake but no empty data packet), 3 if the connection is established.
499 4 if the connection is timed out and waiting to be killed */ 499 4 if the connection is timed out and waiting to be killed */
500int is_cryptoconnected(int crypt_connection_id) 500int is_cryptoconnected(int crypt_connection_id)