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

Unified Diff: runtime/bin/socket.dart

Issue 8726031: Change handling of accepting socket connections (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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/socket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.dart
diff --git a/runtime/bin/socket.dart b/runtime/bin/socket.dart
index 3a7469242c68944fb2946ba56c297ff2535a2c09..4b0655e9ebe448be034a12d98f67551605e80d9a 100644
--- a/runtime/bin/socket.dart
+++ b/runtime/bin/socket.dart
@@ -10,18 +10,13 @@ interface ServerSocket factory _ServerSocket {
ServerSocket(String bindAddress, int port, int backlog);
/*
- * Accepts a connection to this socket.
+ * The connection handler gets called when there is a new incoming
+ * connection on the socket.
*/
- Socket accept();
+ void set connectionHandler(void callback(Socket connection));
/*
- * The connection handler gets executed when there are incoming connections
- * on the socket.
- */
- void set connectionHandler(void callback());
-
- /*
- * The error handler gets executed when a socket error occurs.
+ * The error handler gets called when a socket error occurs.
*/
void set errorHandler(void callback());
« no previous file with comments | « no previous file | runtime/bin/socket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698