OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef BIN_EVENTHANDLER_H_ | 5 #ifndef BIN_EVENTHANDLER_H_ |
6 #define BIN_EVENTHANDLER_H_ | 6 #define BIN_EVENTHANDLER_H_ |
7 | 7 |
8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
9 #include "bin/isolate_data.h" | 9 #include "bin/isolate_data.h" |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 namespace bin { | 12 namespace bin { |
13 | 13 |
14 // Flags used to provide information and actions to the eventhandler | 14 // Flags used to provide information and actions to the eventhandler |
15 // when sending a message about a file descriptor. These flags should | 15 // when sending a message about a file descriptor. These flags should |
16 // be kept in sync with the constants in socket_impl.dart. For more | 16 // be kept in sync with the constants in socket_impl.dart. For more |
17 // information see the comments in socket_impl.dart | 17 // information see the comments in socket_impl.dart |
kustermann
2013/07/18 11:34:46
Is this comment out of date. Seems like these cons
Anders Johnsen
2013/07/19 10:49:07
They are in sync?
| |
18 enum MessageFlags { | 18 enum MessageFlags { |
19 kInEvent = 0, | 19 kInEvent = 0, |
20 kOutEvent = 1, | 20 kOutEvent = 1, |
21 kErrorEvent = 2, | 21 kErrorEvent = 2, |
22 kCloseEvent = 3, | 22 kCloseEvent = 3, |
23 kDestroyedEvent = 4, | |
23 kCloseCommand = 8, | 24 kCloseCommand = 8, |
24 kShutdownReadCommand = 9, | 25 kShutdownReadCommand = 9, |
25 kShutdownWriteCommand = 10, | 26 kShutdownWriteCommand = 10, |
26 kListeningSocket = 16, | 27 kListeningSocket = 16, |
27 kPipe = 17, | 28 kPipe = 17, |
28 }; | 29 }; |
29 | 30 |
30 | 31 |
31 class TimeoutQueue { | 32 class TimeoutQueue { |
32 private: | 33 private: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 | 122 |
122 private: | 123 private: |
123 friend class EventHandlerImplementation; | 124 friend class EventHandlerImplementation; |
124 EventHandlerImplementation delegate_; | 125 EventHandlerImplementation delegate_; |
125 }; | 126 }; |
126 | 127 |
127 } // namespace bin | 128 } // namespace bin |
128 } // namespace dart | 129 } // namespace dart |
129 | 130 |
130 #endif // BIN_EVENTHANDLER_H_ | 131 #endif // BIN_EVENTHANDLER_H_ |
OLD | NEW |