From a5fdebc5f6375078ec1763850a4ca23ec7fe6458 Mon Sep 17 00:00:00 2001 From: levine Date: Mon, 21 Oct 1996 21:41:34 +0000 Subject: Initial revision --- ace/FIFO_Recv_Msg.cpp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ace/FIFO_Recv_Msg.cpp (limited to 'ace/FIFO_Recv_Msg.cpp') diff --git a/ace/FIFO_Recv_Msg.cpp b/ace/FIFO_Recv_Msg.cpp new file mode 100644 index 00000000000..002efd735a9 --- /dev/null +++ b/ace/FIFO_Recv_Msg.cpp @@ -0,0 +1,41 @@ +// FIFO_Recv_Msg.cpp +// $Id$ + +/* -*- C++ -*- */ + +#define ACE_BUILD_DLL +#include "ace/FIFO_Recv_Msg.h" +#include "ace/Log_Msg.h" + +ACE_ALLOC_HOOK_DEFINE(ACE_FIFO_Recv_Msg) + +void +ACE_FIFO_Recv_Msg::dump (void) const +{ + ACE_TRACE ("ACE_FIFO_Recv_Msg::dump"); + ACE_FIFO_Recv::dump (); +} + +/* Note that persistent means "open fifo for writing, as well as reading." + This ensures that the fifo never gets EOF, even if there aren't + any writers at the moment! */ + +int +ACE_FIFO_Recv_Msg::open (const char *fifo_name, int flags, int perms, int persistent) +{ + ACE_TRACE ("ACE_FIFO_Recv_Msg::open"); + return ACE_FIFO_Recv::open (fifo_name, flags, perms, persistent); +} + +ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg (void) +{ + ACE_TRACE ("ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg"); +} + +ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg (const char *fifo_name, int flags, int perms, int persistent) +{ + ACE_TRACE ("ACE_FIFO_Recv_Msg::ACE_FIFO_Recv_Msg"); + if (this->ACE_FIFO_Recv_Msg::open (fifo_name, flags, perms, + persistent) == -1) + ACE_ERROR ((LM_ERROR, "%p\n", "ACE_FIFO_Recv_Msg")); +} -- cgit v1.2.1