summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2174_Regression/test_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_2174_Regression/test_i.cpp')
-rw-r--r--TAO/tests/Bug_2174_Regression/test_i.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/TAO/tests/Bug_2174_Regression/test_i.cpp b/TAO/tests/Bug_2174_Regression/test_i.cpp
new file mode 100644
index 00000000000..ee0a7d02adc
--- /dev/null
+++ b/TAO/tests/Bug_2174_Regression/test_i.cpp
@@ -0,0 +1,34 @@
+// $Id$
+
+#include "test_i.h"
+
+#include "ace/OS_NS_unistd.h"
+
+ACE_RCSID(Timeout, test_i, "$Id$")
+
+Simple_Server_i::Simple_Server_i (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+
+}
+
+CORBA::Long
+Simple_Server_i::echo (CORBA::Long x,
+ CORBA::Long msecs)
+{
+ ACE_Time_Value tv (msecs / 1000, (msecs % 1000) * 1000);
+
+ // ACE_DEBUG ((LM_DEBUG, "server (%P) Sleeping for %d msecs\n",
+ // tv.msec ()));
+ ACE_OS::sleep (tv);
+
+ return x;
+}
+
+void
+Simple_Server_i::shutdown (void)
+{
+ ACE_DEBUG ((LM_DEBUG,
+ "server (%P) Received shutdown request from client\n"));
+ this->orb_->shutdown (0);
+}