bueti / ccp

Concurrent C Programming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concurrent C Programming

This is a server and client implementation for Concurrent C Programming / Seminar ZHAW / FS 2015 written in C99 using GNU extensions.

Compilation

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.

Start the server

./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.

Start the client

./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

Author

Benjamin Buetikofer - me@bueti-online.ch

About

Concurrent C Programming

License:GNU General Public License v2.0


Languages

Language:C 55.7%Language:TeX 41.2%Language:Makefile 3.1%