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

Unified Diff: runtime/bin/http.dart

Issue 9965053: Add a new attachTo method to HttpServer, for using an existing ServerSocket. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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/http_impl.dart » ('j') | runtime/bin/http_impl.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/http.dart
===================================================================
--- runtime/bin/http.dart (revision 6032)
+++ runtime/bin/http.dart (working copy)
@@ -69,6 +69,13 @@
void listen(String host, int port, [int backlog]);
/**
+ * Attach the HTTP server to an existing ServerSocket. If the server is
+ * closed, the HttpServer will just detach itself, and not close
+ * [serverSocket].
+ */
+ void attachTo(ServerSocket serverSocket);
Søren Gjesse 2012/04/02 07:42:15 How about calling this listenOn - it somehow match
+
+ /**
* Stop server listening.
*/
void close();
« no previous file with comments | « no previous file | runtime/bin/http_impl.dart » ('j') | runtime/bin/http_impl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698