qotd/README.md
2021-10-28 11:34:05 +00:00

36 lines
762 B
Markdown

# qotd
A [RFC 865](https://datatracker.ietf.org/doc/html/rfc865) compliant Quote of the Day ~~daemon~~ program
## Done
* get random quote within file
* tcp server
* tcp client
* udp server
* udp client
## Todo
* t h r e a d s to accept several clients and/or run both udp and tcp servers from same executable
* macros (#define XXX yyy) for currently hard-coded values
* logging ?
* conf files ?
* switches (-x) and options (--xxxx) ?
## Installation
```sh
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') caracter.
Server as root (because port 17)
```sh
# ./server
$ ./client
```