SOCK_Stream.cpp

Go to the documentation of this file.
00001 // $Id: SOCK_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $
00002 
00003 #include "ace/SOCK_Stream.h"
00004 
00005 #if !defined (__ACE_INLINE__)
00006 #include "ace/SOCK_Stream.inl"
00007 #endif /* __ACE_INLINE__ */
00008 
00009 ACE_RCSID(ace, SOCK_Stream, "$Id: SOCK_Stream.cpp 80826 2008-03-04 14:51:23Z wotte $")
00010 
00011 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00012 
00013 ACE_ALLOC_HOOK_DEFINE(ACE_SOCK_Stream)
00014 
00015 void
00016 ACE_SOCK_Stream::dump (void) const
00017 {
00018 #if defined (ACE_HAS_DUMP)
00019   ACE_TRACE ("ACE_SOCK_Stream::dump");
00020 #endif /* ACE_HAS_DUMP */
00021 }
00022 
00023 int
00024 ACE_SOCK_Stream::close (void)
00025 {
00026 #if defined (ACE_WIN32)
00027   // We need the following call to make things work correctly on
00028   // Win32, which requires us to do a close_writer() before doing the
00029   // close() in order to avoid losing data.  Note that we don't need
00030   // to do this on UNIX since it doesn't have this "feature".
00031   // Moreover, this will cause subtle problems on UNIX due to the way
00032   // that fork() works.
00033   (void) this->close_writer ();
00034  #endif /* ACE_WIN32 */
00035 
00036   // Close down the socket.
00037   return ACE_SOCK::close ();
00038 }
00039 
00040 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:18:42 2010 for ACE by  doxygen 1.4.7