summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Bug_1269_Regression/Echo_Caller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/Bug_1269_Regression/Echo_Caller.cpp')
-rw-r--r--trunk/TAO/tests/Bug_1269_Regression/Echo_Caller.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Bug_1269_Regression/Echo_Caller.cpp b/trunk/TAO/tests/Bug_1269_Regression/Echo_Caller.cpp
new file mode 100644
index 00000000000..2a8e075b4de
--- /dev/null
+++ b/trunk/TAO/tests/Bug_1269_Regression/Echo_Caller.cpp
@@ -0,0 +1,40 @@
+/**
+ * @file Echo_Caller.cpp
+ *
+ * $Id$
+ *
+ * @author Carlos O'Ryan <coryan@atdesk.com>
+ *
+ */
+#include "Echo_Caller.h"
+#include "Server_Timer.h"
+#include "tao/ORB_Core.h"
+
+ACE_RCSID(Bug_1269_Regression, Echo_Caller, "$Id$")
+
+Echo_Caller::Echo_Caller(CORBA::ORB_ptr orb)
+ : orb_(CORBA::ORB::_duplicate(orb))
+{
+}
+
+void
+Echo_Caller::start_task(Test::Echo_ptr client
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC((CORBA::SystemException))
+{
+ Server_Timer * task =
+ new Server_Timer(client, orb_->orb_core()->reactor());
+ task->activate();
+
+ task =
+ new Server_Timer(client, orb_->orb_core()->reactor());
+ task->activate();
+}
+
+void
+Echo_Caller::shutdown(ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC((CORBA::SystemException))
+{
+ ACE_DEBUG ((LM_DEBUG, "Server received shutdown message\n"));
+ orb_->shutdown(0 ACE_ENV_ARG_PARAMETER);
+}