diff options
Diffstat (limited to 'docs/TCP_Network.txt')
-rw-r--r-- | docs/TCP_Network.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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: | |||
58 | [[uint16_t (length of data)][data]][[uint16_t (length of | 58 | [[uint16_t (length of data)][data]][[uint16_t (length of |
59 | data)][data]][[uint16_t (length of data)][data]] | 59 | data)][data]][[uint16_t (length of data)][data]] |
60 | 60 | ||
61 | Note that both handshake packets don't have this format (the length for them is | ||
62 | always the same so we don't need to specify it.) | ||
63 | |||
61 | When the client connects to the server, he sends this packet: | 64 | When the client connects to the server, he sends this packet: |
62 | [public key of client (32 bytes)][nonce for the encrypted data [24 | 65 | [public key of client (32 bytes)][nonce for the encrypted data [24 |
63 | bytes]][encrypted with the private key of the client and public key of the | 66 | bytes]][encrypted with the private key of the client and public key of the |