summaryrefslogtreecommitdiff
path: root/examples/IPC_SAP/FIFO_SAP/FIFO-server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/IPC_SAP/FIFO_SAP/FIFO-server.cpp')
-rw-r--r--examples/IPC_SAP/FIFO_SAP/FIFO-server.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/examples/IPC_SAP/FIFO_SAP/FIFO-server.cpp b/examples/IPC_SAP/FIFO_SAP/FIFO-server.cpp
deleted file mode 100644
index 4cd32c03449..00000000000
--- a/examples/IPC_SAP/FIFO_SAP/FIFO-server.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// $Id$
-
-#include "ace/FIFO_Recv.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_unistd.h"
-#include "ace/OS_main.h"
-
-ACE_RCSID(FIFO_SAP, FIFO_server, "$Id$")
-
-int
-ACE_TMAIN (int, ACE_TCHAR *[])
-{
- ACE_OS::unlink (ACE_DEFAULT_RENDEZVOUS);
- ACE_FIFO_Recv server (ACE_DEFAULT_RENDEZVOUS);
- char buf[BUFSIZ];
- int n;
-
- while ((n = server.recv (buf, sizeof buf)) > 0)
- {
- ACE_OS::printf ("%4d: ", n);
- ACE_OS::fflush (stdout);
- ACE_OS::write (ACE_STDOUT, buf, n);
- }
-
- if (n == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "recv"), 1);
-
- return 0;
-}