blob: cf7ba4e344eda47ec46e5eac2535124b3c40452b (
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
80
81
82
|
// -*- C++ -*-
//=============================================================================
/**
* @file Notify_Handler.h
*
* $Id$
*
* @author Balchanadran Natarajan <bala@cs.wustl.edu>
*/
//=============================================================================
#ifndef TAO_NOTIFY_HANDLER_H
#define TAO_NOTIFY_HANDLER_H
#include "ace/pre.h"
#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Event_Handler.h"
class TAO_Connection_Handler;
class ACE_Allocator;
/**
* @class TAO_Notify_Handler
*
* @brief Represents the handler used by the notify calls to the
* reactor within the ORB.
*
* Cluttering the *IOP handlers with the job of handling notify calls
* introduces problems as mentioned in [BUG 1230]. This special
* handler can help to avoid that problem by splitting the
* responsibilities between actual connection handling and notify
* handling that is done underneath the ORB.
*/
class TAO_Export TAO_Notify_Handler: public ACE_Event_Handler
{
public:
/// Dtor
~TAO_Notify_Handler (void);
/// Static method to create an instance of this object in the
/// memory pool
static TAO_Notify_Handler *create_handler (TAO_Connection_Handler *c,
ACE_Allocator *alloc);
/// Static method to destroy an instance of this object
static void destroy_handler (TAO_Notify_Handler *nh);
/// The standard handle_input method, it just redirects to the
/// connection handler
virtual int handle_input (ACE_HANDLE fd);
virtual int handle_close (ACE_HANDLE fd,
ACE_Reactor_Mask close_mask);
protected:
/// Ctor
TAO_Notify_Handler (TAO_Connection_Handler *ch,
ACE_Allocator *alloc);
private:
/// Preventing default ctor's.
ACE_UNIMPLEMENTED_FUNC (TAO_Notify_Handler (void))
private:
/// Our copy of the connection handler, reference count incremented
/// and stored.
TAO_Connection_Handler *ch_;
/// Our allocator
ACE_Allocator *allocator_;
};
#include "ace/post.h"
#endif /*TAO_NOTIFY_HANDLER_H*/
|