blob: 024e702ba64757b8df3fe8ff44c2b0fff3d125f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "test_i.h"
#include "ace/OS_NS_unistd.h"
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 (false);
}
|