aboutsummaryrefslogtreecommitdiff
path: root/src/lib/request_resume.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/request_resume.h')
-rw-r--r--src/lib/request_resume.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/lib/request_resume.h b/src/lib/request_resume.h
new file mode 100644
index 00000000..d23ff9e8
--- /dev/null
+++ b/src/lib/request_resume.h
@@ -0,0 +1,43 @@
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/request_resume.h
22 * @brief implementation of MHD_request_resume()
23 * @author Christian Grothoff
24 */
25
26
27#ifndef REQUEST_RESUME_H
28#define REQUEST_RESUME_H
29
30/**
31 * Run through the suspended connections and move any that are no
32 * longer suspended back to the active state.
33 * @remark To be called only from thread that process
34 * daemon's select()/poll()/etc.
35 *
36 * @param daemon daemon context
37 * @return true if a connection was actually resumed
38 */
39bool
40MHD_resume_suspended_connections_ (struct MHD_Daemon *daemon)
41 MHD_NONNULL(1);
42
43#endif