blob: 58e4191eb7145b1582bdb927dbde60864706b09e (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/tests/AMI_Timeouts
//
// = FILENAME
// timeout_client.h
//
// = DESCRIPTION
// Tests timeouts with AMI.
//
// = AUTHOR
// Michael Kircher <Michael.Kircher@mchp.siemens.de>
//
// ============================================================================
#include "ace/Task.h"
#include "tao/corba.h"
#include "timeoutC.h"
class TimeoutClient
: public ACE_Task_Base
{
public:
TimeoutClient (CORBA::ORB_ptr orb,
Timeout_ptr timeoutObject,
AMI_TimeoutHandler_ptr replyHandlerObject);
~TimeoutClient ();
virtual int svc (void );
private:
int init ();
void send (bool async, unsigned long msec);
private:
CORBA::ORB_var orb_;
Timeout_var timeoutObject_;
AMI_TimeoutHandler_var replyHandlerObject_;
CORBA::PolicyManager_var policy_manager_;
const bool INVOKE_SYNCH;
const bool INVOKE_ASYNCH;
};
|