CS 158A simple socket server and two different client that use UDP or TCP.
If building for Windows and not using Visual Studio, don't forget to link with ws2_32.
There are #defines for the timeout in seconds and milliseconds. More importantly, there is a #define for the server address in the client projects.