Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_1020_Regression / Server_Task.cpp
blob550ddb0c0709f9cf253efcb768ccdcdf97fdaebc
1 /**
2 * @file Server_Task.cpp
4 * @author Carlos O'Ryan <coryan@atdesk.com>
5 */
6 #include "Server_Task.h"
10 Server_Task::Server_Task(Test::Echo_ptr echo)
11 : echo_(Test::Echo::_duplicate(echo))
15 int
16 Server_Task::svc (void)
19 Test::Payload pload(16); pload.length(16);
20 int stop_loop = 0;
21 for(int i = 0; i != 1000000 && !stop_loop; ++i)
23 try
25 Test::Payload_var result =
26 this->echo_->echo_payload (pload);
28 catch (const CORBA::Exception&)
30 stop_loop = 1;
33 return 0;