mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
restructured repository based on following standards:
https://github.com/HW-Core/directory-structure
This commit is contained in:
45
modules/dep/acelite/ace/MEM_Stream.cpp
Normal file
45
modules/dep/acelite/ace/MEM_Stream.cpp
Normal file
@@ -0,0 +1,45 @@
|
||||
#include "ace/MEM_Stream.h"
|
||||
|
||||
#if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/MEM_Stream.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
|
||||
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Stream)
|
||||
|
||||
void
|
||||
ACE_MEM_Stream::dump (void) const
|
||||
{
|
||||
#if defined (ACE_HAS_DUMP)
|
||||
ACE_TRACE ("ACE_MEM_Stream::dump");
|
||||
#endif /* ACE_HAS_DUMP */
|
||||
}
|
||||
|
||||
int
|
||||
ACE_MEM_Stream::close (void)
|
||||
{
|
||||
this->send ((char *)0, 0);
|
||||
|
||||
this->fini ();
|
||||
|
||||
#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 ();
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
#endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */
|
||||
Reference in New Issue
Block a user