diff options
Diffstat (limited to 'doc/chapters/hellobrowser.inc')
-rw-r--r-- | doc/chapters/hellobrowser.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/chapters/hellobrowser.inc b/doc/chapters/hellobrowser.inc index 8ff81e4b..bcd259b3 100644 --- a/doc/chapters/hellobrowser.inc +++ b/doc/chapters/hellobrowser.inc | |||
@@ -108,11 +108,11 @@ producing the response for one connection, the other connections will be put on | |||
108 | example, where the reply is already known and therefore the request is served quickly, this poses no problem. | 108 | example, where the reply is already known and therefore the request is served quickly, this poses no problem. |
109 | 109 | ||
110 | We will allow all clients to connect regardless of their name or location, therefore we do not check | 110 | We will allow all clients to connect regardless of their name or location, therefore we do not check |
111 | them on connection and set the forth and fifth parameter to NULL. | 111 | them on connection and set the third and fourth parameter to NULL. |
112 | 112 | ||
113 | Parameter six is the address of the function we want to be called whenever a new connection has been | 113 | Parameter five is the address of the function we want to be called whenever a new connection has been |
114 | established. Our @code{answer_to_connection} knows best what the client wants and needs no additional | 114 | established. Our @code{answer_to_connection} knows best what the client wants and needs no additional |
115 | information (which could be passed via the next parameter) so the next parameter is NULL. Likewise, | 115 | information (which could be passed via the next parameter) so the next (sixth) parameter is NULL. Likewise, |
116 | we do not need to pass extra options to the daemon so we just write the MHD_OPTION_END as the last parameter. | 116 | we do not need to pass extra options to the daemon so we just write the MHD_OPTION_END as the last parameter. |
117 | 117 | ||
118 | As the server daemon runs in the background in its own thread, the execution flow in our main | 118 | As the server daemon runs in the background in its own thread, the execution flow in our main |