Compile with
gcc -Wall -pedantic -Wextra -Werror client.c socket.c -o client && gcc server.c socket.c -o server -lpthread
(Should produce no warnings.)
This simple socket example demonstrates how to run a server and multiple clients. Client can be started with or without a parameter. If a parameter is