Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

MEM_Stream.cpp

Go to the documentation of this file.
00001 #include "ace_pch.h"
00002 // MEM_Stream.cpp
00003 // $Id: MEM_Stream.cpp,v 1.1.1.3.40.1 2003/03/13 19:44:21 chad Exp $
00004 
00005 #include "ace/MEM_Stream.h"
00006 
00007 #if (ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1)
00008 #if defined (ACE_LACKS_INLINE_FUNCTIONS)
00009 #include "ace/MEM_Stream.i"
00010 #endif
00011 
00012 ACE_RCSID(ace, MEM_Stream, "$Id: MEM_Stream.cpp,v 1.1.1.3.40.1 2003/03/13 19:44:21 chad Exp $")
00013 
00014 ACE_ALLOC_HOOK_DEFINE(ACE_MEM_Stream)
00015 
00016 void
00017 ACE_MEM_Stream::dump (void) const
00018 {
00019   ACE_TRACE ("ACE_MEM_Stream::dump");
00020 }
00021 
00022 int
00023 ACE_MEM_Stream::close (void)
00024 {
00025   this->send ((char *)0, 0);
00026 
00027   this->fini ();
00028 
00029 #if defined (ACE_WIN32)
00030   // We need the following call to make things work correctly on
00031   // Win32, which requires use to do a <close_writer> before doing the
00032   // close in order to avoid losing data.  Note that we don't need to
00033   // do this on UNIX since it doesn't have this "feature".  Moreover,
00034   // this will cause subtle problems on UNIX due to the way that
00035   // fork() works.
00036   this->close_writer ();
00037 #endif /* ACE_WIN32 */
00038   // Close down the socket.
00039   return ACE_SOCK::close ();
00040 }
00041 
00042 #endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */

Generated on Mon Jun 16 11:20:18 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002