1 /** 2 * D header file for POSIX. 3 * 4 * Copyright: Copyright Sean Kelly 2005 - 2009. 5 * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). 6 * Authors: Sean Kelly 7 * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition 8 */ 9 10 /* Copyright Sean Kelly 2005 - 2009. 11 * Distributed under the Boost Software License, Version 1.0. 12 * (See accompanying file LICENSE or copy at 13 * http://www.boost.org/LICENSE_1_0.txt) 14 */ 15 module core.sys.posix.netinet.tcp; 16 17 import core.sys.posix.config; 18 19 version (OSX) 20 version = Darwin; 21 else version (iOS) 22 version = Darwin; 23 else version (TVOS) 24 version = Darwin; 25 else version (WatchOS) 26 version = Darwin; 27 version(Posix)28version (Posix): 29 extern (C): 30 31 // 32 // Required 33 // 34 /* 35 TCP_NODELAY 36 */ 37 38 version (CRuntime_Glibc) 39 { 40 enum TCP_NODELAY = 1; 41 } version(Darwin)42else version (Darwin) 43 { 44 enum TCP_NODELAY = 1; 45 } version(FreeBSD)46else version (FreeBSD) 47 { 48 enum TCP_NODELAY = 1; 49 } version(NetBSD)50else version (NetBSD) 51 { 52 enum TCP_NODELAY = 1; 53 } version(OpenBSD)54else version (OpenBSD) 55 { 56 enum TCP_NODELAY = 1; 57 } version(DragonFlyBSD)58else version (DragonFlyBSD) 59 { 60 enum TCP_NODELAY = 1; 61 } version(Solaris)62else version (Solaris) 63 { 64 enum TCP_NODELAY = 1; 65 } version(linux)66else version (linux) 67 { 68 enum TCP_NODELAY = 1; 69 } 70