Use override/default for RTPortableServer
[ACE_TAO.git] / ACE / ace / SOCK_Stream.cpp
blobe15d2e0ed8079cc18fd9942213f570c007a6969e
1 #include "ace/SOCK_Stream.h"
3 #if !defined (__ACE_INLINE__)
4 #include "ace/SOCK_Stream.inl"
5 #endif /* __ACE_INLINE__ */
7 #if defined (ACE_HAS_ALLOC_HOOKS)
8 # include "ace/Malloc_Base.h"
9 #endif /* ACE_HAS_ALLOC_HOOKS */
11 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
13 ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Stream)
15 void
16 ACE_SOCK_Stream::dump () const
18 #if defined (ACE_HAS_DUMP)
19 ACE_TRACE ("ACE_SOCK_Stream::dump");
20 #endif /* ACE_HAS_DUMP */
23 int
24 ACE_SOCK_Stream::close ()
26 #if defined (ACE_WIN32)
27 // We need the following call to make things work correctly on
28 // Win32, which requires us to do a close_writer() before doing the
29 // close() in order to avoid losing data. Note that we don't need
30 // to do this on UNIX since it doesn't have this "feature".
31 // Moreover, this will cause subtle problems on UNIX due to the way
32 // that fork() works.
33 (void) this->close_writer ();
34 #endif /* ACE_WIN32 */
36 // Close down the socket.
37 return ACE_SOCK::close ();
40 ACE_END_VERSIONED_NAMESPACE_DECL