summaryrefslogtreecommitdiff
path: root/examples/CORBA
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-30 19:34:27 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-30 19:34:27 +0000
commit03154c9a5b9e8628d31bd9032549327d51304645 (patch)
treef4f85e04edaef6ed998a7953275ad3dcf1911fef /examples/CORBA
parent73efbc1d2ad02533d865e1b14008ffc8d8bc82fb (diff)
downloadATCD-pre_multiple_profile_server.tar.gz
This commit was manufactured by cvs2svn to create tagpre_multiple_profile_server
'pre_multiple_profile_server'.
Diffstat (limited to 'examples/CORBA')
-rw-r--r--examples/CORBA/Makefile65
-rw-r--r--examples/CORBA/Test.idl8
-rw-r--r--examples/CORBA/Test_i.cpp12
-rw-r--r--examples/CORBA/Test_i.h19
-rw-r--r--examples/CORBA/client.cpp27
-rw-r--r--examples/CORBA/server.cpp39
6 files changed, 0 insertions, 170 deletions
diff --git a/examples/CORBA/Makefile b/examples/CORBA/Makefile
deleted file mode 100644
index 316fe5e1c99..00000000000
--- a/examples/CORBA/Makefile
+++ /dev/null
@@ -1,65 +0,0 @@
-#----------------------------------------------------------------------------
-# $Id: Makefile 1.1 10/18/96
-#
-# Makefile for the ACE_MT_CORBA_Handler tests
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-SRC = Test_i.cpp client.cpp server.cpp
-
-SVR_OBJS = TestS.o Test_i.o server.o
-CLT_OBJS = TestC.o client.o
-
-LDLIBS =
-
-VLDLIBS = $(LDLIBS:%=%$(VAR))
-
-#----------------------------------------------------------------------------
-# 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.lib.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-
-#----------------------------------------------------------------------------
-# Orbix related macros and target settings.
-#----------------------------------------------------------------------------
-
-ORBIX_BINDIR = $(ORBIX_ROOT)/bin
-ORBIX_LIBDIR = $(ORBIX_ROOT)/lib
-ORBIX_INCDIR = $(ORBIX_ROOT)/include
-
-CPPFLAGS += -DEXCEPTIONS -I$(ORBIX_INCDIR) -DWANT_ORBIX_FDS
-LDFLAGS += -L$(ORBIX_LIBDIR) -R $(ORBIX_LIBDIR)
-
-IDLFLAGS = -s S.cpp -c C.cpp -B
-
-#----------------------------------------------------------------------------
-# Local targets
-#----------------------------------------------------------------------------
-
-all: client server
-
-client: $(addprefix $(VDIR),$(CLT_OBJS))
- $(LINK.cc) -o client $(addprefix $(VDIR),$(CLT_OBJS)) $(LDFLAGS) -lITsrvmt $(VLDLIBS)
-
-server: $(addprefix $(VDIR),$(SVR_OBJS))
- $(LINK.cc) -o server $(addprefix $(VDIR),$(SVR_OBJS)) $(LDFLAGS) -lITsrvmt $(VLDLIBS)
-
-#----------------------------------------------------------------------------
-# Dependencies
-#----------------------------------------------------------------------------
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/examples/CORBA/Test.idl b/examples/CORBA/Test.idl
deleted file mode 100644
index d5ae1850e4a..00000000000
--- a/examples/CORBA/Test.idl
+++ /dev/null
@@ -1,8 +0,0 @@
-// $Id$
-
-interface Test
-// @(#)Test.idl 1.1 10/18/96
-
-{
- void method (in long input1);
-};
diff --git a/examples/CORBA/Test_i.cpp b/examples/CORBA/Test_i.cpp
deleted file mode 100644
index 03c969a6a0d..00000000000
--- a/examples/CORBA/Test_i.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// $Id$
-
-#include "Test_i.h"
-
-ACE_RCSID(CORBA, Test_i, "$Id$")
-
-void
-Test_i::method (long input,
- ACE_CORBA_1 (Environment) &)
-{
- ACE_DEBUG ((LM_DEBUG, "received a number %d\n", input));
-}
diff --git a/examples/CORBA/Test_i.h b/examples/CORBA/Test_i.h
deleted file mode 100644
index 01fe82c75f1..00000000000
--- a/examples/CORBA/Test_i.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-#include "ace/Log_Msg.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "Test.hh"
-
-class Test_i
-{
-public:
- virtual void method (long input,
- ACE_CORBA_1 (Environment) &IT_env = ACE_CORBA_1 (default_environment));
-};
-
-DEF_TIE_Test (Test_i)
diff --git a/examples/CORBA/client.cpp b/examples/CORBA/client.cpp
deleted file mode 100644
index 620bcf978af..00000000000
--- a/examples/CORBA/client.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// $Id$
-
-#include "Test.hh"
-
-ACE_RCSID(CORBA, client, "$Id$")
-
-int
-main (int argc, char *argv[])
-{
- char *host = argc == 2 ? argv[1] : ACE_DEFAULT_SERVER_HOST;
-
- Test_var my_test;
-
- TRY {
- my_test = Test::_bind ("", host, IT_X);
- my_test->method (5);
- } CATCHANY {
- cerr << IT_X << endl;
- return -1;
- } ENDTRY;
-
- ACE_DEBUG ((LM_DEBUG, "everything works!\n"));
-
- // Memory for my_test is automatically released by destructor of
- // smart pointer.
- return 0;
-}
diff --git a/examples/CORBA/server.cpp b/examples/CORBA/server.cpp
deleted file mode 100644
index c7f9abee77c..00000000000
--- a/examples/CORBA/server.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-// $Id$
-
-#include "ace/Service_Config.h"
-#include "ace/CORBA_Handler.h"
-#include "Test_i.h"
-
-ACE_RCSID(CORBA, server, "$Id$")
-
-#if defined (ACE_HAS_ORBIX) && (ACE_HAS_ORBIX != 0)
-
-#if defined (ACE_HAS_MT_ORBIX) && (ACE_HAS_MT_ORBIX != 0)
-typedef ACE_MT_CORBA_Handler CORBA_HANDLER;
-#else
-typedef ACE_ST_CORBA_Handler CORBA_HANDLER;
-#endif /* ACE_HAS_MT_ORBIX */
-
-int
-main (int argc, char *argv[])
-{
- ACE_Service_Config daemon;
-
- char pwd[BUFSIZ];
- char app[BUFSIZ];
-
- ACE_OS::getcwd (pwd, sizeof pwd);
- ACE_OS::sprintf (app, "%s/%s", pwd, argv[0]);
-
- if (CORBA_HANDLER::instance ()->activate_service (Test_IMPL, 0, app) == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "Could not activate services for supplier\n"), -1);
-
- TIE_Test (Test_i) test (new Test_i);
-
- for (;;)
- if (CORBA_HANDLER::instance ()->reactor ()->handle_events () == -1)
- break;
-
- return 0;
-}
-#endif /* ACE_HAS_ORBIX */