Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Bug_1269_Regression / Echo_Caller.cpp
blob846cb985b38822e654c801fe5c155091d4168f7c
1 /**
2 * @file Echo_Caller.cpp
4 * @author Carlos O'Ryan <coryan@atdesk.com>
5 */
6 #include "Echo_Caller.h"
7 #include "Server_Timer.h"
8 #include "tao/ORB_Core.h"
10 Echo_Caller::Echo_Caller(CORBA::ORB_ptr orb)
11 : orb_(CORBA::ORB::_duplicate(orb))
15 void
16 Echo_Caller::start_task(Test::Echo_ptr client)
18 Server_Timer * task =
19 new Server_Timer(client, orb_->orb_core()->reactor());
20 task->activate();
22 task =
23 new Server_Timer(client, orb_->orb_core()->reactor());
24 task->activate();
27 void
28 Echo_Caller::shutdown()
30 ACE_DEBUG ((LM_DEBUG, "Server received shutdown message\n"));
31 orb_->shutdown(0);