Naive implementation also in C.

I have ported the naive implementation of the server and client to C. The client works like the python version. The server does not work exactly like the python version, but not too far away.