summaryrefslogtreecommitdiff
path: root/ace/MEM_Stream.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-10 19:58:09 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-10 19:58:09 +0000
commit7ad4f697cf767302feafe6a648498e57e3e960d0 (patch)
treeb71587497c9c68d639be74d8dce2021af96d25f8 /ace/MEM_Stream.cpp
parent53ae527d407ebcf4cc9efb3bff2527a817da1c70 (diff)
downloadATCD-7ad4f697cf767302feafe6a648498e57e3e960d0.tar.gz
ChangeLogTag:Thu Feb 10 13:49:34 2000 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace/MEM_Stream.cpp')
-rw-r--r--ace/MEM_Stream.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/ace/MEM_Stream.cpp b/ace/MEM_Stream.cpp
new file mode 100644
index 00000000000..de870c1c66b
--- /dev/null
+++ b/ace/MEM_Stream.cpp
@@ -0,0 +1,35 @@
+// MEM_Stream.cpp
+// $Id$
+
+#define ACE_BUILD_DLL
+#include "ace/MEM_Stream.h"
+
+#if defined (ACE_LACKS_INLINE_FUNCTIONS)
+#include "ace/MEM_Stream.i"
+#endif
+
+ACE_RCSID(ace, MEM_Stream, "$Id$")
+
+ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Stream)
+
+void
+ACE_MEM_Stream::dump (void) const
+{
+ ACE_TRACE ("ACE_MEM_Stream::dump");
+}
+
+int
+ACE_MEM_Stream::close (void)
+{
+#if defined (ACE_WIN32)
+ // We need the following call to make things work correctly on
+ // Win32, which requires use to do a <close_writer> before doing the
+ // close in order to avoid losing data. Note that we don't need to
+ // do this on UNIX since it doesn't have this "feature". Moreover,
+ // this will cause subtle problems on UNIX due to the way that
+ // fork() works.
+ this->close_writer ();
+#endif /* ACE_WIN32 */
+ // Close down the socket.
+ return ACE_SOCK::close ();
+}