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

Unified Diff: dart/runtime/bin/socket_patch.dart

Issue 60293003: Version 0.8.10.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/runtime/bin/socket_macos.cc ('k') | dart/runtime/bin/socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/bin/socket_patch.dart
===================================================================
--- dart/runtime/bin/socket_patch.dart (revision 29908)
+++ dart/runtime/bin/socket_patch.dart (working copy)
@@ -440,8 +440,10 @@
return nativeGetRemotePeer()[1];
}
- String get remoteHost {
- return nativeGetRemotePeer()[0];
+ InternetAddress get remoteAddress {
+ var result = nativeGetRemotePeer()[0];
+ var type = new InternetAddressType._from(result[0]);
+ return new _InternetAddress(type, result[1], "", result[2]);
}
// Multiplexes socket events to the socket handlers.
@@ -841,7 +843,7 @@
InternetAddress get address => _socket.address;
- String get remoteHost => _socket.remoteHost;
+ InternetAddress get remoteAddress => _socket.remoteAddress;
bool get readEventsEnabled => _readEventsEnabled;
void set readEventsEnabled(bool value) {
@@ -1112,7 +1114,7 @@
}
int get port => _raw.port;
- String get remoteHost => _raw.remoteHost;
+ InternetAddress get remoteAddress => _raw.remoteAddress;
int get remotePort => _raw.remotePort;
Future _detachRaw() {
« no previous file with comments | « dart/runtime/bin/socket_macos.cc ('k') | dart/runtime/bin/socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698