This is a server and client implementation for Concurrent C Programming / Seminar ZHAW / FS 2015 written in C99 using GNU extensions.
Running make
will produce a server
and client
executable in the bin
folder.
For debugging purposes run make debug
, this will build the binaries with debug symbols and no optimizations.
./bin/server -n <size> [-d]
The server will listen on port 1666.
-d
enables debug mode and adds verbose logging and additional console (stderr) output. It will log everything to your syslog.
./bin/client -n <name> [-h <host> -p <port>]
Currently no additional parameters supported. There is only one basic algorithm implemented: Beginning at (1, 1) the client will walk through all fields and try to take one by one. If the first take command fails it will retry once more, if the second attempt also fails, the client will try the next field.
Defaults:
- -h localhost
- -p 1666
Benjamin Buetikofer - me@bueti-online.ch