2 #include "Client_Task.h"
4 Client_Task::Client_Task (Test::Big_Reply_ptr reply_gen
,
6 ACE_Thread_Manager
*thr_mgr
)
7 : ACE_Task_Base (thr_mgr
)
8 , reply_gen_ (Test::Big_Reply::_duplicate (reply_gen
))
9 , event_count_ (event_count
)
15 Client_Task::svc (void)
17 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) Starting client task\n"));
20 // Now get the big replies..
23 for (int i
= 0; i
!= this->event_count_
; ++i
)
25 Test::Octet_Seq_var seq
=
26 this->reply_gen_
->get_big_reply ();
28 CORBA::ULong length
= seq
->length ();
29 for(CORBA::ULong i
= 0; i
< length
; ++i
)
33 ACE_ERROR_RETURN ((LM_ERROR
,
34 "Invalid data '%c' at %d\n", seq
[i
], i
),
39 // ACE_Time_Value tv(0, 10000000);
43 catch (const CORBA::Exception
& ex
)
45 ex
._tao_print_exception ("Exception Caught\n");
49 ACE_DEBUG ((LM_DEBUG
, "(%P|%t) Client task finished\n"));