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

Unified Diff: lib/io/socket.dart

Issue 11337019: Use patching for dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: lib/io/socket.dart
diff --git a/runtime/bin/socket.dart b/lib/io/socket.dart
similarity index 95%
rename from runtime/bin/socket.dart
rename to lib/io/socket.dart
index fcc1e44fa94477f2ff886d2b492a11c47ecb6be5..097b8dd2c4a2dc45506275f25b7efe3e9dbf9cec 100644
--- a/runtime/bin/socket.dart
+++ b/lib/io/socket.dart
@@ -7,9 +7,7 @@ abstract class ServerSocket {
* Constructs a new server socket, binds it to a given address and port,
* and listens on it.
*/
- factory ServerSocket(String bindAddress, int port, int backlog) {
- return new _ServerSocket(bindAddress, port, backlog);
- }
+ external factory ServerSocket(String bindAddress, int port, int backlog);
/**
* The connection handler gets called when there is a new incoming
@@ -40,7 +38,7 @@ abstract class Socket {
* host on the given port. The returned socket is not yet connected
* but ready for registration of callbacks.
*/
- factory Socket(String host, int port) => new _Socket(host, port);
+ external factory Socket(String host, int port);
/**
* Returns the number of received and non-read bytes in the socket that

Powered by Google App Engine
This is Rietveld 408576698