diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-02-09 06:09:02 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-02-09 06:09:02 +0100 |
commit | 7512349b3bb7ec147195cf25864f637e1a99c569 (patch) | |
tree | 6870c0438764b096bd380f90aa54d54629b6cf3a /src/lib/sysfdsetsize.h | |
parent | e77fce2749a06b448e496140e8ad7e51891972de (diff) | |
download | libmicrohttpd-7512349b3bb7ec147195cf25864f637e1a99c569.tar.gz libmicrohttpd-7512349b3bb7ec147195cf25864f637e1a99c569.zip |
allow passing pf instead of just v6 flag to listen socket creation
Diffstat (limited to 'src/lib/sysfdsetsize.h')
-rw-r--r-- | src/lib/sysfdsetsize.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/sysfdsetsize.h b/src/lib/sysfdsetsize.h new file mode 100644 index 00000000..e3585b22 --- /dev/null +++ b/src/lib/sysfdsetsize.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | This file is part of libmicrohttpd | ||
3 | Copyright (C) 2015 Karlson2k (Evgeny Grin) | ||
4 | |||
5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Lesser General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2.1 of the License, or (at your option) any later version. | ||
9 | |||
10 | This library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Lesser General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Lesser General Public | ||
16 | License along with this library; if not, write to the Free Software | ||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
18 | */ | ||
19 | |||
20 | /** | ||
21 | * @file microhttpd/sysfdsetsize.h | ||
22 | * @brief Helper for obtaining FD_SETSIZE system default value | ||
23 | * @author Karlson2k (Evgeny Grin) | ||
24 | */ | ||
25 | |||
26 | #ifndef SYSFDSETSIZE_H | ||
27 | #define SYSFDSETSIZE_H 1 | ||
28 | |||
29 | /** | ||
30 | * Get system default value of FD_SETSIZE | ||
31 | * @return system default value of FD_SETSIZE | ||
32 | */ | ||
33 | int | ||
34 | get_system_fdsetsize_value (void); | ||
35 | |||
36 | #endif /* !SYSFDSETSIZE_H */ | ||