diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-21 12:55:10 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-21 14:15:52 +0100 |
commit | 222acd1c5aacc5f4d3b3ab4955d3fd861b44c5a0 (patch) | |
tree | 9b8512214dd597f13ce8c5b6451165eabfda5da4 /doc | |
parent | d14c6aa0f7dfc3b950a9c0c8ef218b6ba4aa4725 (diff) | |
download | libmicrohttpd-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.texi | 13 |
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 | |||
1594 | connections is scanned and their file descriptors added to the correct | 1594 | connections is scanned and their file descriptors added to the correct |
1595 | set. | 1595 | set. |
1596 | 1596 | ||
1597 | When calling this function, FD_SETSIZE is assumed to be platform's | ||
1598 | default. If you changed FD_SETSIZE for your application, | ||
1599 | you should use @code{MHD_get_fdset2()} instead. | ||
1600 | |||
1601 | This function should only be called in when MHD is configured to use | ||
1602 | external select with @code{select()} or with @code{epoll()}. In | ||
1603 | the latter case, it will only add the single @code{epoll()} file | ||
1604 | descriptor used by MHD to the sets. | ||
1605 | |||
1597 | After the call completed successfully: the variable referenced by | 1606 | After 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 |
1599 | identifier. The variable must be set to zero before invoking this | 1608 | identifier. 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) | ||
1618 | Like @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 |
1610 | Obtain timeout value for select for this daemon (only needed if | 1623 | Obtain timeout value for select for this daemon (only needed if |