FIFO_Recv_Msg.cpp

Go to the documentation of this file.
00001 // FIFO_Recv_Msg.cpp,v 4.17 2006/03/14 21:15:49 sjiang Exp
00002 
00003 #include "ace/FIFO_Recv_Msg.h"
00004 
00005 #include "ace/Log_Msg.h"
00006 
00007 #if !defined (__ACE_INLINE__)
00008 #include "ace/FIFO_Recv_Msg.inl"
00009 #endif /* __ACE_INLINE__ */
00010 
00011 ACE_RCSID(ace, FIFO_Recv_Msg, "FIFO_Recv_Msg.cpp,v 4.17 2006/03/14 21:15:49 sjiang Exp")
00012 
00013 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00014 
00015 ACE_ALLOC_HOOK_DEFINE(ACE_FIFO_Recv_Msg)
00016 
00017 void
00018 ACE_FIFO_Recv_Msg::dump (void) const
00019 {
00020 #if defined (ACE_HAS_DUMP)
00021   ACE_TRACE ("ACE_FIFO_Recv_Msg::dump");
00022   ACE_FIFO_Recv::dump ();
00023 #endif /* ACE_HAS_DUMP */
00024 }
00025 
00026 // Note that persistent means "open FIFO for writing, as well as
00027 // reading."  This ensures that the FIFO never gets EOF, even if there
00028 // aren't any writers at the moment!
00029 
00030 int
00031 ACE_FIFO_Recv_Msg::open (const ACE_TCHAR *fifo_name,
00032                          int flags,
00033                          mode_t perms,
00034                          int persistent,
00035                          LPSECURITY_ATTRIBUTES sa)
00036 {
00037   ACE_TRACE ("ACE_FIFO_Recv_Msg::open");
00038 
00039   return ACE_FIFO_Recv::open (fifo_name,
00040                               flags,
00041                               perms,
00042                               persistent,
00043                               sa);
00044 }
00045 
00046 ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg (void)
00047 {
00048   ACE_TRACE ("ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg");
00049 }
00050 
00051 ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg (const ACE_TCHAR *fifo_name,
00052                                       int flags,
00053                                       mode_t perms,
00054                                       int persistent,
00055                                       LPSECURITY_ATTRIBUTES sa)
00056 {
00057   ACE_TRACE ("ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg");
00058 
00059   if (this->ACE_FIFO_Recv_Msg::open (fifo_name,
00060                                      flags,
00061                                      perms,
00062                                      persistent,
00063                                      sa) == -1)
00064     ACE_ERROR ((LM_ERROR,  ACE_LIB_TEXT ("%p\n"),  ACE_LIB_TEXT ("ACE_FIFO_Recv_Msg")));
00065 }
00066 
00067 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 09:41:50 2006 for ACE by doxygen 1.3.6