/* * Copyright (C) 1996-2024 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ /* DEBUG: section 05 TCP Socket Functions */ #include "squid.h" #include "comm/Tcp.h" #include "debug/Stream.h" #if HAVE_NETINET_TCP_H #include #endif #if HAVE_NETINET_IN_H #include #endif #if HAVE_SYS_SOCKET_H #include #endif #include /// setsockopt(2) wrapper template static bool SetSocketOption(const int fd, const int level, const int optName, const Option &optValue) { static_assert(std::is_trivially_copyable