Part 2 : Daemon configuration



Configuration of Daemons is a toml file, example :
1
2
3
4
5
6
7
[[daemon]]
name = "main"
description = "Main daemon of the swarm"
log_file = "daemon_main.log"
hostname = "localhost"
recieving_port = 3391
nb_latencies_per_daemon = 1000
Where :
  • name : name of the Daemon (other Daemon will send message at this name, no need of address or port when programming a Daemon)
  • description : description of the Daemon (just to remember what it is suppoed to do
  • log_file : log file of the Daemon
  • hostname : host name where the Daemon is spawned
  • recieving_port : port used by the Daemon to recieved message (Data, Instructions, etc)
  • nb_latencies_per_daemon : number of latencies the current Daemon will evaluate (when exchanging messages)