Use override/default for RTPortableServer
[ACE_TAO.git] / ACE / ace / MEM_Stream.cpp
blobddfdaa400950efdaf97deeda41a03037a97c9162
1 #include "ace/MEM_Stream.h"
3 #if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
5 #if !defined (__ACE_INLINE__)
6 #include "ace/MEM_Stream.inl"
7 #endif /* __ACE_INLINE__ */
9 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
11 ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Stream)
13 void
14 ACE_MEM_Stream::dump () const
16 #if defined (ACE_HAS_DUMP)
17 ACE_TRACE ("ACE_MEM_Stream::dump");
18 #endif /* ACE_HAS_DUMP */
21 int
22 ACE_MEM_Stream::close ()
24 this->send ((char *)0, 0);
26 this->fini ();
28 #if defined (ACE_WIN32)
29 // We need the following call to make things work correctly on
30 // Win32, which requires use to do a <close_writer> before doing the
31 // close in order to avoid losing data. Note that we don't need to
32 // do this on UNIX since it doesn't have this "feature". Moreover,
33 // this will cause subtle problems on UNIX due to the way that
34 // fork() works.
35 this->close_writer ();
36 #endif /* ACE_WIN32 */
37 // Close down the socket.
38 return ACE_SOCK::close ();
41 ACE_END_VERSIONED_NAMESPACE_DECL
43 #endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */