blob: 636bf70bd7bed447e43a88ce6a5d661bb3d58e91 (
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
|
#include "Server_Task.h"
Server_Task::Server_Task (Test::Echo_ptr echo)
: echo_ (Test::Echo::_duplicate (echo))
{
}
int
Server_Task::svc ()
{
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);
}
|