[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / MEM_Stream.cpp
blobafcbd4f98d0ce9e9dc5ab1a098b57254bf9b02a6
1 // $Id: MEM_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $
3 #include "ace/MEM_Stream.h"
5 #if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
7 #if !defined (__ACE_INLINE__)
8 #include "ace/MEM_Stream.inl"
9 #endif /* __ACE_INLINE__ */
11 ACE_RCSID(ace, MEM_Stream, "$Id: MEM_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $")
13 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Stream)
17 void
18 ACE_MEM_Stream::dump (void) const
20 #if defined (ACE_HAS_DUMP)
21 ACE_TRACE ("ACE_MEM_Stream::dump");
22 #endif /* ACE_HAS_DUMP */
25 int
26 ACE_MEM_Stream::close (void)
28 this->send ((char *)0, 0);
30 this->fini ();
32 #if defined (ACE_WIN32)
33 // We need the following call to make things work correctly on
34 // Win32, which requires use to do a <close_writer> before doing the
35 // close in order to avoid losing data. Note that we don't need to
36 // do this on UNIX since it doesn't have this "feature". Moreover,
37 // this will cause subtle problems on UNIX due to the way that
38 // fork() works.
39 this->close_writer ();
40 #endif /* ACE_WIN32 */
41 // Close down the socket.
42 return ACE_SOCK::close ();
45 ACE_END_VERSIONED_NAMESPACE_DECL
47 #endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */