Client Server System with Sockets

Now, let's create a simple server system that accepts incoming connections and some data we type. A small warning: this is highly unlikely to work well on Windows operating systems. You will still get some output, but it will likely be for every key pressed.