summaryrefslogtreecommitdiff
path: root/examples/Connection/blocking
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Connection/blocking')
-rw-r--r--examples/Connection/blocking/README36
-rw-r--r--examples/Connection/blocking/SPIPE-acceptor.cpp205
-rw-r--r--examples/Connection/blocking/SPIPE-acceptor.h70
-rw-r--r--examples/Connection/blocking/SPIPE-connector.cpp242
-rw-r--r--examples/Connection/blocking/SPIPE-connector.h80
-rw-r--r--examples/Connection/blocking/SPIPE.dsp77
-rw-r--r--examples/Connection/blocking/SPIPE.dsw41
-rw-r--r--examples/Connection/blocking/acceptor.dsp77
-rw-r--r--examples/Connection/blocking/test_spipe_acceptor.cpp22
-rw-r--r--examples/Connection/blocking/test_spipe_connector.cpp21
10 files changed, 0 insertions, 871 deletions
diff --git a/examples/Connection/blocking/README b/examples/Connection/blocking/README
deleted file mode 100644
index c7763e3ed04..00000000000
--- a/examples/Connection/blocking/README
+++ /dev/null
@@ -1,36 +0,0 @@
-Presently, this directory contains only one example application for
-SPIPEs. The test source code is contained in SPIPE-acceptor.h and
-SPIPE-connector.h.
-
-The SPIPE-acceptor example illustrates how named pipes are used on NT.
-Once the server establishes a connection to a single client, it spawns
-a thread pool to handle incoming requests via the proactor event loop.
-That is, a separate thread from the pool is used to process each
-message sent by a client. The size of the thread pool can be
-specified by command-line arguments. This example leverages the
-queueing performed by the NT kernel to trivially implement a thread
-pool architecture.
-
-test_spipe_acceptor has the following command-line arguments:
-
-test_spipe_acceptor -t <threads>
-
-<threads> specifies the size of the thread-pool running in the
-proactor event loop.
-
-Here's how to run the tests:
-
-% test_spipe_acceptor -t 1000000
-starting up daemon test_sock_acceptor
-Opening acepipe
-hello
-
-% test_spipe_connector
-starting up daemon test_sock_connector
-Opening acepipe
-activating 5
-
-please enter input..: hello
-
-There are a number of other options that you can provide. Please see
-the source code for details.
diff --git a/examples/Connection/blocking/SPIPE-acceptor.cpp b/examples/Connection/blocking/SPIPE-acceptor.cpp
deleted file mode 100644
index a94e9cb441b..00000000000
--- a/examples/Connection/blocking/SPIPE-acceptor.cpp
+++ /dev/null
@@ -1,205 +0,0 @@
-// $Id$
-
-#if !defined (SPIPE_ACCEPTOR_C)
-#define SPIPE_ACCEPTOR_C
-
-#include "ace/SPIPE_Addr.h"
-#include "ace/SPIPE_Acceptor.h"
-#include "ace/Proactor.h"
-#include "ace/Get_Opt.h"
-#include "SPIPE-acceptor.h"
-
-ACE_RCSID(blocking, SPIPE_acceptor, "$Id$")
-
-Svc_Handler::Svc_Handler (void)
- : mb_ (BUFSIZ + 1)
-{
- // An extra byte for null termination.
- this->mb_.size (BUFSIZ);
-}
-
-Svc_Handler::~Svc_Handler (void)
-{
-}
-
-int
-Svc_Handler::open (void *)
-{
- ACE_DEBUG ((LM_DEBUG,
- "client connected on handle %d\n",
- this->peer ().get_handle ()));
- if (this->ar_.open (*this,
- this->peer ().get_handle ()) == -1)
- return -1;
- return this->ar_.read (this->mb_,
- this->mb_.size ());
-}
-
-void
-Svc_Handler::handle_read_stream (const ACE_Asynch_Read_Stream::Result &result)
-{
- if (result.success () && result.bytes_transferred () > 0)
- {
- result.message_block ().rd_ptr ()[result.message_block ().length ()] = '\0';
-
- // Print out the message received from the server.
- ACE_DEBUG ((LM_DEBUG,
- "(%t) message size %d.\n",
- result.message_block ().length ()));
- ACE_DEBUG ((LM_DEBUG,
- "%s",
- result.message_block ().rd_ptr ()));
-
- this->ar_.read (this->mb_,
- this->mb_.size ());
- }
- else
- ACE_Proactor::end_event_loop();
-}
-
-IPC_Server::IPC_Server (void)
- : n_threads_ (1),
- done_handler_ (ACE_Sig_Handler_Ex (ACE_Proactor::end_event_loop))
-{
- ACE_OS::strcpy (rendezvous_, ACE_TEXT ("acepipe"));
-}
-
-IPC_Server::~IPC_Server (void)
-{
-}
-
-int
-IPC_Server::init (int argc, char *argv[])
-{
- if (this->parse_args (argc,
- argv) == -1)
- return -1;
-
- ACE_DEBUG ((LM_DEBUG,
- "Opening %s\n",
- ACE_MULTIBYTE_STRING (rendezvous_)));
-
- // Initialize named pipe listener.
- if (this->open (ACE_SPIPE_Addr (rendezvous_)) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "open"), 1);
-
- // Register to receive shutdowns.
- else if (ACE_Reactor::instance ()->register_handler
- (SIGINT,
- &this->done_handler_) == -1)
- return -1;
- else
- return 0;
-}
-
-int
-IPC_Server::fini (void)
-{
- return 0;
-}
-
-int
-IPC_Server::parse_args (int argc, char *argv[])
-{
- ACE_LOG_MSG->open (argv[0]);
-
- ACE_Get_Opt get_opt (argc, argv, "ut:r:");
-
- for (int c; (c = get_opt ()) != -1; )
- {
- switch (c)
- {
- case 'r':
- ACE_OS::strncpy (rendezvous_,
- ACE_WIDE_STRING (get_opt.optarg),
- sizeof rendezvous_ / sizeof TCHAR);
- break;
- case 't':
- n_threads_ = ACE_OS::atoi (get_opt.optarg);
- ACE_DEBUG ((LM_DEBUG, "%s == %d.\n",
- get_opt.optarg,
- n_threads_));
- ACE_Proactor::instance (2 * n_threads_);
- // This is a lame way to tell the proactor how many threads
- // we'll be using.
- break;
- case 'u':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %n -t <threads>\n"
- "-r <rendezvous>\n"), -1);
- break;
- }
- }
-
- return 0;
-}
-
-static void *
-run_reactor_event_loop (void *)
-{
- ACE_DEBUG ((LM_DEBUG, "(%t) worker thread starting\n"));
-
- ACE_Proactor::run_event_loop ();
- return 0;
-}
-
-int
-IPC_Server::svc (void)
-{
- // Performs the iterative server activities.
- while (ACE_Reactor::event_loop_done() == 0)
- {
- Svc_Handler sh;
-
- // Create a new SH endpoint, which performs all processing in
- // its open() method (note no automatic restart if errno ==
- // EINTR).
- if (this->accept (&sh, 0) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "accept"),
- 1);
-
- // SH's destructor closes the stream implicitly but the
- // listening endpoint stays open.
- else
- {
- // Run single-threaded.
- if (n_threads_ <= 1)
- run_reactor_event_loop (0);
- else if (ACE_Thread_Manager::instance ()->spawn_n
- (n_threads_,
- run_reactor_event_loop,
- 0,
- THR_NEW_LWP) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "spawn_n"),
- 1);
-
- ACE_Thread_Manager::instance ()->wait ();
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "(%t) main thread exiting.\n"));
- }
- }
-
- /* NOTREACHED */
- return 0;
-}
-
-#endif /* SPIPE_ACCEPTOR_C */
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Concurrency_Strategy<Svc_Handler>;
-template class ACE_Oneshot_Acceptor<Svc_Handler, ACE_SPIPE_ACCEPTOR>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Concurrency_Strategy<Svc_Handler>
-#pragma instantiate ACE_Oneshot_Acceptor<Svc_Handler, ACE_SPIPE_ACCEPTOR>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
-
diff --git a/examples/Connection/blocking/SPIPE-acceptor.h b/examples/Connection/blocking/SPIPE-acceptor.h
deleted file mode 100644
index 84253f2e37c..00000000000
--- a/examples/Connection/blocking/SPIPE-acceptor.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-#ifndef SP_ACCEPTOR_H
-#define SP_ACCEPTOR_H
-
-#include "ace/Svc_Handler.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Acceptor.h"
-#include "ace/SPIPE_Stream.h"
-#include "ace/SPIPE_Acceptor.h"
-#include "ace/Asynch_IO.h"
-
-// This is the class that does the work once the ACE_Oneshot_Acceptor
-// has accepted a connection.
-
-class Svc_Handler : public ACE_Svc_Handler <ACE_SPIPE_STREAM, ACE_NULL_SYNCH>, public ACE_Handler
-{
-public:
- Svc_Handler (void);
- ~Svc_Handler (void);
-
- virtual int open (void *);
-
- virtual void handle_read_stream (const ACE_Asynch_Read_Stream::Result &result);
- // This is called when asynchronous read from the socket complete
- // Handle data from the client.
-
-private:
- ACE_Asynch_Read_Stream ar_;
- ACE_Message_Block mb_;
-};
-
-class IPC_Server : public ACE_Oneshot_Acceptor<Svc_Handler, ACE_SPIPE_ACCEPTOR>
-{
-public:
- IPC_Server (void);
- ~IPC_Server (void);
-
- // = Dynamic linking hooks.
- virtual int init (int argc, char *argv[]);
- // Initialize the network server.
-
- virtual int fini (void);
- // Close down the server.
-
- virtual int svc (void);
- // Run the interative service.
-
-private:
- int parse_args (int argc, char *argv[]);
- // Parse command-line arguments.
-
- int n_threads_;
- // Size of thread pool to use.
-
- TCHAR rendezvous_[MAXPATHLEN + 1];
- // Meeting place for pipe.
-
- ACE_Sig_Adapter done_handler_;
- // Keeps track of when we shut down due to receipt of the SIGINT
- // signal.
-};
-
-#endif /* SP_ACCEPTOR_H */
-
diff --git a/examples/Connection/blocking/SPIPE-connector.cpp b/examples/Connection/blocking/SPIPE-connector.cpp
deleted file mode 100644
index bd0956354a5..00000000000
--- a/examples/Connection/blocking/SPIPE-connector.cpp
+++ /dev/null
@@ -1,242 +0,0 @@
-// $Id$
-
-#if !defined (SPIPE_CONNECTOR_C)
-
-#define SPIPE_CONNECTOR_C
-
-#include "ace/SPIPE_Addr.h"
-#include "ace/SPIPE_Connector.h"
-#include "ace/Proactor.h"
-#include "ace/Get_Opt.h"
-#include "SPIPE-connector.h"
-
-ACE_RCSID(blocking, SPIPE_connector, "$Id$")
-
-Peer_Handler::Peer_Handler (int iterations)
- : iterations_ (iterations)
-{
-}
-
-Peer_Handler::~Peer_Handler (void)
-{
-}
-
-int
-Peer_Handler::open (void *)
-{
- ACE_DEBUG ((LM_DEBUG,
- "activating %d\n",
- this->get_handle ()));
-
- // If iterations_ has not been set, read from stdin.
- if (iterations_ == 0)
- {
- this->display_menu ();
- if (ACE_Event_Handler::register_stdin_handler
- (this,
- ACE_Reactor::instance (),
- ACE_Thread_Manager::instance ()) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "register_stdin_handler"),
- -1);
- else
- return 0;
- }
- else // If iterations_ has been set, send iterations_ buffers.
- {
- char *buffer =
- "Oh give me a home\n"
- "Where the buffalo roam,\n"
- "And the deer and the antelope play.\n"
- "Where seldom is heard\n"
- "A discouraging word,\n"
- "And the skies are not cloudy all day.\n";
- int length = ACE_OS::strlen (buffer);
-
- while (iterations_-- > 0
- && this->peer ().send_n (buffer,
- length) == length)
- continue;
-
- this->peer ().close ();
- ACE_Reactor::end_event_loop();
- return 0;
- }
-}
-
-int
-Peer_Handler::handle_input (ACE_HANDLE)
-{
- char buf[BUFSIZ];
-
- ssize_t n = ACE_OS::read (ACE_STDIN,
- buf,
- sizeof buf);
-
- if (n > 0)
- if (this->peer ().send (buf, n) != n)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "write failed"),
- -1);
- else if (n == 0) // Explicitly close the connection.
- {
- if (this->peer ().close () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "close"),
- 1);
- return -1;
- }
- else
- this->display_menu ();
- return 0;
-}
-
-int
-Peer_Handler::handle_close (ACE_HANDLE,
- ACE_Reactor_Mask)
-{
- ACE_DEBUG ((LM_DEBUG,
- "Shutting down\n"));
- return 0;
-}
-
-ACE_HANDLE
-Peer_Handler::get_handle (void) const
-{
- return this->peer ().get_handle ();
-}
-
-void
-Peer_Handler::display_menu (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\nplease enter input..: "));
-}
-
-IPC_Client::IPC_Client (void)
- : iterations_ (0),
- done_handler_ (ACE_Sig_Handler_Ex (ACE_Proactor::end_event_loop))
-{
- ACE_OS::strcpy (rendezvous_,
- ACE_TEXT ("acepipe"));
-}
-
-IPC_Client::~IPC_Client (void)
-{
-}
-
-// Dynamic linking hooks.
-
-int
-IPC_Client::init (int argc, char *argv[])
-{
- if (this->parse_args (argc, argv) == -1)
- return -1;
- // Handle signals through the ACE_Reactor.
- else if (ACE_Reactor::instance ()->register_handler
- (SIGINT,
- &this->done_handler_) == -1)
- return -1;
-
- ACE_DEBUG ((LM_DEBUG,
- "Opening %s\n",
- ACE_MULTIBYTE_STRING (rendezvous_)));
-
- Peer_Handler *ph;
-
- ACE_NEW_RETURN (ph,
- Peer_Handler (iterations_),
- -1);
-
- // Connect to the peer, reusing the local addr if necessary.
- if (this->connect (ph,
- ACE_SPIPE_Addr (rendezvous_),
- ACE_Synch_Options::defaults,
- ACE_sap_any_cast (ACE_SPIPE_Addr &),
- 0,
- O_RDWR | FILE_FLAG_OVERLAPPED,
- 0) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "%p\n",
- "connect"),
- -1);
-
- return 0;
-}
-
-int
-IPC_Client::fini (void)
-{
- return 0;
-}
-
-int
-IPC_Client::svc (void)
-{
- ACE_Reactor::run_event_loop ();
- return 0;
-}
-
-int
-IPC_Client::handle_close (ACE_HANDLE,
- ACE_Reactor_Mask)
-{
- return 0;
-}
-
-int
-IPC_Client::parse_args (int argc, char *argv[])
-{
- ACE_LOG_MSG->open (argv[0]);
-
- ACE_Get_Opt get_opt (argc, argv, "ui:r:");
-
- for (int c; (c = get_opt ()) != -1; )
- {
- switch (c)
- {
- case 'r':
- ACE_OS::strncpy (rendezvous_,
- ACE_WIDE_STRING (get_opt.optarg),
- sizeof rendezvous_ / sizeof TCHAR);
- break;
- case 'i':
- iterations_ = ACE_OS::atoi (get_opt.optarg);
- break;
- case 'u':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %n -i <iterations>\n"
- "-r <rendezvous>\n"),
- -1);
- break;
- }
- }
-
- return 0;
-}
-
-
-#endif /* SPIPE_CONNECTOR */
-
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Connector<Peer_Handler, ACE_SPIPE_CONNECTOR>;
-template class ACE_Map_Iterator_Base<ACE_HANDLE, ACE_Svc_Tuple<Peer_Handler> *, ACE_SYNCH_RW_MUTEX>;
-template class ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<Peer_Handler> *, ACE_SYNCH_RW_MUTEX>;
-template class ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_Svc_Tuple<Peer_Handler> *, ACE_SYNCH_RW_MUTEX>;
-template class ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<Peer_Handler> *, ACE_SYNCH_RW_MUTEX>;
-template class ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_NULL_SYNCH>;
-template class ACE_Svc_Tuple<Peer_Handler>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Connector<Peer_Handler, ACE_SPIPE_CONNECTOR>
-#pragma instantiate ACE_Map_Iterator_Base<ACE_HANDLE, ACE_Svc_Tuple<Peer_Handler> *, ACE_SYNCH_RW_MUTEX>
-#pragma instantiate ACE_Map_Iterator<ACE_HANDLE, ACE_Svc_Tuple<Peer_Handler> *, ACE_SYNCH_RW_MUTEX>
-#pragma instantiate ACE_Map_Reverse_Iterator<ACE_HANDLE, ACE_Svc_Tuple<Peer_Handler> *, ACE_SYNCH_RW_MUTEX>
-#pragma instantiate ACE_Map_Manager<ACE_HANDLE, ACE_Svc_Tuple<Peer_Handler> *, ACE_SYNCH_RW_MUTEX>
-#pragma instantiate ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_NULL_SYNCH>
-#pragma instantiate ACE_Svc_Tuple<Peer_Handler>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/examples/Connection/blocking/SPIPE-connector.h b/examples/Connection/blocking/SPIPE-connector.h
deleted file mode 100644
index d9ea2d32629..00000000000
--- a/examples/Connection/blocking/SPIPE-connector.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-#ifndef SP_CONNECTOR_H
-#define SP_CONNECTOR_H
-
-#include "ace/Svc_Handler.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/SPIPE_Stream.h"
-#include "ace/Connector.h"
-#include "ace/SPIPE_Connector.h"
-
-class Peer_Handler : public ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_NULL_SYNCH>
-{
-public:
- // = Initialization
-
- Peer_Handler (int iterations = 0);
- // <iterations> is the number of buffers to send. If <iterations>
- // == 0, then read from stdin.
-
- ~Peer_Handler (void);
-
- virtual int open (void * = 0);
- // Activate the handler when connection is established.
-
- // = Demultiplexing hooks.
- virtual int handle_input (ACE_HANDLE);
- virtual int handle_close (ACE_HANDLE handle = ACE_INVALID_HANDLE,
- ACE_Reactor_Mask mask = ACE_Event_Handler::ALL_EVENTS_MASK);
-
- virtual ACE_HANDLE get_handle (void) const;
-
-private:
- void display_menu (void);
-
- int iterations_;
- // No. of buffers to send.
-};
-
-class IPC_Client : public ACE_Connector<Peer_Handler, ACE_SPIPE_CONNECTOR>
-{
-public:
- // Initialization
- IPC_Client (void);
- ~IPC_Client (void);
-
- // = Dynamic linking hooks.
- virtual int init (int argc, char *argv[]);
- // Initialize the IPC client.
-
- virtual int fini (void);
- // Destroy the IPC client.
-
- virtual int svc (void);
- // Run the svc.
-
- virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask);
- // Report connection errors.
-
-private:
- int parse_args (int argc, char *argv[]);
- // Parse command-line arguments.
-
- int iterations_;
- // Number of times to send a buffer.
-
- TCHAR rendezvous_[MAXPATHLEN + 1];
- // Meeting place for pipe.
-
- ACE_Sig_Adapter done_handler_;
- // Keeps track of when we shut down due to receipt of the SIGINT
- // signal.
-};
-
-#endif /* SP_CONNECTOR_H */
diff --git a/examples/Connection/blocking/SPIPE.dsp b/examples/Connection/blocking/SPIPE.dsp
deleted file mode 100644
index 8f1c17d817f..00000000000
--- a/examples/Connection/blocking/SPIPE.dsp
+++ /dev/null
@@ -1,77 +0,0 @@
-# Microsoft Developer Studio Project File - Name="connector" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=connector - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "SPIPE.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "SPIPE.mak" CFG="connector - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "connector - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir ".\connector\Debug"
-# PROP BASE Intermediate_Dir ".\connector\Debug"
-# PROP BASE Target_Dir ".\connector"
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "."
-# PROP Intermediate_Dir ".\Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ".\connector"
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386
-# ADD LINK32 aced.lib /nologo /subsystem:console /debug /machine:I386 /libpath:"..\..\..\ace"
-# Begin Target
-
-# Name "connector - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90"
-# Begin Source File
-
-SOURCE=".\SPIPE-connector.cpp"
-# End Source File
-# Begin Source File
-
-SOURCE=.\test_spipe_connector.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd"
-# Begin Source File
-
-SOURCE=".\SPIPE-connector.h"
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/examples/Connection/blocking/SPIPE.dsw b/examples/Connection/blocking/SPIPE.dsw
deleted file mode 100644
index 6fd9df54eee..00000000000
--- a/examples/Connection/blocking/SPIPE.dsw
+++ /dev/null
@@ -1,41 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "acceptor"=.\acceptor.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "connector"=.\SPIPE.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/examples/Connection/blocking/acceptor.dsp b/examples/Connection/blocking/acceptor.dsp
deleted file mode 100644
index 27e354e1c67..00000000000
--- a/examples/Connection/blocking/acceptor.dsp
+++ /dev/null
@@ -1,77 +0,0 @@
-# Microsoft Developer Studio Project File - Name="acceptor" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=acceptor - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "acceptor.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "acceptor.mak" CFG="acceptor - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "acceptor - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir ".\acceptor\Debug"
-# PROP BASE Intermediate_Dir ".\acceptor\Debug"
-# PROP BASE Target_Dir ".\acceptor"
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "."
-# PROP Intermediate_Dir ".\Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ".\acceptor"
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386
-# ADD LINK32 aced.lib /nologo /subsystem:console /debug /machine:I386 /libpath:"..\..\..\ace"
-# Begin Target
-
-# Name "acceptor - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90"
-# Begin Source File
-
-SOURCE=".\SPIPE-acceptor.cpp"
-# End Source File
-# Begin Source File
-
-SOURCE=.\test_spipe_acceptor.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd"
-# Begin Source File
-
-SOURCE=".\SPIPE-acceptor.h"
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/examples/Connection/blocking/test_spipe_acceptor.cpp b/examples/Connection/blocking/test_spipe_acceptor.cpp
deleted file mode 100644
index 60543f0ef25..00000000000
--- a/examples/Connection/blocking/test_spipe_acceptor.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// $Id$
-
-// ACE_SPIPE Server.
-
-#include "SPIPE-acceptor.h"
-
-ACE_RCSID(blocking, test_spipe_acceptor, "$Id$")
-
-int
-main (int argc, char *argv[])
-{
- // Perform Service_Config initializations
- ACE_Service_Config daemon (argv[0]);
-
- IPC_Server peer_acceptor;
-
- if (peer_acceptor.init (argc, argv) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "init"), -1);
-
- return peer_acceptor.svc ();
-}
-
diff --git a/examples/Connection/blocking/test_spipe_connector.cpp b/examples/Connection/blocking/test_spipe_connector.cpp
deleted file mode 100644
index 24156ca862e..00000000000
--- a/examples/Connection/blocking/test_spipe_connector.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// $Id$
-
-// ACE_SPIPE Client.
-
-#include "SPIPE-connector.h"
-
-ACE_RCSID(blocking, test_spipe_connector, "$Id$")
-
-int
-main (int argc, char *argv[])
-{
- // Perform Service_Config initializations
- ACE_Service_Config daemon (argv[0]);
-
- IPC_Client peer_connector;
-
- if (peer_connector.init (argc, argv) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "init"), -1);
-
- return peer_connector.svc ();
-}