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

Side by Side Diff: runtime/bin/socket_patch.dart

Issue 78223002: Fix dart2js after InternetAddress change (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/io_patch.dart » ('j') | sdk/lib/_internal/lib/io_patch.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 patch class RawServerSocket { 5 patch class RawServerSocket {
6 /* patch */ static Future<RawServerSocket> bind(address, 6 /* patch */ static Future<RawServerSocket> bind(address,
7 int port, 7 int port,
8 {int backlog: 0, 8 {int backlog: 0,
9 bool v6Only: false}) { 9 bool v6Only: false}) {
10 return _RawServerSocket.bind(address, port, backlog, v6Only); 10 return _RawServerSocket.bind(address, port, backlog, v6Only);
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 /* patch */ static InternetAddress get ANY_IP_V4 { 31 /* patch */ static InternetAddress get ANY_IP_V4 {
32 return _InternetAddress.ANY_IP_V4; 32 return _InternetAddress.ANY_IP_V4;
33 } 33 }
34 34
35 /* patch */ static InternetAddress get ANY_IP_V6 { 35 /* patch */ static InternetAddress get ANY_IP_V6 {
36 return _InternetAddress.ANY_IP_V6; 36 return _InternetAddress.ANY_IP_V6;
37 } 37 }
38 38
39 /* patch */ factory InternetAddress(String address) {
40 return new _InternetAddress.parse(address);
41 }
42
39 /* patch */ static Future<List<InternetAddress>> lookup( 43 /* patch */ static Future<List<InternetAddress>> lookup(
40 String host, {InternetAddressType type: InternetAddressType.ANY}) { 44 String host, {InternetAddressType type: InternetAddressType.ANY}) {
41 return _NativeSocket.lookup(host, type: type); 45 return _NativeSocket.lookup(host, type: type);
42 } 46 }
43 } 47 }
44 48
45 patch class NetworkInterface { 49 patch class NetworkInterface {
46 /* patch */ static Future<List<NetworkInterface>> list({ 50 /* patch */ static Future<List<NetworkInterface>> list({
47 bool includeLoopback: false, 51 bool includeLoopback: false,
48 bool includeLinkLocal: false, 52 bool includeLinkLocal: false,
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 if (_detachReady != null) { 1268 if (_detachReady != null) {
1265 _detachReady.complete(null); 1269 _detachReady.complete(null);
1266 } else { 1270 } else {
1267 if (_raw != null) { 1271 if (_raw != null) {
1268 _raw.shutdown(SocketDirection.SEND); 1272 _raw.shutdown(SocketDirection.SEND);
1269 _disableWriteEvent(); 1273 _disableWriteEvent();
1270 } 1274 }
1271 } 1275 }
1272 } 1276 }
1273 } 1277 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/io_patch.dart » ('j') | sdk/lib/_internal/lib/io_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698