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

Unified Diff: sdk/lib/io/socket.dart

Issue 13918013: Disable IPv6 lookup by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « runtime/bin/socket_patch.dart ('k') | tests/standalone/io/socket_ipv6_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/socket.dart
diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart
index fca699741fa34bcd35c5ce7138ccfa6bc27ed574..344b0a97c41ec4cc06bfbd680271938aac6b93ea 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -68,7 +68,7 @@ abstract class InternetAddress {
* lookup performed, and can as such change over time.
*/
external static Future<List<InternetAddress>> lookup(
- String host, {InternetAddressType type: InternetAddressType.ANY});
+ String host, {InternetAddressType type: InternetAddressType.IPv4});
}
/**
@@ -98,7 +98,7 @@ abstract class RawServerSocket implements Stream<RawSocket> {
* value of [:0:] (the default) a reasonable value will be chosen by
* the system.
*/
- external static Future<RawServerSocket> bind([String address = "127.0.0.1",
+ external static Future<RawServerSocket> bind([address = "127.0.0.1",
int port = 0,
int backlog = 0]);
@@ -141,7 +141,7 @@ abstract class ServerSocket implements Stream<Socket> {
* value of [:0:] (the default) a reasonable value will be chosen by
* the system.
*/
- external static Future<ServerSocket> bind([String address = "127.0.0.1",
+ external static Future<ServerSocket> bind([address = "127.0.0.1",
int port = 0,
int backlog = 0]);
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | tests/standalone/io/socket_ipv6_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698