There is a simple application in C ++, I decided to write a web interface to it for practice. Enter the data in the form -> The application processes the data -> The user sees the answer in the browser. Difficulties in understanding the architecture itself.
I was thinking of listening to a specific port (80) with a socket, waiting for a request from the browser (parsing certain data), and returning a web page to it.
Is this way acceptable? And how to properly implement this task?