Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_2174_Regression / test_i.cpp
blobf2de8bdfec6f2ba8e5cffebd645f37885227f1c5
1 #include "test_i.h"
2 #include "ace/OS_NS_unistd.h"
4 Simple_Server_i::Simple_Server_i (CORBA::ORB_ptr orb)
5 : orb_ (CORBA::ORB::_duplicate (orb))
10 CORBA::Long
11 Simple_Server_i::echo (CORBA::Long x,
12 CORBA::Long msecs)
14 ACE_Time_Value tv (msecs / 1000, (msecs % 1000) * 1000);
16 // ACE_DEBUG ((LM_DEBUG, "server (%P) Sleeping for %d msecs\n",
17 // tv.msec ()));
18 ACE_OS::sleep (tv);
20 return x;
23 void
24 Simple_Server_i::shutdown (void)
26 ACE_DEBUG ((LM_DEBUG,
27 "server (%P) Received shutdown request from client\n"));
28 this->orb_->shutdown (0);