Use =default for skeleton copy constructor
[ACE_TAO.git] / TAO / tests / NestedUpcall / Simple / server_i.cpp
blob80810fe23bbee14ce492d27b1f192e2113cc9f18
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);
18 void
19 server_i::ping (CORBA::UShort time_to_live)
21 if (!this->quiet_)
22 ACE_DEBUG ((LM_DEBUG,
23 "(%t) server_i::ping -> time to live = %d\n",
24 time_to_live));
26 --time_to_live;
28 if (time_to_live > 0)
30 this->client_->ping (time_to_live);
34 void
35 server_i::shutdown ()
37 this->orb_->shutdown (false);