message handling and serv registration

This commit is contained in:
2025-12-30 20:18:18 +01:00
parent ced0c992e7
commit cc09fab16d
6 changed files with 178 additions and 39 deletions

12
todo.md
View File

@@ -1,16 +1,16 @@
# Todo :
## peer discovery
- get rsquest to the uri /peers/
- get rsquest to the uri /peers/
## registration with the server
- generation of the cryptographic key OK
- put request to the uri (check if the peer is already connected) OK
- udp handshakes
- get request to the uri /peers/key to get the public key of a peer
- get request to the uri /peers/key/addresses
- udp handshakes OK
- get request to the uri /peers/key to get the public key of a peer OK
- get request to the uri /peers/key/addresses OK
## handshake
- handshake structure
- handshake structure OK
- 5min timeout after handshake
- matain connection every 4 min
@@ -32,4 +32,4 @@ telechargement des fichiers
choisir un dossier à partager
se deconnecter du réseau
2 channels -> un pour envoyer et un pour recevoir
2 channels -> un pour envoyer et un pour recevoir OK