A RFC 865 compliant Quote of the Day program
  • C 90.4%
  • CMake 5.7%
  • Dockerfile 3.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-02-28 12:39:10 +01:00
.github/workflows Update cmake.yml 2021-11-30 13:08:31 +00:00
.vscode first version of client 2025-02-28 12:34:45 +01:00
client first version of client 2025-02-28 12:34:45 +01:00
server first version of client 2025-02-28 12:34:45 +01:00
.gitignore Add dockerfile 2025-02-28 11:15:37 +01:00
builder.Dockerfile Add dockerfile 2025-02-28 11:15:37 +01:00
Dockerfile fix server dockerfile 2025-02-28 12:39:10 +01:00
LICENSE.md Rename LICENSE to LICENSE.md 2021-10-28 11:49:50 +00:00
quotes.txt Move into directory 2025-02-28 11:40:57 +01:00
README.md corrections 2021-11-12 17:04:05 +01:00

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