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

Unified Diff: runtime/bin/socket.dart

Issue 10032027: Add remoteHost to Socket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed then need for allocating buffer in heap. Created 8 years, 8 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.cc ('k') | runtime/bin/socket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.dart
diff --git a/runtime/bin/socket.dart b/runtime/bin/socket.dart
index 97ede5fb9852264aae733cd86d13dfc40b463d50..e8b53bd9664d9bbbb261e14c35848a341cae0a91 100644
--- a/runtime/bin/socket.dart
+++ b/runtime/bin/socket.dart
@@ -112,6 +112,11 @@ interface Socket extends Hashable default _Socket {
int get remotePort();
/**
+ * Returns the remote host connected to by this socket.
+ */
+ String get remoteHost();
+
+ /**
* Closes the socket. Calling [close] will never throw an exception
* and calling it several times is supported. If [halfClose] is true
* the socket will only be closed for writing and it might still be
« no previous file with comments | « runtime/bin/socket.cc ('k') | runtime/bin/socket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698