We do not want to re-invent the wheel and we will use a WEB server already prepared for us by professional programmers but it is nevertheless interesting to implement a very simplistic WEB server ourselves simply to understand the basic principles.
> >
We do not want to re-invent the wheel, and we will use a WEB server framework already prepared for us by professional programmers. It is nevertheless interesting to implement a very primitive WEB server ourselves, simply to understand the basic principles.
The Hello World WEB Server
Changed:
< <
Let's start simple and produce a WEB server that just sends "Hello World!" to the browser when called. You may add some HTML text if desired. In the first version we will write a TCP server creating a stream socket and binding to port 80.
> >
Let's start simple and produce a WEB server that just sends "Hello World!" to the browser when called. You may add some HTML text if desired. In the first version we will write a TCP server creating a stream socket and binding to port 80.