From 3acf43b76accbe0285e9cec0ff3536efeb3f8d8c Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 14 Mar 2014 14:12:35 -0400 Subject: A bit of work done on the TCP relay server. --- docs/TCP_Network.txt | 3 +++ docs/TODO | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/TCP_Network.txt b/docs/TCP_Network.txt index ce52b8e9..80cdfbdb 100644 --- a/docs/TCP_Network.txt +++ b/docs/TCP_Network.txt @@ -58,6 +58,9 @@ So if you would inspect the TCP stream you would see: [[uint16_t (length of data)][data]][[uint16_t (length of data)][data]][[uint16_t (length of data)][data]] +Note that both handshake packets don't have this format (the length for them is +always the same so we don't need to specify it.) + When the client connects to the server, he sends this packet: [public key of client (32 bytes)][nonce for the encrypted data [24 bytes]][encrypted with the private key of the client and public key of the diff --git a/docs/TODO b/docs/TODO index 6c0197db..f7ef8ade 100644 --- a/docs/TODO +++ b/docs/TODO @@ -41,7 +41,7 @@ Friend_requests.c: [NOT STARTED] Make the core save/datafile portable across client versions/different processor architectures. -[NOT STARTED] A way for people to connect to people on Tox if they are behind a bad NAT that +[IN PROGRESS] A way for people to connect to people on Tox if they are behind a bad NAT that blocks UDP (or is just unpunchable) (docs/TCP_Network.txt) [NEEDS TESTING] Make the save made with tox_save_encrypted(...) harder to brute force. -- cgit v1.2.3