summaryrefslogtreecommitdiff
path: root/examples/Reactor/Dgram
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Reactor/Dgram')
-rw-r--r--examples/Reactor/Dgram/CODgram.cpp250
-rw-r--r--examples/Reactor/Dgram/CODgram.dsp89
-rw-r--r--examples/Reactor/Dgram/Dgram.cpp254
-rw-r--r--examples/Reactor/Dgram/Dgram.dsp89
-rw-r--r--examples/Reactor/Dgram/Dgram.dsw41
-rw-r--r--examples/Reactor/Dgram/Makefile199
6 files changed, 0 insertions, 922 deletions
diff --git a/examples/Reactor/Dgram/CODgram.cpp b/examples/Reactor/Dgram/CODgram.cpp
deleted file mode 100644
index 5505bcb7ab0..00000000000
--- a/examples/Reactor/Dgram/CODgram.cpp
+++ /dev/null
@@ -1,250 +0,0 @@
-// $Id$
-
-// Exercise the <ACE_SOCK_CODgram> wrapper along with the
-// <ACE_Reactor>. This test simply ping-pongs datagrams back and
-// forth between the peer1 and peer2 processes. This test can
-// be run in two ways:
-//
-// 1. Stand-alone -- e.g.,
-//
-// % ./CODgram
-//
-// which will spawn a child process and run peer1 and peer2
-// in different processes on the same machine.
-//
-// 2. Distributed -- e.g.,
-//
-// # Peer1
-// % ./CODgram 10002 tango.cs.wustl.edu 10003 peer1
-//
-// # Peer1
-// % ./CODgram 10003 tango.cs.wustl.edu 10002 peer2
-//
-// which will run peer1 and peer2 in different processes
-// on the same or different machines. Note that you MUST
-// give the name "peer1" as the final argument to one and
-// only one of the programs so that the test will work properly.
-
-#include "ace/Reactor.h"
-#include "ace/SOCK_CODgram.h"
-#include "ace/INET_Addr.h"
-#include "ace/Process.h"
-
-ACE_RCSID(Dgram, CODgram, "$Id$")
-
-// Port used to receive for dgrams.
-static u_short port1;
-
-class Dgram_Endpoint : public ACE_Event_Handler
-{
-public:
- Dgram_Endpoint (const ACE_INET_Addr &remote_addr,
- const ACE_INET_Addr &local_addr);
-
- // = Hook methods inherited from the <ACE_Event_Handler>.
- virtual ACE_HANDLE get_handle (void) const;
- virtual int handle_input (ACE_HANDLE handle);
- virtual int handle_timeout (const ACE_Time_Value & tv,
- const void *arg = 0);
-
- virtual int handle_close (ACE_HANDLE handle,
- ACE_Reactor_Mask close_mask);
-
- int send (const char *buf, size_t len);
- // Send the <buf> to the peer.
-
-private:
- ACE_SOCK_CODgram endpoint_;
- // Wrapper for sending/receiving dgrams.
-};
-
-int
-Dgram_Endpoint::send (const char *buf, size_t len)
-{
- return this->endpoint_.send (buf, len);
-}
-
-int
-Dgram_Endpoint::handle_close (ACE_HANDLE handle,
- ACE_Reactor_Mask)
-{
- ACE_UNUSED_ARG (handle);
-
- this->endpoint_.close ();
- return 0;
-}
-
-Dgram_Endpoint::Dgram_Endpoint (const ACE_INET_Addr &remote_addr,
- const ACE_INET_Addr &local_addr)
- : endpoint_ (remote_addr, local_addr)
-{
-}
-
-ACE_HANDLE
-Dgram_Endpoint::get_handle (void) const
-{
- return this->endpoint_.get_handle ();
-}
-
-int
-Dgram_Endpoint::handle_input (ACE_HANDLE)
-{
- char buf[BUFSIZ];
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) activity occurred on handle %d!\n",
- this->endpoint_.get_handle ()));
-
- ssize_t n = this->endpoint_.recv (buf, sizeof buf);
-
- if (n == -1)
- ACE_ERROR ((LM_ERROR,
- "%p\n",
- "handle_input"));
- else
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) buf of size %d = %*s\n",
- n, n, buf));
- return 0;
-}
-
-int
-Dgram_Endpoint::handle_timeout (const ACE_Time_Value &,
- const void *)
-{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) timed out for endpoint\n"));
- return 0;
-}
-
-static int
-run_test (u_short localport,
- const char *remotehost,
- u_short remoteport,
- const char *peer)
-{
- ACE_INET_Addr remote_addr (remoteport,
- remotehost);
- ACE_INET_Addr local_addr (localport);
-
- Dgram_Endpoint endpoint (remote_addr, local_addr);
-
- // Read data from other side.
- if (ACE_Reactor::instance ()->register_handler
- (&endpoint,
- ACE_Event_Handler::READ_MASK) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "ACE_Reactor::register_handler"),
- -1);
- char buf[BUFSIZ];
- ACE_OS::strcpy (buf,
- "Data to transmit");
- size_t len = ACE_OS::strlen (buf);
-
- // "peer1" is the "initiator."
- if (ACE_OS::strncmp (peer, "peer1", 5) == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) sending data\n"));
- for (size_t i = 0; i < 20; i++)
- {
- endpoint.send (buf, len);
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) .\n"));
- ACE_OS::sleep (1);
- }
- }
-
- for (int i = 0; i < 40; i++)
- {
- // Wait up to 10 seconds for data.
- ACE_Time_Value tv (10, 0);
-
- if (ACE_Reactor::instance ()->handle_events (tv) <= 0)
- ACE_ERROR_RETURN ((LM_DEBUG,
- "(%P|%t) %p\n",
- "handle_events"),
- -1);
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) return from handle events\n"));
-
- endpoint.send (buf, len);
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) .\n"));
- }
-
- if (ACE_Reactor::instance ()->remove_handler
- (&endpoint,
- ACE_Event_Handler::READ_MASK) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "ACE_Reactor::remove_handler"),
- -1);
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) exiting\n"));
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- // Estabish call backs and socket names.
-
- port1 = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_SERVER_PORT;
- const char *remotehost = argc > 2 ? argv[2] : ACE_DEFAULT_SERVER_HOST;
- const u_short port2 = argc > 3 ? ACE_OS::atoi (argv[3]) : port1 + 1;
-
- // Providing the fourth command line argument indicates we don't
- // want to spawn a new process. On Win32, we use this to exec the
- // new program.
- if (argc > 4)
- run_test (port1,
- remotehost,
- port2,
- argv[4]);
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) local port = %d, remote host = %s, remote port = %d\n",
- port1,
- remotehost,
- port2));
-
- ACE_Process_Options options;
- options.command_line ("%s %d %s %d %c",
- argv[0],
- port1,
- remotehost,
- port2,
- 'c');
-
- // This has no effect on NT and will spawn a process that exec
- // the above run_test function.
- options.creation_flags (ACE_Process_Options::NO_EXEC);
-
- ACE_Process new_process;
-
- switch (new_process.spawn (options))
- {
- case -1:
- return -1;
-
- case 0:
- run_test (port1,
- remotehost,
- port2,
- "peer1");
- break;
-
- default:
- run_test (port2,
- remotehost,
- port1,
- "peer2");
- new_process.wait ();
- break;
- }
- }
-
- return 0;
-}
diff --git a/examples/Reactor/Dgram/CODgram.dsp b/examples/Reactor/Dgram/CODgram.dsp
deleted file mode 100644
index 48c03263393..00000000000
--- a/examples/Reactor/Dgram/CODgram.dsp
+++ /dev/null
@@ -1,89 +0,0 @@
-# Microsoft Developer Studio Project File - Name="CODgram" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=CODgram - 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 "CODgram.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 "CODgram.mak" CFG="CODgram - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "CODgram - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "CODgram - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "CODgram - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-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 /machine:I386
-# ADD LINK32 ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace"
-
-!ELSEIF "$(CFG)" == "CODgram - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /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 /pdbtype:sept
-# ADD LINK32 aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "CODgram - Win32 Release"
-# Name "CODgram - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\CODgram.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/examples/Reactor/Dgram/Dgram.cpp b/examples/Reactor/Dgram/Dgram.cpp
deleted file mode 100644
index 2263b98880f..00000000000
--- a/examples/Reactor/Dgram/Dgram.cpp
+++ /dev/null
@@ -1,254 +0,0 @@
-// $Id$
-
-// Exercise the <ACE_SOCK_Dgram> wrapper along with the <ACE_Reactor>.
-// This test simply ping-pongs datagrams back and forth between the
-// peer1 and peer2 processes. This test can be run in two ways:
-//
-// 1. Stand-alone -- e.g.,
-//
-// % ./Dgram
-//
-// which will spawn a child process and run peer1 and peer2
-// in different processes on the same machine.
-//
-// 2. Distributed -- e.g.,
-//
-// # Peer1
-// % ./Dgram 10002 tango.cs.wustl.edu 10003 peer1
-//
-// # Peer1
-// % ./Dgram 10003 tango.cs.wustl.edu 10002 peer2
-//
-// which will run peer1 and peer2 in different processes
-// on the same or different machines. Note that you MUST
-// give the name "peer1" as the final argument to one and
-// only one of the programs so that the test will work properly.
-
-#include "ace/Reactor.h"
-#include "ace/Process.h"
-#include "ace/SOCK_Dgram.h"
-#include "ace/INET_Addr.h"
-
-ACE_RCSID(Dgram, Dgram, "$Id$")
-
-// Port used to receive for dgrams.
-static u_short port1;
-
-class Dgram_Endpoint : public ACE_Event_Handler
-{
-public:
- Dgram_Endpoint (const ACE_INET_Addr &local_addr);
-
- // = Hook methods inherited from the <ACE_Event_Handler>.
- virtual ACE_HANDLE get_handle (void) const;
- virtual int handle_input (ACE_HANDLE handle);
- virtual int handle_timeout (const ACE_Time_Value & tv,
- const void *arg = 0);
- virtual int handle_close (ACE_HANDLE handle,
- ACE_Reactor_Mask close_mask);
-
- int send (const char *buf, size_t len, const ACE_INET_Addr &);
- // Send the <buf> to the peer.
-
-private:
- ACE_SOCK_Dgram endpoint_;
- // Wrapper for sending/receiving dgrams.
-};
-
-int
-Dgram_Endpoint::send (const char *buf,
- size_t len,
- const ACE_INET_Addr &addr)
-{
- return this->endpoint_.send (buf, len, addr);
-}
-
-Dgram_Endpoint::Dgram_Endpoint (const ACE_INET_Addr &local_addr)
- : endpoint_ (local_addr)
-{
-}
-
-ACE_HANDLE
-Dgram_Endpoint::get_handle (void) const
-{
- return this->endpoint_.get_handle ();
-}
-
-int
-Dgram_Endpoint::handle_close (ACE_HANDLE handle,
- ACE_Reactor_Mask)
-{
- ACE_UNUSED_ARG (handle);
-
- this->endpoint_.close ();
- delete this;
- return 0;
-}
-
-int
-Dgram_Endpoint::handle_input (ACE_HANDLE)
-{
- char buf[BUFSIZ];
- ACE_INET_Addr from_addr;
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) activity occurred on handle %d!\n",
- this->endpoint_.get_handle ()));
-
- ssize_t n = this->endpoint_.recv (buf,
- sizeof buf,
- from_addr);
-
- if (n == -1)
- ACE_ERROR ((LM_ERROR,
- "%p\n",
- "handle_input"));
- else
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) buf of size %d = %*s\n",
- n,
- n,
- buf));
- return 0;
-}
-
-int
-Dgram_Endpoint::handle_timeout (const ACE_Time_Value &,
- const void *)
-{
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) timed out for endpoint\n"));
- return 0;
-}
-
-static int
-run_test (u_short localport,
- const char *remotehost,
- u_short remoteport,
- const char *peer)
-{
- ACE_INET_Addr remote_addr (remoteport,
- remotehost);
- ACE_INET_Addr local_addr (localport);
-
- Dgram_Endpoint *endpoint;
-
- ACE_NEW_RETURN (endpoint,
- Dgram_Endpoint (local_addr),
- -1);
-
- // Read data from other side.
- if (ACE_Reactor::instance ()->register_handler
- (endpoint,
- ACE_Event_Handler::READ_MASK) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "ACE_Reactor::register_handler"),
- -1);
-
- char buf[BUFSIZ];
- ACE_OS::strcpy (buf, "Data to transmit");
- size_t len = ACE_OS::strlen (buf);
-
- if (ACE_OS::strncmp (peer, "peer1", 5) == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) sending data\n"));
-
- for (size_t i = 0; i < 20; i++)
- {
- endpoint->send (buf, len, remote_addr);
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) .\n"));
- ACE_OS::sleep (1);
- }
- }
-
- for (int i = 0; i < 40; i++)
- {
- // Wait up to 10 seconds for data.
- ACE_Time_Value tv (10, 0);
-
- if (ACE_Reactor::instance ()->handle_events (tv) <= 0)
- ACE_ERROR_RETURN ((LM_DEBUG,
- "(%P|%t) %p\n",
- "handle_events"),
- -1);
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) return from handle events\n"));
-
- endpoint->send (buf, len, remote_addr);
-
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) .\n"));
- }
-
- if (ACE_Reactor::instance ()->remove_handler
- (endpoint,
- ACE_Event_Handler::READ_MASK) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "ACE_Reactor::remove_handler"),
- -1);
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) exiting\n"));
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- // Estabish call backs and socket names.
-
- port1 = argc > 1 ? ACE_OS::atoi (argv[1]) : ACE_DEFAULT_SERVER_PORT;
- const char *remotehost = argc > 2 ? argv[2] : ACE_DEFAULT_SERVER_HOST;
- const u_short port2 = argc > 3 ? ACE_OS::atoi (argv[3]) : port1 + 1;
-
- // Providing the fourth command line argument indicate we don't want
- // to spawn a new process. On Win32, we use this to exec the new
- // program.
- if (argc > 4)
- run_test (port1, remotehost, port2, argv[4]);
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "(%P|%t) local port = %d, remote host = %s, remote port = %d\n",
- port1,
- remotehost,
- port2));
-
- ACE_Process_Options options;
- options.command_line ("%s %d %s %d %c",
- argv[0],
- port1,
- remotehost,
- port2,
- 'c');
-
- // This has no effect on NT and will spawn a process that exec
- // the above run_test function.
- options.creation_flags (ACE_Process_Options::NO_EXEC);
-
- ACE_Process new_process;
- switch (new_process.spawn (options))
- {
- case -1:
- return -1;
-
- case 0:
- run_test (port1,
- remotehost,
- port2,
- "peer1");
- break;
-
- default:
- run_test (port2,
- remotehost,
- port1,
- "peer2");
- new_process.wait ();
- break;
- }
- }
- return 0;
-}
diff --git a/examples/Reactor/Dgram/Dgram.dsp b/examples/Reactor/Dgram/Dgram.dsp
deleted file mode 100644
index b7a923e540f..00000000000
--- a/examples/Reactor/Dgram/Dgram.dsp
+++ /dev/null
@@ -1,89 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Dgram" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Dgram - 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 "Dgram.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 "Dgram.mak" CFG="Dgram - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Dgram - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Dgram - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Dgram - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-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 /machine:I386
-# ADD LINK32 ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\ace"
-
-!ELSEIF "$(CFG)" == "Dgram - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /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 /pdbtype:sept
-# ADD LINK32 aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Dgram - Win32 Release"
-# Name "Dgram - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\Dgram.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/examples/Reactor/Dgram/Dgram.dsw b/examples/Reactor/Dgram/Dgram.dsw
deleted file mode 100644
index 92cf3688b71..00000000000
--- a/examples/Reactor/Dgram/Dgram.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: "CODgram"=.\CODgram.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Dgram"=.\Dgram.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/examples/Reactor/Dgram/Makefile b/examples/Reactor/Dgram/Makefile
deleted file mode 100644
index 001c0f72e91..00000000000
--- a/examples/Reactor/Dgram/Makefile
+++ /dev/null
@@ -1,199 +0,0 @@
-#----------------------------------------------------------------------------
-# $Id$
-#
-# Makefile for a test of the CODgram and Dgram facilities and the Reactor
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-BIN = CODgram Dgram
-
-LSRC = CODgram.cpp Dgram.cpp
-
-LDLIBS =
-
-VLDLIBS = $(LDLIBS:%=%$(VAR))
-
-BUILD = $(VBIN)
-
-INSTALL =
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
-include $(ACE_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/CODgram.o .obj/CODgram.so .shobj/CODgram.o .shobj/CODgram.so: CODgram.cpp \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/SOCK_CODgram.h \
- $(ACE_ROOT)/ace/SOCK_IO.h \
- $(ACE_ROOT)/ace/SOCK.h \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/IPC_SAP.h \
- $(ACE_ROOT)/ace/IPC_SAP.i \
- $(ACE_ROOT)/ace/SOCK.i \
- $(ACE_ROOT)/ace/SOCK_IO.i \
- $(ACE_ROOT)/ace/SOCK_CODgram.i \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/INET_Addr.i \
- $(ACE_ROOT)/ace/Process.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Process.i
-.obj/Dgram.o .obj/Dgram.so .shobj/Dgram.o .shobj/Dgram.so: Dgram.cpp \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Process.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Process.i \
- $(ACE_ROOT)/ace/SOCK_Dgram.h \
- $(ACE_ROOT)/ace/SOCK.h \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/IPC_SAP.h \
- $(ACE_ROOT)/ace/IPC_SAP.i \
- $(ACE_ROOT)/ace/SOCK.i \
- $(ACE_ROOT)/ace/SOCK_Dgram.i \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/INET_Addr.i
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY