aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
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