3rd party lisb:
- utlist from https://github.com/troydhanson/uthash
Using POSIX threads
git clone- Go to downloaded folder and run
make - Run
./make
-
seq# x y- to generate subsequence -
#for subsequence
-
xfor start value
-
yfor step of subsequence
-
export seqore- to send sequence to all clients -
exitorquitorq- to shutdown server (brocken!)
- Current realisation of threads uses blocking socket commands such accept or read
- Unable to shutdown the server by client
- Not all errors are handled
Port of server is hardcoded as 12345.
Logging with printf macro can be disabled by changing #if 1 to #if 0.
I used telnet as client with telnet localhost 12345 command.