blob: a6d8d9d82024a4805a51edc096c84cebe0b10c5b (
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
|
//
// $Id$
//
#include "Client_Task.h"
Client_Task::Client_Task (Benchmark::RoundTripClient_ptr roundtrip)
: roundtrip_(Benchmark::RoundTripClient::_duplicate(roundtrip))
{
}
int
Client_Task::svc (void)
{
//Creat the Controller
Benchmark::Controller_var controller = this->roundtrip_->provide_controller();
//check if controller is non nil
if (CORBA::is_nil (controller.in ()))
ACE_ERROR_RETURN ((LM_DEBUG,
"Nil Benchmark::Controller reference \n"),
1);
ACE_DEBUG ((LM_DEBUG, "Sending Trigger\n"));
//send out the trigger message
controller->start();
return 0;
}
|