A RFC 865 compliant Quote of the Day program
| .github/workflows | ||
| .gitignore | ||
| CMakeLists.txt | ||
| config.h | ||
| LICENSE.md | ||
| main.c | ||
| quote.c | ||
| quote.h | ||
| README.md | ||
| server.c | ||
| server.h | ||
qotd
A RFC 865 compliant Quote of the Day daemon program
Done
- get random quote within file
- tcp server
- tcp client
- udp server
- udp client
- IPv6 compat
Todo
- t h r e a d s to accept several clients and/or run both udp and tcp servers from same executable and instance
- macros (#define XXX yyy) for currently hard-coded values
- switches (-x) and options (--xxxx) ?
- logging ?
- conf files ?
Installation
git clone https://github.com/Arthur-Coppey/qotd
cd qotd
cmake -B build
cd build
make
Use
A "quotes.txt" file in the same folder as the server containing one quote per line. Quotes are separated by the line feed \n character.
Server as root (because port 17)
# ./server
$ ./client