Here is some sample code we can use as a base for a network application. The code is written in C. The code can be compiled from the command line on a Linux computer, for example here we compile the server program.
$ gcc server.c