Updated the server and C client to work on UDP