Following the Threaded Fortune Server I wonder how one can write a console-only (non-gui) socket server...

The loop in the example is achieved with a QDialog.

What I want is to write a similar thing *without* using any GUI components.

Thank you for any advice.
Pedro Doria Meunier.