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

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

Issue 16514010: Add NetworkAdaptor to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test file. Created 7 years, 6 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
Index: sdk/lib/io/socket.dart
diff --git a/sdk/lib/io/socket.dart b/sdk/lib/io/socket.dart
index 040cf39424f06e9ae15935757477026970d4b65d..e8c87f38ee48fe9631d01d91d8a116796e69004d 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -99,6 +99,16 @@ abstract class InternetAddress {
String host, {InternetAddressType type: InternetAddressType.ANY});
}
+class NetworkAdaptor {
Søren Gjesse 2013/06/10 12:26:38 We should call this NetworkInterface.
Anders Johnsen 2013/06/20 13:42:08 Done.
+ String name;
+
+ List<InternetAddress> addresses;
+
+ external static Future<List<NetworkAdaptor>> list({
+ bool includeLoopback: false,
+ InternetAddressType type: InternetAddressType.ANY});
Søren Gjesse 2013/06/10 12:26:38 I think we should add a flag here to filter out li
Anders Johnsen 2013/06/20 13:42:08 Done.
+}
+
/**
* A [RawServerSocket] represents a listening socket, and provides a
* stream of low-level [RawSocket] objects, one for each connection

Powered by Google App Engine
This is Rietveld 408576698