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; |
} |