Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Bug_1020_Regression / Server_Task.cpp
blob9828cbe22269931bf5342c2a29ccc46c56034b50
1 /**
2 * @file Server_Task.cpp
4 * @author Carlos O'Ryan <coryan@atdesk.com>
5 */
6 #include "Server_Task.h"
9 Server_Task::Server_Task(Test::Echo_ptr echo)
10 : echo_(Test::Echo::_duplicate(echo))
14 int
15 Server_Task::svc ()
17 Test::Payload pload(16); pload.length(16);
18 int stop_loop = 0;
19 for(int i = 0; i != 1000000 && !stop_loop; ++i)
21 try
23 Test::Payload_var result =
24 this->echo_->echo_payload (pload);
26 catch (const CORBA::Exception&)
28 stop_loop = 1;
31 return 0;