aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-08-15 08:36:06 +0000
committerChristian Grothoff <christian@grothoff.org>2007-08-15 08:36:06 +0000
commitd8211f1b223bbfee1fbe42106efd7b8157308408 (patch)
treece7bc0501711ef12222ffe49fb0b1e1d411ef8eb /src/include/microhttpd.h
parentc9c5dfbefd0a3e219b17174fe43b51cdc0cabb67 (diff)
downloadlibmicrohttpd-d8211f1b223bbfee1fbe42106efd7b8157308408.tar.gz
libmicrohttpd-d8211f1b223bbfee1fbe42106efd7b8157308408.zip
even more APIs for timeout and improved timeout handling
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 76c1be0b..ec08318d 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -486,6 +486,22 @@ MHD_get_fdset (struct MHD_Daemon *daemon,
486 fd_set * write_fd_set, fd_set * except_fd_set, int *max_fd); 486 fd_set * write_fd_set, fd_set * except_fd_set, int *max_fd);
487 487
488/** 488/**
489 * Obtain timeout value for select for this daemon
490 * (only needed if connection timeout is used). The
491 * returned value is how long select should at most
492 * block, not the timeout value set for connections.
493 *
494 * @param timeout set to the timeout (in milliseconds)
495 * @return MHD_YES on success, MHD_NO if timeouts are
496 * not used (or no connections exist that would
497 * necessiate the use of a timeout right now).
498 */
499int
500MHD_get_timeout(struct MHD_Daemon * daemon,
501 unsigned long long * timeout);
502
503
504/**
489 * Run webserver operations (without blocking unless 505 * Run webserver operations (without blocking unless
490 * in client callbacks). This method should be called 506 * in client callbacks). This method should be called
491 * by clients in combination with MHD_get_fdset 507 * by clients in combination with MHD_get_fdset