summaryrefslogtreecommitdiff
path: root/examples/Service_Configurator/IPC-tests/client
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Service_Configurator/IPC-tests/client')
-rw-r--r--examples/Service_Configurator/IPC-tests/client/Makefile316
-rw-r--r--examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp56
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_data22
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp94
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp85
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp122
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp88
-rw-r--r--examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp85
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_data22
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_data122
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_data222
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_data322
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_data422
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp78
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp82
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp105
-rw-r--r--examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp96
17 files changed, 0 insertions, 1339 deletions
diff --git a/examples/Service_Configurator/IPC-tests/client/Makefile b/examples/Service_Configurator/IPC-tests/client/Makefile
deleted file mode 100644
index f93be189f08..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/Makefile
+++ /dev/null
@@ -1,316 +0,0 @@
-#----------------------------------------------------------------------------
-# @(#)Makefile 1.1 10/18/96
-#
-# Makefile for the client-side of the primary Reactor tests
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-BIN = local_dgram_client_test \
- local_stream_client_test \
- local_pipe_client_test \
- remote_stream_client_test \
- remote_thr_stream_client_test \
- remote_dgram_client_test \
- local_fifo_client_test \
- broadcast_client_test \
- local_spipe_client_test \
- remote_service_directory_test
-
-LSRC = $(addsuffix .cpp,$(BIN))
-
-LDLIBS =
-
-VLDLIBS = $(LDLIBS:%=%$(VAR))
-
-BUILD = $(VBIN)
-
-INSTALL =
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(WRAPPER_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(WRAPPER_ROOT)/include/makeinclude/macros.GNU
-include $(WRAPPER_ROOT)/include/makeinclude/rules.common.GNU
-include $(WRAPPER_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(WRAPPER_ROOT)/include/makeinclude/rules.bin.GNU
-include $(WRAPPER_ROOT)/include/makeinclude/rules.local.GNU
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Dependencies
-#----------------------------------------------------------------------------
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-.obj/local_dgram_client_test.o .shobj/local_dgram_client_test.so: local_dgram_client_test.cpp \
- $(WRAPPER_ROOT)/ace/LSOCK_CODgram.h \
- $(WRAPPER_ROOT)/ace/LSOCK.h \
- $(WRAPPER_ROOT)/ace/SOCK.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/SOCK.i \
- $(WRAPPER_ROOT)/ace/LSOCK.i \
- $(WRAPPER_ROOT)/ace/SOCK_CODgram.h \
- $(WRAPPER_ROOT)/ace/SOCK_IO.h \
- $(WRAPPER_ROOT)/ace/SOCK_IO.i \
- $(WRAPPER_ROOT)/ace/SOCK_CODgram.i \
- $(WRAPPER_ROOT)/ace/LSOCK_CODgram.i \
- $(WRAPPER_ROOT)/ace/LSOCK_Dgram.h \
- $(WRAPPER_ROOT)/ace/SOCK_Dgram.h \
- $(WRAPPER_ROOT)/ace/SOCK_Dgram.i \
- $(WRAPPER_ROOT)/ace/LSOCK_Dgram.i \
- $(WRAPPER_ROOT)/ace/UNIX_Addr.h \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/local_stream_client_test.o .shobj/local_stream_client_test.so: local_stream_client_test.cpp \
- $(WRAPPER_ROOT)/ace/LSOCK_Connector.h \
- $(WRAPPER_ROOT)/ace/SOCK_Connector.h \
- $(WRAPPER_ROOT)/ace/SOCK_Stream.h \
- $(WRAPPER_ROOT)/ace/SOCK_IO.h \
- $(WRAPPER_ROOT)/ace/SOCK.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/SOCK.i \
- $(WRAPPER_ROOT)/ace/SOCK_IO.i \
- $(WRAPPER_ROOT)/ace/INET_Addr.h \
- $(WRAPPER_ROOT)/ace/SOCK_Stream.i \
- $(WRAPPER_ROOT)/ace/SOCK_Connector.i \
- $(WRAPPER_ROOT)/ace/LSOCK_Stream.h \
- $(WRAPPER_ROOT)/ace/LSOCK.h \
- $(WRAPPER_ROOT)/ace/LSOCK.i \
- $(WRAPPER_ROOT)/ace/LSOCK_Stream.i \
- $(WRAPPER_ROOT)/ace/UNIX_Addr.h \
- $(WRAPPER_ROOT)/ace/LSOCK_Connector.i \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/local_pipe_client_test.o .shobj/local_pipe_client_test.so: local_pipe_client_test.cpp \
- $(WRAPPER_ROOT)/ace/LSOCK_Connector.h \
- $(WRAPPER_ROOT)/ace/SOCK_Connector.h \
- $(WRAPPER_ROOT)/ace/SOCK_Stream.h \
- $(WRAPPER_ROOT)/ace/SOCK_IO.h \
- $(WRAPPER_ROOT)/ace/SOCK.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/SOCK.i \
- $(WRAPPER_ROOT)/ace/SOCK_IO.i \
- $(WRAPPER_ROOT)/ace/INET_Addr.h \
- $(WRAPPER_ROOT)/ace/SOCK_Stream.i \
- $(WRAPPER_ROOT)/ace/SOCK_Connector.i \
- $(WRAPPER_ROOT)/ace/LSOCK_Stream.h \
- $(WRAPPER_ROOT)/ace/LSOCK.h \
- $(WRAPPER_ROOT)/ace/LSOCK.i \
- $(WRAPPER_ROOT)/ace/LSOCK_Stream.i \
- $(WRAPPER_ROOT)/ace/UNIX_Addr.h \
- $(WRAPPER_ROOT)/ace/LSOCK_Connector.i \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/remote_stream_client_test.o .shobj/remote_stream_client_test.so: remote_stream_client_test.cpp \
- $(WRAPPER_ROOT)/ace/Mem_Map.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/SOCK_Connector.h \
- $(WRAPPER_ROOT)/ace/SOCK_Stream.h \
- $(WRAPPER_ROOT)/ace/SOCK_IO.h \
- $(WRAPPER_ROOT)/ace/SOCK.h \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/SOCK.i \
- $(WRAPPER_ROOT)/ace/SOCK_IO.i \
- $(WRAPPER_ROOT)/ace/INET_Addr.h \
- $(WRAPPER_ROOT)/ace/SOCK_Stream.i \
- $(WRAPPER_ROOT)/ace/SOCK_Connector.i \
- $(WRAPPER_ROOT)/ace/SOCK_CODgram.h \
- $(WRAPPER_ROOT)/ace/SOCK_CODgram.i \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/remote_thr_stream_client_test.o .shobj/remote_thr_stream_client_test.so: remote_thr_stream_client_test.cpp \
- $(WRAPPER_ROOT)/ace/Mem_Map.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/TLI_Connector.h \
- $(WRAPPER_ROOT)/ace/TLI_Stream.h \
- $(WRAPPER_ROOT)/ace/TLI.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/TLI.i \
- $(WRAPPER_ROOT)/ace/INET_Addr.h \
- $(WRAPPER_ROOT)/ace/TLI_Stream.i \
- $(WRAPPER_ROOT)/ace/TLI_Connector.i \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/remote_dgram_client_test.o .shobj/remote_dgram_client_test.so: remote_dgram_client_test.cpp \
- $(WRAPPER_ROOT)/ace/Mem_Map.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/SOCK_Dgram.h \
- $(WRAPPER_ROOT)/ace/SOCK.h \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/SOCK.i \
- $(WRAPPER_ROOT)/ace/SOCK_Dgram.i \
- $(WRAPPER_ROOT)/ace/INET_Addr.h \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/local_fifo_client_test.o .shobj/local_fifo_client_test.so: local_fifo_client_test.cpp \
- $(WRAPPER_ROOT)/ace/Mem_Map.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/FIFO_Send_Msg.h \
- $(WRAPPER_ROOT)/ace/FIFO_Send.h \
- $(WRAPPER_ROOT)/ace/FIFO.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/FIFO_Send.i \
- $(WRAPPER_ROOT)/ace/FIFO_Send_Msg.i \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/broadcast_client_test.o .shobj/broadcast_client_test.so: broadcast_client_test.cpp \
- $(WRAPPER_ROOT)/ace/INET_Addr.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/SOCK_Dgram_Bcast.h \
- $(WRAPPER_ROOT)/ace/SOCK_Dgram.h \
- $(WRAPPER_ROOT)/ace/SOCK.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/SOCK.i \
- $(WRAPPER_ROOT)/ace/SOCK_Dgram.i \
- $(WRAPPER_ROOT)/ace/SOCK_Dgram_Bcast.i \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/local_spipe_client_test.o .shobj/local_spipe_client_test.so: local_spipe_client_test.cpp \
- $(WRAPPER_ROOT)/ace/Mem_Map.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/SPIPE_Connector.h \
- $(WRAPPER_ROOT)/ace/SPIPE_Stream.h \
- $(WRAPPER_ROOT)/ace/SPIPE.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/SPIPE_Addr.h \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/SPIPE.i \
- $(WRAPPER_ROOT)/ace/SPIPE_Stream.i \
- $(WRAPPER_ROOT)/ace/SPIPE_Connector.i \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-.obj/remote_service_directory_test.o .shobj/remote_service_directory_test.so: remote_service_directory_test.cpp \
- $(WRAPPER_ROOT)/ace/SOCK_Connector.h \
- $(WRAPPER_ROOT)/ace/SOCK_Stream.h \
- $(WRAPPER_ROOT)/ace/SOCK_IO.h \
- $(WRAPPER_ROOT)/ace/SOCK.h \
- $(WRAPPER_ROOT)/ace/ACE.h \
- $(WRAPPER_ROOT)/ace/OS.h \
- $(WRAPPER_ROOT)/ace/Time_Value.h \
- $(WRAPPER_ROOT)/ace/config.h \
- $(WRAPPER_ROOT)/ace/stdcpp.h \
- $(WRAPPER_ROOT)/ace/Trace.h \
- $(WRAPPER_ROOT)/ace/Log_Msg.h \
- $(WRAPPER_ROOT)/ace/Log_Record.h \
- $(WRAPPER_ROOT)/ace/Log_Priority.h \
- $(WRAPPER_ROOT)/ace/Log_Record.i \
- $(WRAPPER_ROOT)/ace/ACE.i \
- $(WRAPPER_ROOT)/ace/Addr.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.h \
- $(WRAPPER_ROOT)/ace/IPC_SAP.i \
- $(WRAPPER_ROOT)/ace/SOCK.i \
- $(WRAPPER_ROOT)/ace/SOCK_IO.i \
- $(WRAPPER_ROOT)/ace/INET_Addr.h \
- $(WRAPPER_ROOT)/ace/SOCK_Stream.i \
- $(WRAPPER_ROOT)/ace/SOCK_Connector.i \
- $(WRAPPER_ROOT)/ace/Get_Opt.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp
deleted file mode 100644
index 3fc4cde16f0..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/broadcast_client_test.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Tests out the broadcast service of the
-// $Id$
-
- Internet domain IPC-SAP dgram abstraction. */
-
-#include "ace/INET_Addr.h"
-#include "ace/SOCK_Dgram_Bcast.h"
-
-#include "ace/Get_Opt.h"
-
-/* Name of the program. */
-static char *program_name;
-
-/* Port number to use. */
-static unsigned short broadcast_port_number = ACE_DEFAULT_BROADCAST_PORT;
-
-static void
-print_usage_and_die (void)
-{
- ACE_OS::fprintf (stderr, "usage: %s [-p broadcast portnum]\n",
- program_name);
- ACE_OS::exit (1);
-}
-
-void
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opt (argc, argv, "p:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'p':
- broadcast_port_number = ACE_OS::atoi (get_opt.optarg);
- break;
- default:
- print_usage_and_die ();
- break;
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- program_name = argv[0];
- parse_args (argc, argv);
-
- ACE_SOCK_Dgram_Bcast sd (ACE_Addr::sap_any);
-
- static char buf[] = "testing socket broadcast service";
-
- if (sd.send (buf, strlen (buf), broadcast_port_number) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "can't send broadcast"), -1);
-
- return 0;
-}
diff --git a/examples/Service_Configurator/IPC-tests/client/local_data b/examples/Service_Configurator/IPC-tests/client/local_data
deleted file mode 100644
index 1faba1b8091..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/local_data
+++ /dev/null
@@ -1,22 +0,0 @@
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
-locallocallocallocallocallocallocallocal
diff --git a/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp
deleted file mode 100644
index fff3de3f808..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-/* Tests out the UNIX domain IPC-SAP abstraction. */
-// $Id$
-
-
-#include "ace/LSOCK_CODgram.h"
-#include "ace/LSOCK_Dgram.h"
-#include "ace/UNIX_Addr.h"
-
-#include "ace/Get_Opt.h"
-
-#if defined (ACE_HAS_MSG) && !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
-/* Name of the program. */
-static char *program_name;
-
-/* Number of seconds to sleep. */
-static int seconds = 3;
-
-/* Name of rendezvous point. */
-static char *rendezvous_codgram = "/tmp/foo_codgram";
-static char *rendezvous_dgram = "/tmp/foo_dgram";
-
-/* Name of file to send. */
-static char *file_name = "local_data";
-
-static void print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %s [-r rendezvous_dgram] [-c rendezvous_codgram] [-f file] [-n seconds]\n%a",
- program_name, -1));
-}
-
-void
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opt (argc, argv, "c:f:n:r:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'f':
- file_name = get_opt.optarg;
- break;
- case 'n':
- seconds = atoi (get_opt.optarg);
- break;
- case 'r':
- rendezvous_dgram = get_opt.optarg;
- break;
- case 'c':
- rendezvous_codgram = get_opt.optarg;
- break;
- default:
- print_usage_and_die ();
- break;
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- program_name = argv[0];
-
- parse_args (argc, argv);
-
- ACE_LSOCK_Dgram sd (ACE_Addr::sap_any);
- ACE_LSOCK_CODgram sc;
- int fd;
-
- if (sc.open (ACE_UNIX_Addr (rendezvous_codgram), ACE_Addr::sap_any) < 0)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), -1);
-
- if ((fd = ACE_OS::open (file_name, O_RDONLY)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), -1);
-
- /* Send the open file descriptor to the server! */
-
- if (sc.send_handle (fd) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send"), -1);
-
- char *name = ACE_OS::cuserid (0);
-
- if (sd.send (name, strlen (name) + 1, ACE_UNIX_Addr (rendezvous_dgram)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send"), -1);
-
- if (ACE_OS::close (fd) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "close"), -1);
-
- return 0;
-}
-#else
-int main (void)
-{
- ACE_ERROR_RETURN ((LM_ERROR, "your platform must support sendmsg/recvmsg to run this test\n"), -1);
-}
-#endif /* ACE_HAS_MSG */
diff --git a/examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp
deleted file mode 100644
index 577c140163e..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/local_fifo_client_test.cpp
+++ /dev/null
@@ -1,85 +0,0 @@
-/* Send a file through ACE_FIFO communication channel by
-// $Id$
-
- break it (the file) into pieces. */
-
-#include "ace/Mem_Map.h"
-#include "ace/FIFO_Send_Msg.h"
-
-#include "ace/Get_Opt.h"
-
-static const BUF_LEN = 256;
-
-// Name of the program.
-static char *program_name;
-
-// debug state on or off
-static int debug = 0;
-
-char *rendezvous_fifo = "/tmp/foo_fifo";
-
-/* Name of file to send. */
-static char *file_name = "./local_data";
-
-static void
-print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %s [-d] [-f rendezvous_fifo]\n%a",
- program_name, -1));
-}
-
-static void
-parse_arguments (int argc, char *argv[])
-{
- int tracing = 1;
- program_name = argv[0];
-
- ACE_Get_Opt get_opt (argc, argv, "df:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'd':
- debug = 1;
- break;
- case 'f':
- rendezvous_fifo = get_opt.optarg;
- break;
- default:
- print_usage_and_die ();
- break;
- }
-
- if (debug)
- ACE_DEBUG ((LM_DEBUG,
- "rendezvous_fifo = %s\n"
- "trace = %s\n",
- rendezvous_fifo, tracing ? "on" : "off"));
-}
-
-int
-main(int argc, char *argv[])
-{
- parse_arguments (argc, argv);
-
- ACE_FIFO_Send_Msg fifo;
-
- if (fifo.open ((const char *) rendezvous_fifo, O_WRONLY, 0666) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "Cannot open %s for requesting a new communication channel"
- "in local_fifo_client_test\n", rendezvous_fifo), -1);
-
-
- void *cp;
- ACE_Mem_Map mmap (file_name);
-
- if (mmap (cp) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "mmap"), -1);
-
- /* Next, send the file's contents. */
-
- ACE_Str_Buf msg (cp, int (mmap.size ()));
-
- if (fifo.send (msg) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send"), -1);
- return 0;
-}
diff --git a/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp
deleted file mode 100644
index fcc4c474bda..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/local_pipe_client_test.cpp
+++ /dev/null
@@ -1,122 +0,0 @@
-// Another test of UNIX domain IPC-SAP abstraction. This one opens 2
-// $Id$
-
-// pipes and then ships certain ends over to the server to act as a
-// filter!
-
-#include "ace/LSOCK_Connector.h"
-#include "ace/UNIX_Addr.h"
-
-#include "ace/Get_Opt.h"
-
-#if defined (ACE_HAS_MSG) && !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
-/* Name of the program. */
-static char *program_name;
-
-/* Name of rendezvous point. */
-static char *rendezvous = "/tmp/foo_pipe";
-
-/* Name of file to send. */
-static char *file_name = "local_data";
-
-static void
-print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %s [-r rendezvous] [-f file]\n%a",
- program_name, -1));
-}
-
-void
-parse_args (int argc, char *argv[])
-{
- program_name = argv[0];
-
- ACE_Get_Opt get_opt (argc, argv, "f:r:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'f':
- file_name = get_opt.optarg;
- break;
- case 'r':
- rendezvous = get_opt.optarg;
- break;
- default:
- print_usage_and_die ();
- break;
- }
-}
-
-int
-do_client_processing (ACE_LSOCK_Stream &sc)
-{
- int fd_read[2];
- int fd_write[2];
- char buf[BUFSIZ];
- int n;
- int fd1;
-
- if (ACE_OS::pipe (fd_read) == -1 || ACE_OS::pipe (fd_write) == -1)
- return -1;
-
- if (sc.send_handle (fd_write[0]) == -1 || sc.send_handle (fd_read[1]) == -1)
- return -1;
-
- /* Close off the ends we aren't interested in. */
-
- if (ACE_OS::close (fd_read[1]) || ACE_OS::close (fd_write[0]) == -1)
- return -1;
-
- /* Do a silly dup just for fun... */
-
- if ((fd1 = ACE_OS::open (file_name, O_RDONLY)) == -1)
- return -1;
-
- while ((n = ACE_OS::read (fd1, buf, sizeof buf)) > 0)
- {
- if (ACE_OS::write (fd_write[1], buf, n) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "write"), -1);
- if ((n = ACE_OS::read (fd_read[0], buf, sizeof buf)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "read"), -1);
- if (ACE_OS::write (ACE_STDOUT, buf, n) == -1)
- return -1;
- }
-
- if (ACE_OS::close (fd_read[0]) == -1
- || ACE_OS::close (fd_write[1]) == -1
- || ACE_OS::close (fd1) == -1)
- ACE_OS::exit (1);
-
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- parse_args (argc, argv);
-
- ACE_LSOCK_Stream sc;
- ACE_LSOCK_Connector con;
-
- if (con.connect (sc, ACE_UNIX_Addr (rendezvous)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "connect"), -1);
-
- if (do_client_processing (sc) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "do_client_processing"), -1);
-
-#if defined (SunOS4)
- ACE_OS::sleep (1);
-#endif /* SunOS4 */
-
- if (sc.close () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "close"), -1);
-
- return 0;
-}
-#else
-int main (void)
-{
- ACE_ERROR_RETURN ((LM_ERROR, "your platform must support sendmsg/recvmsg to run this test\n"), -1);
-}
-#endif /* ACE_HAS_MSG */
diff --git a/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp
deleted file mode 100644
index 268e10513db..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/local_spipe_client_test.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-/* Send a file through ACE_SPIPE communication channel by
-// $Id$
-
- break it (the file) into pieces. */
-
-#include "ace/Mem_Map.h"
-#include "ace/SPIPE_Connector.h"
-
-#include "ace/Get_Opt.h"
-
-#if defined (ACE_HAS_STREAM_PIPES)
-
-static char *program_name;
-
-// debug state on or off
-static int debug = 0;
-
-char *rendezvous_spipe = "/tmp/foo_spipe";
-
-/* Name of file to send. */
-static char *file_name = "./local_data";
-
-static void
-print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %s [-d] [-r rendezvous_spipe]\n%a",
- program_name, -1));
-}
-
-static void
-parse_arguments (int argc, char *argv[])
-{
- program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, "dr:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'd':
- debug = 1;
- break;
- case 'r':
- rendezvous_spipe = get_opt.optarg;
- break;
- default:
- print_usage_and_die ();
- break;
- }
- if (debug)
- ACE_DEBUG ((LM_DEBUG, "rendezvous_spipe = %s\n",
- rendezvous_spipe));
-}
-
-int
-main(int argc, char *argv[])
-{
- parse_arguments (argc, argv);
-
- ACE_SPIPE_Stream spipe;
- ACE_SPIPE_Connector con;
-
- if (con.connect (spipe, ACE_SPIPE_Addr (rendezvous_spipe)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Cannot open %s for requesting a new communication channel"
- " in local_spipe_client_test.\n", rendezvous_spipe), -1);
-
- ACE_Mem_Map mmap (file_name);
- void *cp;
-
- if (mmap (cp) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "mmap"), -1);
-
- /* Next, send the file's contents. */
-
- ACE_Str_Buf msg (cp, int (mmap.size ()));
-
- if (spipe.send ((ACE_Str_Buf *) 0, &msg) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send"), -1);
- return 0;
-}
-#else
-#include <stdio.h>
-int
-main (void)
-{
- ACE_ERROR_RETURN ((LM_ERROR, "This feature is not supported\n"), -1);
-}
-#endif /* ACE_HAS_STREAM_PIPES */
diff --git a/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp
deleted file mode 100644
index 6d01a999534..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/local_stream_client_test.cpp
+++ /dev/null
@@ -1,85 +0,0 @@
-/* Tests out the UNIX domain IPC-SAP abstraction. */
-// $Id$
-
-#include "ace/LSOCK_Connector.h"
-#include "ace/UNIX_Addr.h"
-
-#include "ace/Get_Opt.h"
-
-#if defined (ACE_HAS_MSG) && !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
-/* Name of the program. */
-static char *program_name;
-
-/* Name of rendezvous point. */
-static char *rendezvous = "/tmp/foo_stream";
-
-/* Name of file to send. */
-static char *file_name = "local_data";
-
-static void
-print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %s [-r rendezvous] [-f file]%a\n",
- program_name, -1));
-}
-
-void
-parse_args (int argc, char *argv[])
-{
- program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, "f:r:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'f':
- file_name = get_opt.optarg;
- break;
- case 'r':
- rendezvous = get_opt.optarg;
- break;
- default:
- print_usage_and_die ();
- break;
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- parse_args (argc, argv);
-
- int fd;
- char buf[BUFSIZ];
- int n;
-
- ACE_LSOCK_Stream sc;
- ACE_LSOCK_Connector con;
-
- if (con.connect (sc, ACE_UNIX_Addr (rendezvous)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "connect"), -1);
-
- if ((fd = ACE_OS::open (file_name, O_RDONLY)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), -1);
-
- /* Send the open file descriptor to the server! */
-
- if (sc.send_handle (fd) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send_handle"), -1);
-
- if ((n = sc.recv_n (buf, sizeof buf)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "recv"), -1);
- else
- ACE_OS::write (ACE_STDOUT, buf, n);
-
- if (ACE_OS::close (fd) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "close"), -1);
-
- return 0;
-}
-#else
-int main (void)
-{
- ACE_ERROR_RETURN ((LM_ERROR, "your platform must support sendmsg/recvmsg to run this test\n"), -1);
-}
-#endif /* ACE_HAS_MSG */
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_data b/examples/Service_Configurator/IPC-tests/client/remote_data
deleted file mode 100644
index ae7e1fbb88e..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_data
+++ /dev/null
@@ -1,22 +0,0 @@
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
-remoteremoteremoteremoteremoteremoteremoteremote
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_data1 b/examples/Service_Configurator/IPC-tests/client/remote_data1
deleted file mode 100644
index 6faaee46729..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_data1
+++ /dev/null
@@ -1,22 +0,0 @@
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
-remote1remote1remote1remote1remote1remote1remote1remote1
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_data2 b/examples/Service_Configurator/IPC-tests/client/remote_data2
deleted file mode 100644
index ae6bf12d49f..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_data2
+++ /dev/null
@@ -1,22 +0,0 @@
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
-remote2remote2remote2remote2remote2remote2remote2remote2
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_data3 b/examples/Service_Configurator/IPC-tests/client/remote_data3
deleted file mode 100644
index 7f2ec1aa81b..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_data3
+++ /dev/null
@@ -1,22 +0,0 @@
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
-remote3remote3remote3remote3remote3remote3remote3remote3
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_data4 b/examples/Service_Configurator/IPC-tests/client/remote_data4
deleted file mode 100644
index 6c5a9633d56..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_data4
+++ /dev/null
@@ -1,22 +0,0 @@
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
-remote4remote4remote4remote4remote4remote4remote4remote4
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp
deleted file mode 100644
index 8da500530be..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_dgram_client_test.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Tests out the Internet domain IPC-SAP dgram abstraction. */
-// $Id$
-
-
-#include "ace/Mem_Map.h"
-#include "ace/SOCK_Dgram.h"
-
-#include "ace/INET_Addr.h"
-#include "ace/Get_Opt.h"
-
-/* Name of the program. */
-static char *program_name;
-
-/* Port number to use. */
-static unsigned short port_number = ACE_DEFAULT_SERVER_PORT;
-
-/* Name of remote host. */
-static char *host_name = ACE_DEFAULT_SERVER_HOST;
-
-/* Name of file to send. */
-static char *file_name = "./remote_data";
-
-static void print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %s [-p portnum] [-h host_name] [-f file]\n%a",
- program_name, -1));
-}
-
-void
-parse_args (int argc, char *argv[])
-{
- program_name = argv[0];
-
- ACE_Get_Opt get_opt (argc, argv, "f:h:p:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'f':
- file_name = get_opt.optarg;
- break;
- case 'h':
- host_name = get_opt.optarg;
- break;
- case 'p':
- port_number = ACE_OS::atoi (get_opt.optarg);
- break;
- default:
- print_usage_and_die ();
- break;
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- parse_args (argc, argv);
-
- ACE_SOCK_Dgram sd (ACE_Addr::sap_any);
- void *cp;
- ACE_INET_Addr sa (port_number, host_name);
-
- ACE_Mem_Map mmap (file_name);
-
- if (mmap (cp) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "mmap"), -1);
-
- /* Next, send the file's contents. */
-
- int cc = sd.send (cp, mmap.size (), sa);
-
- if (cc == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send"), -1);
- else if (cc != mmap.size())
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n",
- "Not all the contents of mmap file are sent."), -1);
- return 0;
-}
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp
deleted file mode 100644
index dc99a8c0176..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_service_directory_test.cpp
+++ /dev/null
@@ -1,82 +0,0 @@
-// Test program for the INET IPC-SAPs...
-// $Id$
-
-
-
-#include "ace/SOCK_Connector.h"
-#include "ace/INET_Addr.h"
-#include "ace/Get_Opt.h"
-
-// Port number to use.
-static unsigned short port_number = ACE_DEFAULT_SERVICE_PORT;
-
-// Name of remote host.
-static char *host_name = ACE_DEFAULT_SERVER_HOST;
-
-// Trigger a remote reconfiguration.
-static int remote_reconfigure = 0;
-
-static void
-print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %n [-p portnum] [-h host_name] [-r] [-f file]\n%a", 1));
-}
-
-void
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opt (argc, argv, "p:h:r:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'h':
- host_name = get_opt.optarg;
- break;
- case 'p':
- port_number = ACE_OS::atoi (get_opt.optarg);
- break;
- case 'r':
- remote_reconfigure = 1;
- break;
- default:
- print_usage_and_die ();
- break;
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- ACE_LOG_MSG->open (argv[0]);
-
- parse_args (argc, argv);
- // Default is to ask the server for ``help.''
- static char buf[BUFSIZ] = "help";
- int n;
- ACE_SOCK_Stream sc;
- ACE_SOCK_Connector con;
-
- if (con.connect (sc, ACE_INET_Addr (port_number, host_name)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n%a", "connect", 1), -1);
-
- if (remote_reconfigure)
- // Remotely instruct the server to reconfigure itself.
- ACE_OS::strcpy (buf, "reconfigure");
-
- // Send the command.
-
- if (sc.send_n (buf, ACE_OS::strlen (buf) + 1) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n%a", "send", 1), -1);
-
- // Next, read the response.
-
- while ((n = sc.recv (buf, sizeof buf)) > 0)
- if (ACE_OS::write (ACE_STDOUT, buf, n) != n)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n%a", "write", 1), -1);
-
- if (sc.close () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n%a", "close", 1), -1);
-
- return 0;
-}
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp
deleted file mode 100644
index d439ea9ae88..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_stream_client_test.cpp
+++ /dev/null
@@ -1,105 +0,0 @@
-/* Test program for the INET IPC-SAPs... */
-// $Id$
-
-
-#include "ace/Mem_Map.h"
-
-#include "ace/SOCK_Connector.h"
-#include "ace/SOCK_CODgram.h"
-#include "ace/INET_Addr.h"
-#include "ace/Get_Opt.h"
-
-/* Name of the program. */
-static char *program_name;
-
-/* Port number to use. */
-static unsigned short port_number = ACE_DEFAULT_SERVER_PORT;
-
-/* Name of remote host. */
-static char *host_name = ACE_DEFAULT_SERVER_HOST;
-
-/* Name of file to send. */
-static char *file_name = "./remote_data";
-
-static void
-print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %s [-p portnum] [-h host_name] [-f file]\n%a",
- program_name, -1));
-}
-
-void
-parse_args (int argc, char *argv[])
-{
- program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, "f:h:p:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'f':
- file_name = get_opt.optarg;
- break;
- case 'h':
- host_name = get_opt.optarg;
- break;
- case 'p':
- port_number = ACE_OS::atoi (get_opt.optarg);
- break;
- default:
- print_usage_and_die ();
- break;
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- parse_args (argc, argv);
- ACE_INET_Addr sa (port_number, host_name);
- void *cp;
- char buf[BUFSIZ];
- int n;
- ACE_SOCK_CODgram dc;
-
- if (dc.open (sa, ACE_Addr::sap_any) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), -1);
-
- /* First send the name of the file as a datagram. */
-
- iovec iov[2];
-
- iov[0].iov_base = "filename: ";
- iov[0].iov_len = 11;
- iov[1].iov_base = file_name;
- iov[1].iov_len = ACE_OS::strlen (file_name);
-
- if (dc.send (iov, 2) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send"), -1);
-
- ACE_SOCK_Stream sc;
- ACE_SOCK_Connector con;
-
- if (con.connect (sc, sa) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "connect"), -1);
-
- ACE_Mem_Map mmap (file_name);
-
- if (mmap (cp) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "mmap"), -1);
-
- /* Next, send the file's contents. */
-
- if (sc.send_n (cp, mmap.size ()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send_urg"), -1);
-
- if (sc.close_writer () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "close_writer"), -1);
-
- if ((n = sc.recv_n (buf, sizeof buf)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "recv"), -1);
- else
- ACE_OS::write (ACE_STDOUT, buf, n);
-
- return 0;
-}
diff --git a/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp b/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp
deleted file mode 100644
index c9abb6dc2b9..00000000000
--- a/examples/Service_Configurator/IPC-tests/client/remote_thr_stream_client_test.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-/* Test program for the INET ACE_TLI-SAPs... */
-// $Id$
-
-
-#include "ace/Mem_Map.h"
-#include "ace/TLI_Connector.h"
-#include "ace/INET_Addr.h"
-
-
-#include "ace/Get_Opt.h"
-
-#if defined (ACE_HAS_TLI)
-
-/* Name of the program. */
-static char *program_name;
-
-/* Port number to use. */
-static unsigned short port_number = ACE_DEFAULT_THR_PORT;
-
-/* Name of remote host. */
-static char *host_name = ACE_DEFAULT_SERVER_HOST;
-
-/* Name of file to send. */
-static char *file_name = "./remote_data";
-
-static void print_usage_and_die (void)
-{
- ACE_ERROR ((LM_ERROR, "usage: %s [-p portnum] [-h host_name] [-f file]\n%a",
- program_name, -1));
-}
-
-void
-parse_args (int argc, char *argv[])
-{
- program_name = argv[0];
- ACE_Get_Opt get_opt (argc, argv, "f:h:p:");
-
- for (int c; (c = get_opt ()) != -1; )
- switch (c)
- {
- case 'f':
- file_name = get_opt.optarg;
- break;
- case 'h':
- host_name = get_opt.optarg;
- break;
- case 'p':
- port_number = ACE_OS::atoi (get_opt.optarg);
- break;
- default:
- print_usage_and_die ();
- break;
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- parse_args (argc, argv);
- void *cp;
- char buf[BUFSIZ];
- ACE_TLI_Stream sc;
- ACE_TLI_Connector con;
-
- if (con.connect (sc, ACE_INET_Addr (port_number, host_name)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "open"), -1);
-
- ACE_Mem_Map mmap (file_name, PROT_READ);
-
- if (mmap (cp) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "mmap"), -1);
-
- /* Next, send the file's contents. */
-
- if (sc.send_n (cp, mmap.size ()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "send_n"), -1);
-
- if (sc.sndrel () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "close_writer"), -1);
-
- for (int n; (n = sc.recv (buf, sizeof buf)) > 0; )
- if (ACE_OS::write (ACE_STDOUT, buf, n) != n)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "write"), -1);
-
- if (sc.close () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "close"), -1);
-
- return 0;
-}
-#else
-int
-main (void)
-{
- ACE_ERROR_RETURN ((LM_ERROR, "you must have TLI to run this test\n"), 1);
-}
-#endif /* ACE_HAS_TLI */