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. |
*/ |