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

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

Issue 180163005: Add InternetAddress:rawAddress, to return the raw address as a list of bytes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/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 932fb97a319b309439d7c379a998c2fa416617bf..f8d854382b3b41b8d3308301a46fb2a193047c16 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -90,6 +90,13 @@ abstract class InternetAddress {
String get host;
/**
+ * Get the raw address of this [InternetAddress]. The result is either a
+ * 4 or 16 byte long list. The returned list is a copy, making it possible
+ * to change the list without modifying the [InternetAddress].
+ */
+ List<int> get rawAddress;
+
+ /**
* Returns true if the [InternetAddress] is a loopback address.
*/
bool get isLoopback;
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | tests/standalone/io/internet_address_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698