Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_1270_Regression / Echo_Caller.cpp
blob5d1490074c36cdf8765ca1acfb5c93cdb8f9260d
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();
21 task->remove_reference ();
23 task =
24 new Server_Timer(client, orb_->orb_core()->reactor());
25 task->activate();
26 task->remove_reference ();
29 void
30 Echo_Caller::shutdown(void)
32 ACE_DEBUG ((LM_DEBUG, "Server received shutdown message\n"));
33 orb_->shutdown(0);