A RFC 865 compliant Quote of the Day program
Go to file
2021-10-18 13:53:52 +02:00
client working udp client 2021-10-18 13:53:21 +02:00
server minor refactor 2021-10-18 13:53:52 +02:00
.gitignore Initial commit 2021-03-29 23:35:25 +02:00
CMakeLists.txt working udp 2021-10-15 14:08:44 +02:00
README.md Update README.md 2021-08-22 23:22:43 +02:00

qotd

A RFC 865 compliant Quote of the Day daemon program

Done

  • get random quote within file
  • tcp server
  • tcp client

Todo

  • udp server
  • udp client
  • 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

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)

# ./server
$ ./client