Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: runtime/bin/eventhandler.h

Issue 8399039: Explicitly handle listen sockets and connection sockets differently in Linux and Mac OS eventhandler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Mac OS build Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/eventhandler_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler.h
diff --git a/runtime/bin/eventhandler.h b/runtime/bin/eventhandler.h
index 381ad8ff673c3bb61346e98cec4eaeacad16e9c0..71df2044c4976c947f0e75d8208bebb319eb107f 100644
--- a/runtime/bin/eventhandler.h
+++ b/runtime/bin/eventhandler.h
@@ -18,15 +18,17 @@
#error Unknown target os.
#endif
-/*
- * Keep these constant in sync with the dart poll event identifiers.
- */
-enum Message {
+// Flags used to provide information and actions to the eventhandler
+// when sending a message about a file descriptor. These flags should
+// be kept in sync with the constants in socket_impl.dart. For more
+// information see the comments in socket_impl.dart
+enum MessageFlags {
kInEvent = 0,
- kOutEvent,
- kErrorEvent,
- kCloseEvent,
- kCloseCommand,
+ kOutEvent = 1,
+ kErrorEvent = 2,
+ kCloseEvent = 3,
+ kCloseCommand = 8,
+ kListeningSocket = 16,
};
« no previous file with comments | « no previous file | runtime/bin/eventhandler_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698