blob: 2eccee1dddaa3569025c207db6b52e367c402b3e (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/**
* @file Asynch_Timeout_Handler.h
*
* $Id$
*
* Timeout Handler for AMI timeouts
*
*
* @author Michael Kircher <Michael.Kircher@mchp.siemens.de>
*/
//=============================================================================
#ifndef TAO_ASYNCH_TIMEOUT_HANDLER_H
#define TAO_ASYNCH_TIMEOUT_HANDLER_H
#include "ace/pre.h"
#include "tao/orbconf.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if (TAO_HAS_AMI_CALLBACK == 1) || (TAO_HAS_AMI_POLLER == 1)
#include "ace/Event_Handler.h"
#include "tao/TAO_Export.h"
#include "tao/corbafwd.h"
class TAO_Asynch_Reply_Dispatcher_Base;
class TAO_Transport_Mux_Strategy;
class TAO_Export TAO_Asynch_Timeout_Handler
: public ACE_Event_Handler
{
// = TITLE
// TAO_Asynch_Timeout_Handler
//
// = DESCRIPTION
// Handler registered with the reactor in case of AMI
// timeouts.
//
public:
TAO_Asynch_Timeout_Handler (TAO_Asynch_Reply_Dispatcher_Base *rd,
TAO_Transport_Mux_Strategy *tms,
CORBA::ULong request_id);
~TAO_Asynch_Timeout_Handler ();
/// Invoked by the reactor on timeout
virtual int handle_timeout (const ACE_Time_Value ¤t_time,
const void *act);
/// Invoked by the reactor on unregistration
virtual int handle_close (ACE_HANDLE,
ACE_Reactor_Mask);
/// Cancel this timer, remove it from the reactor
virtual void cancel ();
public:
/// The reply dispatcher expecting the reply
TAO_Asynch_Reply_Dispatcher_Base *rd_;
/// The transport mux strategy dispatching the reply
TAO_Transport_Mux_Strategy *tms_;
/// Remember the ID of the request.
CORBA::ULong request_id_;
};
#endif /* (TAO_HAS_AMI_CALLBACK == 1) || (TAO_HAS_AMI_POLLER == 1) == 0 */
#include "ace/post.h"
#endif /* TAO_ASYNCH_TIMEOUT_HANDLER_H */
|