aboutsummaryrefslogtreecommitdiff
path: root/src/lib/connection_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/connection_options.c')
-rw-r--r--src/lib/connection_options.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/connection_options.c b/src/lib/connection_options.c
new file mode 100644
index 00000000..163c956a
--- /dev/null
+++ b/src/lib/connection_options.c
@@ -0,0 +1,16 @@
1
2/**
3 * Generate option to set a custom timeout for the given connection.
4 * Specified as the number of seconds. Use zero for no timeout. If
5 * timeout was set to zero (or unset) before, setting of a new value
6 * by MHD_connection_set_option() will reset timeout timer.
7 *
8 * @param connection connection to configure timeout for
9 * @param timeout_s new timeout in seconds
10 */
11struct MHD_ConnectionOption
12MHD_connection_timeout (struct MHD_Connection *connection,
13 unsigned int timeout_s);
14
15
16