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

SPIPE.cpp

Go to the documentation of this file.
00001 #include "ace_pch.h"
00002 // SPIPE.cpp
00003 // $Id: SPIPE.cpp,v 1.1.1.3.40.1 2003/03/13 19:44:22 chad Exp $
00004 
00005 #include "ace/SPIPE.h"
00006 
00007 #if defined (ACE_LACKS_INLINE_FUNCTIONS)
00008 #include "ace/SPIPE.i"
00009 #endif
00010 
00011 ACE_RCSID(ace, SPIPE, "$Id: SPIPE.cpp,v 1.1.1.3.40.1 2003/03/13 19:44:22 chad Exp $")
00012 
00013 ACE_ALLOC_HOOK_DEFINE(ACE_SPIPE)
00014 
00015 // This is the do-nothing constructor. 
00016 
00017 ACE_SPIPE::ACE_SPIPE (void)
00018 {
00019   // ACE_TRACE ("ACE_SPIPE::ACE_SPIPE");
00020 }
00021 
00022 void
00023 ACE_SPIPE::dump (void) const
00024 {
00025   ACE_TRACE ("ACE_SPIPE::dump");
00026 }
00027 
00028 // Close down a ACE_SPIPE. 
00029 
00030 int
00031 ACE_SPIPE::get_local_addr (ACE_SPIPE_Addr &local_sap) const
00032 {
00033   ACE_TRACE ("ACE_SPIPE::get_local_addr");
00034   local_sap = this->local_addr_;
00035   return 0;
00036 }
00037 
00038 // Close down the STREAM pipe without removing the rendezvous point.
00039 
00040 int
00041 ACE_SPIPE::close (void)
00042 {
00043   ACE_TRACE ("ACE_SPIPE::close");
00044   int result = 0;
00045 
00046   if (this->get_handle () != ACE_INVALID_HANDLE)
00047     {
00048       result = ACE_OS::close (this->get_handle ());
00049       this->set_handle (ACE_INVALID_HANDLE);
00050     }
00051   return result;
00052 }
00053 
00054 // Close down the STREAM pipe and remove the rendezvous point from the
00055 // file system.
00056 
00057 int
00058 ACE_SPIPE::remove (void)
00059 {
00060   ACE_TRACE ("ACE_SPIPE::remove");
00061   int result = this->close ();
00062   return ACE_OS::unlink (this->local_addr_.get_path_name ()) == -1 || result == -1 ? -1 : 0;
00063 }
00064 

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