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

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

Issue 76383002: Update InternetAddress (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review commetns 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | tests/standalone/io/internet_address_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 978428bd406660e8cb5970cccc4b5a31c15d26c6..11d0ec505bb7773cbc7deda727543f10c67075ec 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -100,6 +100,21 @@ abstract class InternetAddress {
bool get isLinkLocal;
/**
+ * Returns true if the [InternetAddress]s scope is multicast.
+ */
+ bool get isMulticast;
+
+ /**
+ * Creates a new [InternetAddress] from a numeric address.
+ *
+ * If the address in [address] is not a numeric IPv4
+ * (dotted-decimal notation) or IPv6 (hexadecimal representation).
+ * address [ArgumentError] is thrown.
+ */
+ factory InternetAddress(String address) =>
+ new _InternetAddress.parse(address);
+
+ /**
* Perform a reverse dns lookup on the [address], creating a new
* [InternetAddress] where the host field set to the result.
*/
« no previous file with comments | « runtime/bin/socket_win.cc ('k') | tests/standalone/io/internet_address_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698