/* ISC license. */ #include #include #include #include #include int socket_tcpnodelay (int s) { static int const opt = TCP_NODELAY ; return setsockopt(s, IPPROTO_TCP, 1, &opt, sizeof(int)) ; }