Cleaner examples

- Use ${CXX} instead of explicit clang in the Makefile.
- More explanations.
- Use socat's fork option instead of a bash loop.
- Adds a run_* script for each example.
- Remove the useless "sleep" option in service2.
This commit is contained in:
Johann Dreo 2021-08-05 10:08:49 +02:00
commit f74f89734c
9 changed files with 89 additions and 26 deletions

8
run_pcat.sh Executable file
View file

@ -0,0 +1,8 @@
# Start the service and let it run in the background.
./pcat data &
PID_SERVICE=$!
echo "Hello world!" > data &
KILL $PID_SERVICE