aboutsummaryrefslogtreecommitdiff
path: root/src/lib/daemon_run_from_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/daemon_run_from_select.c')
-rw-r--r--src/lib/daemon_run_from_select.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/lib/daemon_run_from_select.c b/src/lib/daemon_run_from_select.c
index b8063f79..e69de29b 100644
--- a/src/lib/daemon_run_from_select.c
+++ b/src/lib/daemon_run_from_select.c
@@ -1,59 +0,0 @@
1/*
2 This file is part of libmicrohttpd
3 Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18*/
19
20/**
21 * @file lib/daemon_run_from_select.c
22 * @brief functions to run select-based event loop
23 * @author Christian Grothoff
24 */
25#include "internal.h"
26
27
28/**
29 * Run webserver operations. This method should be called by clients
30 * in combination with #MHD_get_fdset and #MHD_get_timeout() if the
31 * client-controlled select method is used.
32 *
33 * You can use this function instead of #MHD_run if you called
34 * `select()` on the result from #MHD_get_fdset. File descriptors in
35 * the sets that are not controlled by MHD will be ignored. Calling
36 * this function instead of #MHD_run is more efficient as MHD will not
37 * have to call `select()` again to determine which operations are
38 * ready.
39 *
40 * This function cannot be used with daemon started with
41 * #MHD_USE_INTERNAL_POLLING_THREAD flag.
42 *
43 * @param daemon daemon to run select loop for
44 * @param read_fd_set read set
45 * @param write_fd_set write set
46 * @param except_fd_set except set
47 * @return #MHD_SC_OK on success
48 * @ingroup event
49 */
50enum MHD_StatusCode
51MHD_daemon_run_from_select (struct MHD_Daemon *daemon,
52 const fd_set *read_fd_set,
53 const fd_set *write_fd_set,
54 const fd_set *except_fd_set)
55{
56 return -1;
57}
58
59/* end of daemon_run_from_select.c */