More tests update
[ACE_TAO.git] / TAO / tests / NestedUpcall / Simple / server_i.cpp
blobca14337b876a30ba45052f2dd9b0e4b18584d9f1
1 #include "server_i.h"
3 server_i::server_i (int quiet,
4 CORBA::ORB_ptr orb)
5 : quiet_ (quiet),
6 orb_ (CORBA::ORB::_duplicate (orb))
10 void
11 server_i::start (client_ptr c,
12 CORBA::UShort time_to_live)
14 this->client_ = client::_duplicate (c);
15 this->ping (time_to_live);
17 return;
20 void
21 server_i::ping (CORBA::UShort time_to_live)
23 if (!this->quiet_)
24 ACE_DEBUG ((LM_DEBUG,
25 "(%t) server_i::ping -> time to live = %d\n",
26 time_to_live));
28 --time_to_live;
30 if (time_to_live > 0)
32 this->client_->ping (time_to_live);
36 void
37 server_i::shutdown (void)
39 this->orb_->shutdown (0);