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 28 version (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 } 42 else version (Darwin) 43 { 44 enum TCP_NODELAY = 1; 45 } 46 else version (FreeBSD) 47 { 48 enum TCP_NODELAY = 1; 49 } 50 else version (NetBSD) 51 { 52 enum TCP_NODELAY = 1; 53 } 54 else version (OpenBSD) 55 { 56 enum TCP_NODELAY = 1; 57 } 58 else version (DragonFlyBSD) 59 { 60 enum TCP_NODELAY = 1; 61 } 62 else version (Solaris) 63 { 64 enum TCP_NODELAY = 1; 65 } 66 else version (linux) 67 { 68 enum TCP_NODELAY = 1; 69 }