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

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

Issue 25010004: Add .address to [Raw]ServerSocket and HttpServer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove 'host' arg from BarbackServer constructor. Created 7 years, 3 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 | « sdk/lib/io/http_impl.dart ('k') | tests/standalone/io/http_server_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 c5b4b8d005093ffeb04bb8aeb52b40d0f41058d8..ce8ace5476635829bccca0e2998141e430cfa8bf 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -202,6 +202,11 @@ abstract class RawServerSocket implements Stream<RawSocket> {
int get port;
/**
+ * Returns the address used by this socket.
+ */
+ InternetAddress get address;
+
+ /**
* Closes the socket. The returned future completes when the socket
* is fully closed and is no longer bound.
*/
@@ -258,6 +263,11 @@ abstract class ServerSocket implements Stream<Socket> {
int get port;
/**
+ * Returns the address used by this socket.
+ */
+ InternetAddress get address;
+
+ /**
* Closes the socket. The returned future completes when the socket
* is fully closed and is no longer bound.
*/
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | tests/standalone/io/http_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698