blob: a89ac08487a84f87f1a07299f6052dca3140e1f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/**
* @file Server_Task.cpp
*
* $Id$
*
* @author Carlos O'Ryan <coryan@atdesk.com>
*
*/
#include "Server_Task.h"
ACE_RCSID(Bug_1230_Regression, Server_Task, "$Id$")
Server_Task::Server_Task(Test::Echo_ptr echo)
: echo_(Test::Echo::_duplicate(echo))
{
}
int
Server_Task::svc (void)
{
Test::Payload pload(16); pload.length(16);
int stop_loop = 0;
for(int i = 0; i != 1000000 && !stop_loop; ++i)
{
try
{
Test::Payload_var result =
this->echo_->echo_payload (pload);
}
catch (const CORBA::Exception&)
{
stop_loop = 1;
}
}
return 0;
}
|