summaryrefslogtreecommitdiff
path: root/ace/Event_Handler.i
blob: d9e30724ce5c32618405038a5de2306dc6d01a49 (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/* -*- C++ -*- */
// $Id$

#include "ace/Event_Handler.h"
// Event_Handler.i

// Implement conceptually abstract virtual functions in the base class
// so derived classes don't have to implement unused ones.

ACE_INLINE
ACE_Event_Handler::ACE_Event_Handler (void)
  : priority_ (ACE_Event_Handler::LO_PRIORITY),
    reactor_ (0),
    reactorex_ (0),
    proactor_ (0)
{
  ACE_TRACE ("ACE_Event_Handler::ACE_Event_Handler");
}

ACE_INLINE
ACE_Event_Handler::~ACE_Event_Handler (void) 
{
  ACE_TRACE ("ACE_Event_Handler::~ACE_Event_Handler");
}

// Gets the file descriptor associated with this I/O device. 

ACE_INLINE ACE_HANDLE
ACE_Event_Handler::get_handle (void) const
{
  ACE_TRACE ("ACE_Event_Handler::get_handle");
  return ACE_INVALID_HANDLE;
}

// Sets the file descriptor associated with this I/O device.

ACE_INLINE void
ACE_Event_Handler::set_handle (ACE_HANDLE)
{
  ACE_TRACE ("ACE_Event_Handler::set_handle");
}

// Gets the priority of this handler. 

ACE_INLINE int
ACE_Event_Handler::get_priority (void) const
{
  ACE_TRACE ("ACE_Event_Handler::get_priority");
  return this->priority_;
}

// Sets the priority 

ACE_INLINE void
ACE_Event_Handler::set_priority (int priority)
{
  ACE_TRACE ("ACE_Event_Handler::set_priority");
  this->priority_ = priority;
}

// Called when the object is about to be removed from the Dispatcher
// tables.

ACE_INLINE int
ACE_Event_Handler::handle_close (ACE_HANDLE, ACE_Reactor_Mask)
{
  ACE_TRACE ("ACE_Event_Handler::handle_close");
  return -1;
}

// Called when input becomes available on fd. 

ACE_INLINE int 
ACE_Event_Handler::handle_input (ACE_HANDLE)
{
  ACE_TRACE ("ACE_Event_Handler::handle_input");
  return -1;
}

// Called when output is possible on fd.

ACE_INLINE int 
ACE_Event_Handler::handle_output (ACE_HANDLE)
{
  ACE_TRACE ("ACE_Event_Handler::handle_output");
  return -1;
}

// Called when urgent data is available on fd. 

ACE_INLINE int 
ACE_Event_Handler::handle_exception (ACE_HANDLE)
{
  ACE_TRACE ("ACE_Event_Handler::handle_exception");
  return -1;
}

// Called when timer expires, TV stores the current time.

ACE_INLINE int
ACE_Event_Handler::handle_timeout (const ACE_Time_Value &, const void *)
{
  ACE_TRACE ("ACE_Event_Handler::handle_timeout");
  return -1;
}

// Called when a registered signal occurs.

ACE_INLINE int 
ACE_Event_Handler::handle_signal (int, siginfo_t *, ucontext_t *)
{
  ACE_TRACE ("ACE_Event_Handler::handle_signal");
  return -1;
}

ACE_INLINE int
ACE_Event_Handler::handle_input_complete (ACE_Message_Block *, long)
{
  ACE_TRACE ("ACE_Event_Handler::handle_input_complete");
  return -1;
}

ACE_INLINE int
ACE_Event_Handler::handle_output_complete (ACE_Message_Block *, long)
{
  ACE_TRACE ("ACE_Event_Handler::handle_input_complete");
  return -1;
}

ACE_INLINE ACE_Message_Block *
ACE_Event_Handler::get_message (void)
{
  ACE_TRACE ("ACE_Event_Handler::get_message");
  return 0;
}

ACE_INLINE void 
ACE_Event_Handler::reactor (ACE_Reactor *reactor)
{
  ACE_TRACE ("ACE_Event_Handler::reactor");
  this->reactor_ = reactor;
}

ACE_INLINE ACE_Reactor *
ACE_Event_Handler::reactor (void) const
{
  ACE_TRACE ("ACE_Event_Handler::Reactor");
  return this->reactor_;
}

ACE_INLINE void 
ACE_Event_Handler::reactorex (ACE_ReactorEx *reactorex)
{
  ACE_TRACE ("ACE_Event_Handler::reactorex");
  this->reactorex_ = reactorex;
}

ACE_INLINE ACE_ReactorEx *
ACE_Event_Handler::reactorex (void) const
{
  ACE_TRACE ("ACE_Event_Handler::ReactorEx");

  return this->reactorex_;
}

ACE_INLINE void 
ACE_Event_Handler::proactor (ACE_Proactor *proactor)
{
  ACE_TRACE ("ACE_Event_Handler::proactor");

  this->proactor_ = proactor;
}

ACE_INLINE ACE_Proactor *
ACE_Event_Handler::proactor (void) const
{
  ACE_TRACE ("ACE_Event_Handler::Proactor");

  return this->proactor_;
}