summaryrefslogtreecommitdiff
path: root/ace/Pipe.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1999-07-02 16:51:39 +0000
committerSteve Huston <shuston@riverace.com>1999-07-02 16:51:39 +0000
commitc0e3cacf5a25a1765b0cf25f22fd483211d835a1 (patch)
tree87bc892863e5225ee5e0f3a72656d56060736687 /ace/Pipe.cpp
parent4be34b58baa81d606cca7271bf716b33550c526a (diff)
downloadATCD-c0e3cacf5a25a1765b0cf25f22fd483211d835a1.tar.gz
(open): Protocol level for TCP_NODELAY is SOL_SOCKET on PharLap, as opposed to IPPROTO_TCP on Win32.
Diffstat (limited to 'ace/Pipe.cpp')
-rw-r--r--ace/Pipe.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/Pipe.cpp b/ace/Pipe.cpp
index e76ccd73e2b..53f5212e0e6 100644
--- a/ace/Pipe.cpp
+++ b/ace/Pipe.cpp
@@ -64,7 +64,12 @@ ACE_Pipe::open (void)
// Make sure that the TCP stack doesn't try to buffer small writes.
// Since this communication is purely local to the host it doesn't
// affect network performance.
- if (writer.set_option (IPPROTO_TCP, TCP_NODELAY,
+# if defined (ACE_HAS_PHARLAP_RT)
+ int level = SOL_SOCKET;
+# else
+ int level = IPPROTO_TCP;
+# endif /* ACE_HAS_PHARLAP_RT */
+ if (writer.set_option (level, TCP_NODELAY,
&one, sizeof one) == -1)
return -1;
#endif /* ACE_LACKS_TCP_NODELAY */