Files
TCPlayerbotCore/dep/ACE_wrappers/ace/SOCK_Stream.cpp
T

42 lines
1.0 KiB
C++
Raw Normal View History

// $Id: SOCK_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $
2009-10-17 15:51:44 -07:00
#include "ace/SOCK_Stream.h"
2009-10-17 15:51:44 -07:00
#if !defined (__ACE_INLINE__)
#include "ace/SOCK_Stream.inl"
#endif /* __ACE_INLINE__ */
2009-10-17 15:51:44 -07:00
ACE_RCSID(ace, SOCK_Stream, "$Id: SOCK_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $")
2009-10-17 15:51:44 -07:00
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
2009-10-17 15:51:44 -07:00
ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Stream)
2009-10-17 15:51:44 -07:00
void
ACE_SOCK_Stream::dump (void) const
{
#if defined (ACE_HAS_DUMP)
ACE_TRACE ("ACE_SOCK_Stream::dump");
#endif /* ACE_HAS_DUMP */
}
2009-10-17 15:51:44 -07:00
int
ACE_SOCK_Stream::close (void)
{
#if defined (ACE_WIN32)
// We need the following call to make things work correctly on
// Win32, which requires us 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.
(void) this->close_writer ();
#endif /* ACE_WIN32 */
2009-10-17 15:51:44 -07:00
// Close down the socket.
return ACE_SOCK::close ();
}
2009-10-17 15:51:44 -07:00
ACE_END_VERSIONED_NAMESPACE_DECL
2009-02-17 20:07:49 -06:00