<commit_before>/* <src/ServerSocket.cpp>
 *
 * This file is part of the x0 web server project and is released under GPL-3.
 * http://www.xzero.io/
 *
 * (c) 2009-2013 <NAME> <<EMAIL>>
 */

#include <x0/ServerSocket.h>
#include <x0/SocketDriver.h>
#include <x0/SocketSpec.h>
#include <x0/Socket.h>
#include <x0/IPAddress.h>
#include <x0/sysconfig.h>

#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>

#include <sd-daemon.h>

namespace x0 {

#if !defined(XZERO_NDEBUG)
#	define TRACE(msg...) this->debug(msg)
#else
#	define TRACE(msg...) do { } while (0)
#endif

#if !defined(SO_REUSEPORT)
#	define SO_REUSEPORT 15
#endif

// {{{ helpers for finding x0d-inherited file descriptors
<commit_msg>mute me for now<commit_after>/* <src/ServerSocket.cpp>
 *
 * This file is part of the x0 web server project and is released under GPL-3.
 * http://www.xzero.io/
 *
 * (c) 2009-2013 <NAME> <<EMAIL>>
 */

#include <x0/ServerSocket.h>
#include <x0/SocketDriver.h>
#include <x0/SocketSpec.h>
#include <x0/Socket.h>
#include <x0/IPAddress.h>
#include <x0/sysconfig.h>

#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>

#include <sd-daemon.h>

namespace x0 {

#if 0//!defined(XZERO_NDEBUG)
#	define TRACE(msg...) this->debug(msg)
#else
#	define TRACE(msg...) do { } while (0)
#endif

#if !defined(SO_REUSEPORT)
#	define SO_REUSEPORT 15
#endif

// {{{ helpers for finding x0d-inherited file descriptors

{'fraction_non_alphanumeric': 0.1781231320980275, 'fraction_numerical': 0.025702331141661684, 'mean_word_length': 4.23125, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6312001', 'n_tokens_mistral': 718, 'n_tokens_neox': 695, 'n_words': 163}