diff options
Diffstat (limited to 'doc/chapters/hellobrowser.inc')
-rw-r--r-- | doc/chapters/hellobrowser.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/chapters/hellobrowser.inc b/doc/chapters/hellobrowser.inc index 0513a674..611463e2 100644 --- a/doc/chapters/hellobrowser.inc +++ b/doc/chapters/hellobrowser.inc | |||
@@ -9,15 +9,15 @@ The C program @code{hellobrowser.c}, which is to be found in the examples sectio | |||
9 | If you are very eager, you can compile and start it right away but it is advisable to type the | 9 | If you are very eager, you can compile and start it right away but it is advisable to type the |
10 | lines in by yourself as they will be discussed and explained in detail. | 10 | lines in by yourself as they will be discussed and explained in detail. |
11 | 11 | ||
12 | After the unexciting includes and the definition of the port which our server should listen on | 12 | After the necessary includes and the definition of the port which our server should listen on |
13 | @verbatim | 13 | @verbatim |
14 | #include <platform.h> | ||
14 | #include <microhttpd.h> | 15 | #include <microhttpd.h> |
15 | #include <string.h> | 16 | |
16 | #include <stdlib.h> | 17 | #define PORT 8888 |
17 | #include <stdio.h> | ||
18 | @end verbatim | 18 | @end verbatim |
19 | @noindent | 19 | @noindent |
20 | the desired behaviour of our server when HTTP request arrive have to be implemented. We already have | 20 | the desired behaviour of our server when HTTP request arrive has to be implemented. We already have |
21 | agreed that it should not care about the particular details of the request, such as who is requesting | 21 | agreed that it should not care about the particular details of the request, such as who is requesting |
22 | what. The server will respond merely with the same small HTML page to every request. | 22 | what. The server will respond merely with the same small HTML page to every request. |
23 | 23 | ||