blob: e90fc608a61d4b36b42d116e45270568038fa9e0 (
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
38
|
#include "Server_Task.h"
ACE_RCSID (Bug_1020_Basic_Regression,
Server_Task,
"$Id$")
Server_Task::Server_Task (Test::Echo_ptr echo,
size_t sz)
: echo_ (Test::Echo::_duplicate (echo)),
sz_ (sz)
{
}
int
Server_Task::svc (void)
{
Test::Payload payload (32768);
payload.length (32768);
try
{
// Send messages till the remote guy crashes
for (;;)
{
this->echo_->echo_payload (payload);
}
}
catch (const CORBA::Exception&)
{
return -1;
}
ACE_NOTREACHED (return 0);
}
|