This repository contains examples of daemons built with comodojo/daemon.
For more information please check the comodojo/daemon documentation.
First clone the repository and install dependencies using composer:
composer install
Once the installation is complete, use the scripts in the /bin folder to launch daemons and clients.
In the /src/DaemonExamples folder:
- EchoDaemon: a daemon that replicates user messages via RPC socket
- CopyDaemon: a daemon that uses a worker to copy a file every {looptime} seconds
- CopyWorker: the worker for the CopyDaemon
In the /bin folder:
- echodaemon: launch script for the EchoDaemon
- echodaemon_client: client to interact with the EchoDaemon
- copydaemon: launch script for the CopyDaemon
- copydaemon_client: client to interact with the CopyDaemon