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

Unified Diff: sdk/lib/_internal/compiler/js_lib/io_patch.dart

Issue 908873002: Add support to specify the source address for socket connect (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added dart2js patch file Created 5 years, 10 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: sdk/lib/_internal/compiler/js_lib/io_patch.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/io_patch.dart b/sdk/lib/_internal/compiler/js_lib/io_patch.dart
index ee38707f4f57d542ee17c4d178ef0dbe414e081a..d2b3e0ff8a83a36362491ce884018dea485fa4de 100644
--- a/sdk/lib/_internal/compiler/js_lib/io_patch.dart
+++ b/sdk/lib/_internal/compiler/js_lib/io_patch.dart
@@ -378,7 +378,7 @@ class ServerSocket {
@patch
class RawSocket {
@patch
- static Future<RawSocket> connect(host, int port) {
+ static Future<RawSocket> connect(host, int port, {sourceAddress}) {
throw new UnsupportedError("RawSocket constructor");
}
}
@@ -386,7 +386,7 @@ class RawSocket {
@patch
class Socket {
@patch
- static Future<Socket> connect(host, int port) {
+ static Future<Socket> connect(host, int port, {sourceAddress}) {
throw new UnsupportedError("Socket constructor");
}
}
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | sdk/lib/io/socket.dart » ('j') | sdk/lib/io/socket.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698