2 #include "ace/OS_NS_unistd.h"
4 test_i::test_i (CORBA::ORB_ptr orb
, const ACE_TCHAR
*file_name
)
5 : orb_ (CORBA::ORB::_duplicate (orb
)),
7 client_done_file_(file_name
)
12 test_i::method (CORBA::ULong request_number
,
16 ACE_TEXT ("server: Iteration %d @ %T\n"),
21 FILE *input_file
= ACE_OS::fopen (client_done_file_
, "r");
24 // Time required to process this request.
25 ACE_Time_Value
work_time (0,
28 ACE_OS::sleep (work_time
);
32 // The client is long gone because the run_test.pl has created
33 // the file to let us know. There's no need to keep on with
34 // these pointless sleeps
36 ACE_OS::fclose (input_file
);
45 "(%P|%t) About to invoke shudown... "));
46 this->orb_
->shutdown (false);