Master 1 network course project
Go to file
2016-11-27 09:49:28 +01:00
utils Add fake client sending IHUs 2016-11-25 15:48:08 +01:00
.gitignore Add fake client sending IHUs 2016-11-25 15:48:08 +01:00
Bytes.cpp Now flooding data — a bit too much 2016-11-26 16:20:20 +01:00
Bytes.h Now flooding data — a bit too much 2016-11-26 16:20:20 +01:00
configFile.cpp Sends, floods and receives data 2016-11-26 19:17:56 +01:00
configFile.h Sends, floods and receives data 2016-11-26 19:17:56 +01:00
data.h Update constants, data 2016-11-20 00:15:09 +01:00
dataStore.cpp Fix republish doing weird things 2016-11-27 09:31:06 +01:00
dataStore.h Fix republish doing weird things 2016-11-27 09:31:06 +01:00
flooder.cpp Sends, floods and receives data 2016-11-26 19:17:56 +01:00
flooder.h Sends, floods and receives data 2016-11-26 19:17:56 +01:00
headcomment.txt Add headcomment 2016-11-16 17:52:04 +01:00
main.cpp Aggregate packets before sending. 2016-11-27 09:49:28 +01:00
Makefile Readme 2016-11-26 20:42:00 +01:00
neighbours.cpp Improve robustness to badly shaped packets 2016-11-26 20:42:29 +01:00
neighbours.h Sends, floods and receives data 2016-11-26 19:17:56 +01:00
nw_constants.h Aggregate packets before sending. 2016-11-27 09:49:28 +01:00
packetParser.cpp Improve robustness to badly shaped packets 2016-11-26 20:42:29 +01:00
packetParser.h Now flooding data — a bit too much 2016-11-26 16:20:20 +01:00
protocol.cpp Aggregate packets before sending. 2016-11-27 09:49:28 +01:00
protocol.h Aggregate packets before sending. 2016-11-27 09:49:28 +01:00
README.md Readme 2016-11-26 20:42:00 +01:00

M1-nw-project

Projet de cours "réseau", M1 https://tobast.fr/m1/nw-project.pdf

Dépendances

  • g++ (version supportant c++14) ou tout autre compilateur c++ (éditer le Makefile pour changer CXX)
  • Bibliothèques standard POSIX

Compiler

Lancer simplement make.

Lancer

Le programme fourni prend en argument le chemin vers un fichier de configuration, dont chaque ligne commence par un mot-clé suivi de ses arguments.

  • id [ID du programme] : laisser vide par défaut, sera généré automatiquement.
  • bootstrap [ID du nœud] [adresse IPv6 du nœud] [port] : déclare le nœud comme nœud de bootstrap. L'adresse peut être IPv4-mapped, eg. ::FFFF:42.42.42.42.
  • data [id de donnée] [donnée] : déclare une donnée à propager. Si l'id est 0, il sera tiré au hasard puis enregistré. La donnée peut contenir des espaces, et s'étend jusqu'à la fin de la ligne.

Le programme, à l'initialisation, lit le fichier puis le réécrit avec éventuellement des données tirées au hasard si nécessaire (eg. ID du nœud, des données).

Le programme produit des logs verbeux mais humainement lisibles sur sa sortie d'erreur (stderr).