diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-02 23:05:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-02 23:05:53 +0000 |
commit | 65f91e32933c86be0ab3d8283328088bb80e0e4c (patch) | |
tree | ea844218bfd80d179c46570230c737df4ff58c16 | |
parent | 1e9240c3e02d8c15c04bccb3ce9d705bab58446d (diff) |
fix #4233
-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 example, where the reply is already known and therefore the request is served quickly, this poses no problem. We will allow all clients to connect regardless of their name or location, therefore we do not check -them on connection and set the forth and fifth parameter to NULL. +them on connection and set the third and fourth parameter to NULL. -Parameter six is the address of the function we want to be called whenever a new connection has been +Parameter five is the address of the function we want to be called whenever a new connection has been established. Our @code{answer_to_connection} knows best what the client wants and needs no additional -information (which could be passed via the next parameter) so the next parameter is NULL. Likewise, +information (which could be passed via the next parameter) so the next (sixth) parameter is NULL. Likewise, we do not need to pass extra options to the daemon so we just write the MHD_OPTION_END as the last parameter. As the server daemon runs in the background in its own thread, the execution flow in our main |