diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-26 22:46:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-26 22:46:50 +0100 |
commit | b3a45b40e034a077f2a31b141223580218ee4fdd (patch) | |
tree | 652deaa09db62059204ed219b598bd07833d89f1 | |
parent | d686cb083345e50e5ce1f5de14fad756fe827a59 (diff) | |
download | libmicrohttpd-b3a45b40e034a077f2a31b141223580218ee4fdd.tar.gz libmicrohttpd-b3a45b40e034a077f2a31b141223580218ee4fdd.zip |
apply copyright header
-rw-r--r-- | src/examples/timeout.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/examples/timeout.c b/src/examples/timeout.c index ef18c0ee..6a9a1e3e 100644 --- a/src/examples/timeout.c +++ b/src/examples/timeout.c | |||
@@ -1,3 +1,28 @@ | |||
1 | /* | ||
2 | This file is part of libmicrohttpd | ||
3 | Copyright (C) 2016, 2017 Christian Grothoff, | ||
4 | Silvio Clecio (silvioprog), Karlson2k (Evgeny Grin) | ||
5 | |||
6 | This library is free software; you can redistribute it and/or | ||
7 | modify it under the terms of the GNU Lesser General Public | ||
8 | License as published by the Free Software Foundation; either | ||
9 | version 2.1 of the License, or (at your option) any later version. | ||
10 | |||
11 | This library is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | Lesser General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU Lesser General Public | ||
17 | License along with this library; if not, write to the Free Software | ||
18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
19 | */ | ||
20 | /** | ||
21 | * @file timeout.c | ||
22 | * @brief example for how to use libmicrohttpd request timeout | ||
23 | * @author Christian Grothoff, Silvio Clecio (silvioprog), Karlson2k (Evgeny Grin) | ||
24 | */ | ||
25 | |||
1 | #include <microhttpd.h> | 26 | #include <microhttpd.h> |
2 | #include <stdio.h> | 27 | #include <stdio.h> |
3 | #include <string.h> | 28 | #include <string.h> |
@@ -42,6 +67,7 @@ main (int argc, | |||
42 | PORT, | 67 | PORT, |
43 | NULL, NULL, | 68 | NULL, NULL, |
44 | &answer_to_connection, NULL, | 69 | &answer_to_connection, NULL, |
70 | /* 3 seconds */ | ||
45 | MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 3, | 71 | MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 3, |
46 | MHD_OPTION_END); | 72 | MHD_OPTION_END); |
47 | if (NULL == daemon) | 73 | if (NULL == daemon) |