blob: 538195d07dbda4262f287ae8c1a070219d2c7182 (
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
39
40
41
|
#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);
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
// Send messages till the remote guy crashes
for (;;)
{
this->echo_->echo_payload (payload
ACE_ENV_ARG_PARAMETER);
}
}
ACE_CATCHANY
{
return -1;
}
ACE_ENDTRY;
ACE_NOTREACHED (return 0);
}
|