Skip to content

alexkens/qotd-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qotd-server

This is a TCP implementation of the Quote of the Day protocol in C++, Node.js, Java, Python3 and Scala. They listen on port 17 and send a random quote from qotd.txt.

You need to use sudo so it can run on port 17.

Try it out

To run the C++ version:

make qotd
sudo ./qotd

To run the Node.js version:

sudo node qotd.js

To run the Java version:

javac QOTD.java
sudo java QOTD

To run the Python version:

chmod +x qotd.py
sudo ./qotd.py

or

sudo python3 qotd.py

You must have already installed python3.

There also exists a multi-threaded Java version:

javac MultiThreadedQOTD.java
sudo java MultiThreadedQOTD

To run the Scala version:

scala qotd.scala

To try it out run:

nc localhost 17

or

telnet localhost 17

About

Quote of the Day Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 35.8%
  • C++ 24.8%
  • Python 12.0%
  • Scala 10.8%
  • Haskell 10.3%
  • JavaScript 6.3%