aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-21 12:55:10 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-21 14:15:52 +0100
commit222acd1c5aacc5f4d3b3ab4955d3fd861b44c5a0 (patch)
tree9b8512214dd597f13ce8c5b6451165eabfda5da4 /doc
parentd14c6aa0f7dfc3b950a9c0c8ef218b6ba4aa4725 (diff)
downloadlibmicrohttpd-222acd1c5aacc5f4d3b3ab4955d3fd861b44c5a0.tar.gz
libmicrohttpd-222acd1c5aacc5f4d3b3ab4955d3fd861b44c5a0.zip
clarify when it is ok to call MHD_get_fdset in documentation, document MHD_get_fdset2()
Diffstat (limited to 'doc')
-rw-r--r--doc/libmicrohttpd.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index dba1d08f..82d9f415 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -1594,6 +1594,15 @@ is added to @var{read_fd_set}. The list of currently existent
1594connections is scanned and their file descriptors added to the correct 1594connections is scanned and their file descriptors added to the correct
1595set. 1595set.
1596 1596
1597When calling this function, FD_SETSIZE is assumed to be platform's
1598default. If you changed FD_SETSIZE for your application,
1599you should use @code{MHD_get_fdset2()} instead.
1600
1601This function should only be called in when MHD is configured to use
1602external select with @code{select()} or with @code{epoll()}. In
1603the latter case, it will only add the single @code{epoll()} file
1604descriptor used by MHD to the sets.
1605
1597After the call completed successfully: the variable referenced by 1606After the call completed successfully: the variable referenced by
1598@var{max_fd} references the file descriptor with highest integer 1607@var{max_fd} references the file descriptor with highest integer
1599identifier. The variable must be set to zero before invoking this 1608identifier. The variable must be set to zero before invoking this
@@ -1605,6 +1614,10 @@ the right options for this call.
1605@end deftypefun 1614@end deftypefun
1606 1615
1607 1616
1617@deftypefun int MHD_get_fdset2 (struct MHD_Daemon *daemon, fd_set * read_fd_set, fd_set * write_fd_set, fd_set * except_fd_set, int *max_fd, unsigned int fd_setsize)
1618Like @code{MHD_get_fdset()}, except that you can manually specify the value of FD_SETSIZE used by your application.
1619
1620
1608@deftypefun int MHD_get_timeout (struct MHD_Daemon *daemon, unsigned long long *timeout) 1621@deftypefun int MHD_get_timeout (struct MHD_Daemon *daemon, unsigned long long *timeout)
1609@cindex timeout 1622@cindex timeout
1610Obtain timeout value for select for this daemon (only needed if 1623Obtain timeout value for select for this daemon (only needed if