Partly written server in C