summaryrefslogtreecommitdiff
path: root/ace/MEM_Stream.cpp
blob: 9e13eb1708f4acc466b1d2e79a8e3ea900449025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// MEM_Stream.cpp
// $Id$

#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 ();
}