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

Side by Side Diff: sdk/lib/io/socket.dart

Issue 2880543002: Revert "Change some platform libraries to use `part of URI`." (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/io/service_object.dart ('k') | sdk/lib/io/stdio.dart » ('j') | no next file with comments »
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 part of "dart:io"; 5 part of dart.io;
6 6
7 /** 7 /**
8 * [InternetAddressType] is the type an [InternetAddress]. Currently, 8 * [InternetAddressType] is the type an [InternetAddress]. Currently,
9 * IP version 4 (IPv4) and IP version 6 (IPv6) are supported. 9 * IP version 4 (IPv4) and IP version 6 (IPv6) are supported.
10 */ 10 */
11 class InternetAddressType { 11 class InternetAddressType {
12 static const InternetAddressType IP_V4 = const InternetAddressType._(0); 12 static const InternetAddressType IP_V4 = const InternetAddressType._(0);
13 static const InternetAddressType IP_V6 = const InternetAddressType._(1); 13 static const InternetAddressType IP_V6 = const InternetAddressType._(1);
14 static const InternetAddressType ANY = const InternetAddressType._(-1); 14 static const InternetAddressType ANY = const InternetAddressType._(-1);
15 15
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 } 724 }
725 if (address != null) { 725 if (address != null) {
726 sb.write(", address = ${address.host}"); 726 sb.write(", address = ${address.host}");
727 } 727 }
728 if (port != null) { 728 if (port != null) {
729 sb.write(", port = $port"); 729 sb.write(", port = $port");
730 } 730 }
731 return sb.toString(); 731 return sb.toString();
732 } 732 }
733 } 733 }
OLDNEW
« no previous file with comments | « sdk/lib/io/service_object.dart ('k') | sdk/lib/io/stdio.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698