This commit is contained in:
Tiago Batista Cardoso
2026-01-11 22:00:10 +01:00
committed by TIBERGHIEN corentin
parent b61e1b1036
commit 003d55bd75
4 changed files with 221 additions and 23 deletions

43
todo.md
View File

@@ -1,13 +1,32 @@
# Todo :
# Todo
## peer discovery
## handshake
# Todo
## peer discovery
- 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 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 OK
- 5min timeout after handshake
- matain connection every 4 min
## data transfer
- request structure
- root/root reply structure
- datum/nodatum and datum structures
@@ -15,7 +34,16 @@
- setting in gui to act as a relay
- chunk, directory, big, bigdirectory structures
## fonctionnalités application :
## fonctionnalités application
## nat traversal
- make hello and helloreply messages set the first extension bit to announce that peer is available for nat traversal
- implement actual nat traversal requests
- implement nat traversal :
- if hello/helloreply doesnt work with a peer, find a peer that supports nat traversal (server in priority) then begin protocol
fonctionnalités :
rechercher les fichiers d'un pair
telechargement des fichiers
@@ -25,16 +53,14 @@ choisir le nombre de canaux
handshake server DOING
se deconnecter du réseau DOING
## autre :
## autre
socket ipv6
# FAIT :
# FAIT
- choisir un pseudo OK
- get rsquest to the uri /peers/ OK
- get rsquest to the uri /peers/ OK
- generation of the cryptographic key OK
- put request to the uri (check if the peer is already connected) OK
- get request to the uri /peers/key to get the public key of a peer OK
@@ -45,4 +71,3 @@ socket ipv6
- generer une clé publique OK
- verifier signature OK
- 2 channels -> un pour envoyer et un pour recevoir OK