// test_i.cpp,v 1.1 1999/12/21 23:51:55 irfan Exp #include "test_i.h" ACE_RCSID(AMI, test_i, "test_i.cpp,v 1.1 1999/12/21 23:51:55 irfan Exp") test_i::test_i (CORBA::ORB_ptr orb) : orb_ (CORBA::ORB::_duplicate (orb)) { } void test_i::method (CORBA::ULong request_number, CORBA::ULong_out reply_number, CORBA::Environment &) ACE_THROW_SPEC (()) { if (request_number == 1) sleep(5); // align to next full second // ACE_Time_Value txv = ACE_OS::gettimeofday (); // usleep(1000000-txv.usec ()); // ACE_DEBUG ((LM_DEBUG, "server: Iteration %d @ %T\n", request_number)); reply_number = request_number; } #ifdef additional void test_i::additional_method (CORBA::ULong request_number, CORBA::ULong_out reply_number, CORBA::Environment &) ACE_THROW_SPEC (()) { if (request_number == 1) sleep(5); // align to next full second // ACE_Time_Value txv = ACE_OS::gettimeofday (); // usleep(1000000-txv.usec ()); // ACE_DEBUG ((LM_DEBUG, "server: Iteration %d @ %T\n", request_number)); reply_number = request_number; } #endif void test_i::shutdown (CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC (()) { this->orb_->shutdown (0, ACE_TRY_ENV); }