aboutsummaryrefslogtreecommitdiff
path: root/externals/ace/SOCK_Stream.cpp
diff options
context:
space:
mode:
authorRat <none@none>2010-06-07 19:10:55 +0200
committerRat <none@none>2010-06-07 19:10:55 +0200
commit32546e22828e793e3881e1055acb72b6a044e331 (patch)
tree759706cdfe8423887c69a2f8ed651c0c1e5ab7d7 /externals/ace/SOCK_Stream.cpp
parent2e0f8fb6e558088b33bdee83bc5ff20014e983b3 (diff)
added ace + vcproj for win
--HG-- branch : trunk
Diffstat (limited to 'externals/ace/SOCK_Stream.cpp')
-rw-r--r--externals/ace/SOCK_Stream.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/externals/ace/SOCK_Stream.cpp b/externals/ace/SOCK_Stream.cpp
new file mode 100644
index 00000000000..36f0b8761c7
--- /dev/null
+++ b/externals/ace/SOCK_Stream.cpp
@@ -0,0 +1,40 @@
+// $Id: SOCK_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $
+
+#include "ace/SOCK_Stream.h"
+
+#if !defined (__ACE_INLINE__)
+#include "ace/SOCK_Stream.inl"
+#endif /* __ACE_INLINE__ */
+
+ACE_RCSID(ace, SOCK_Stream, "$Id: SOCK_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $")
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Stream)
+
+void
+ACE_SOCK_Stream::dump (void) const
+{
+#if defined (ACE_HAS_DUMP)
+ ACE_TRACE ("ACE_SOCK_Stream::dump");
+#endif /* ACE_HAS_DUMP */
+}
+
+int
+ACE_SOCK_Stream::close (void)
+{
+#if defined (ACE_WIN32)
+ // We need the following call to make things work correctly on
+ // Win32, which requires us 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.
+ (void) this->close_writer ();
+ #endif /* ACE_WIN32 */
+
+ // Close down the socket.
+ return ACE_SOCK::close ();
+}
+
+ACE_END_VERSIONED_NAMESPACE_DECL