From 7512349b3bb7ec147195cf25864f637e1a99c569 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 9 Feb 2018 06:09:02 +0100 Subject: allow passing pf instead of just v6 flag to listen socket creation --- src/lib/sysfdsetsize.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/lib/sysfdsetsize.h (limited to 'src/lib/sysfdsetsize.h') 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 @@ +/* + This file is part of libmicrohttpd + Copyright (C) 2015 Karlson2k (Evgeny Grin) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +/** + * @file microhttpd/sysfdsetsize.h + * @brief Helper for obtaining FD_SETSIZE system default value + * @author Karlson2k (Evgeny Grin) + */ + +#ifndef SYSFDSETSIZE_H +#define SYSFDSETSIZE_H 1 + +/** + * Get system default value of FD_SETSIZE + * @return system default value of FD_SETSIZE + */ +int +get_system_fdsetsize_value (void); + +#endif /* !SYSFDSETSIZE_H */ -- cgit v1.2.3