A RFC 865 compliant Quote of the Day program
Go to file
2022-11-06 01:22:24 +01:00
.gitignore Initial commit 2021-03-29 23:35:25 +02:00
CMakeLists.txt pthreads test with the compiler options now 2022-03-10 16:51:55 +01:00
config.h Threads work, turns out listening on ipv6 also listens on ipv4. Look into IPV6_V6ONLY flag. 2022-11-06 01:22:24 +01:00
LICENSE.md Rename LICENSE to LICENSE.md 2021-10-28 11:49:50 +00:00
main.c Threads work, turns out listening on ipv6 also listens on ipv4. Look into IPV6_V6ONLY flag. 2022-11-06 01:22:24 +01:00
quote.c Threads work, turns out listening on ipv6 also listens on ipv4. Look into IPV6_V6ONLY flag. 2022-11-06 01:22:24 +01:00
quote.h config.h config file to centralize default values 2021-11-26 13:56:48 +01:00
README.md corrections 2021-11-12 17:04:05 +01:00
server.c Threads work, turns out listening on ipv6 also listens on ipv4. Look into IPV6_V6ONLY flag. 2022-11-06 01:22:24 +01:00
server.h Threads work, turns out listening on ipv6 also listens on ipv4. Look into IPV6_V6ONLY flag. 2022-11-06 01:22:24 +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