summaryrefslogtreecommitdiff
path: root/examples/IPC_SAP/FIFO_SAP/FIFO-client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/IPC_SAP/FIFO_SAP/FIFO-client.cpp')
-rw-r--r--examples/IPC_SAP/FIFO_SAP/FIFO-client.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/examples/IPC_SAP/FIFO_SAP/FIFO-client.cpp b/examples/IPC_SAP/FIFO_SAP/FIFO-client.cpp
deleted file mode 100644
index 8c80809f380..00000000000
--- a/examples/IPC_SAP/FIFO_SAP/FIFO-client.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// $Id$
-
-#include "ace/FIFO_Send.h"
-#include "ace/Log_Msg.h"
-#include "ace/OS_NS_string.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_main.h"
-
-ACE_RCSID(FIFO_SAP, FIFO_client, "$Id$")
-
-int
-ACE_TMAIN (int, ACE_TCHAR *[])
-{
- ACE_FIFO_Send client (ACE_DEFAULT_RENDEZVOUS);
- ACE_TCHAR buf[BUFSIZ];
-
- while (ACE_OS::fgets (buf, sizeof buf, stdin) != 0)
- {
- ssize_t n = ACE_OS::strlen (buf);
-
- if (client.send (buf, n) != n)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send"), 1);
- }
-
- if (client.close () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "close"), 1);
-
- return 0;
-}