Selaa lähdekoodia

apply copyright header

Christian Grothoff 9 vuotta sitten
vanhempi
sitoutus
b3a45b40e0
1 muutettua tiedostoa jossa 26 lisäystä ja 0 poistoa
  1. 26 0
      src/examples/timeout.c

+ 26 - 0
src/examples/timeout.c

@@ -1,3 +1,28 @@
+/*
+     This file is part of libmicrohttpd
+     Copyright (C) 2016, 2017 Christian Grothoff,
+     Silvio Clecio (silvioprog), Karlson2k (Evgeny Grin)
+
+     This library is free software; you can redistribute it and/or
+     modify it under the terms of the GNU Lesser General Public
+     License as published by the Free Software Foundation; either
+     version 2.1 of the License, or (at your option) any later version.
+
+     This library is distributed in the hope that it will be useful,
+     but WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+     Lesser General Public License for more details.
+
+     You should have received a copy of the GNU Lesser General Public
+     License along with this library; if not, write to the Free Software
+     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+/**
+ * @file timeout.c
+ * @brief example for how to use libmicrohttpd request timeout
+ * @author Christian Grothoff, Silvio Clecio (silvioprog), Karlson2k (Evgeny Grin)
+ */
+
 #include <microhttpd.h>
 #include <stdio.h>
 #include <string.h>
@@ -42,6 +67,7 @@ main (int argc,
                              PORT,
                              NULL, NULL,
                              &answer_to_connection, NULL,
+                             /* 3 seconds */
                              MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 3,
                              MHD_OPTION_END);
   if (NULL == daemon)