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

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

Issue 13502004: Add the ability to secure an already established raw socket connection (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 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 | « sdk/lib/io/secure_socket.dart ('k') | tests/standalone/io/raw_secure_server_socket_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 1680f6b805f37c7bdcf360fb0842dac4bfec840b..81fb37758d436a51e2946b879ba5704524c57b68 100644
--- a/sdk/lib/io/socket.dart
+++ b/sdk/lib/io/socket.dart
@@ -165,6 +165,11 @@ abstract class RawSocket implements Stream<RawSocketEvent> {
int get remotePort;
/**
+ * Returns the host used to connect this socket.
+ */
+ String get host;
+
+ /**
* Returns the remote host connected to by this socket.
*/
String get remoteHost;
@@ -239,9 +244,25 @@ abstract class Socket implements Stream<List<int>>,
*/
bool setOption(SocketOption option, bool enabled);
+ /**
+ * Returns the port used by this socket.
+ */
int get port;
- String get remoteHost;
+
+ /**
+ * Returns the remote port connected to by this socket.
+ */
int get remotePort;
+
+ /**
+ * Returns the host used to connect this socket.
+ */
+ String get host;
+
+ /**
+ * Returns the remote host connected to by this socket.
+ */
+ String get remoteHost;
}
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | tests/standalone/io/raw_secure_server_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698