[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / SOCK_Stream.cpp
blob36f0b8761c7ae26041427291c055525287695b1b
1 // $Id: SOCK_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $
3 #include "ace/SOCK_Stream.h"
5 #if !defined (__ACE_INLINE__)
6 #include "ace/SOCK_Stream.inl"
7 #endif /* __ACE_INLINE__ */
9 ACE_RCSID(ace, SOCK_Stream, "$Id: SOCK_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $")
11 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
13 ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Stream)
15 void
16 ACE_SOCK_Stream::dump (void) 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 (void)
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