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

Unified Diff: runtime/bin/dbg_connection.cc

Issue 14083007: Add new InternetAddress class with a static lookup function (including IPv6 results). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add Windows support and update ssl tests to use 'localhost'. 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 | « no previous file | runtime/bin/secure_socket.cc » ('j') | runtime/bin/socket.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dbg_connection.cc
diff --git a/runtime/bin/dbg_connection.cc b/runtime/bin/dbg_connection.cc
index 583d737497fe90f091582710c57ecc115a908f88..3c3069ada351cb4b301b2f23c0e7b6abefcd38cf 100644
--- a/runtime/bin/dbg_connection.cc
+++ b/runtime/bin/dbg_connection.cc
@@ -294,7 +294,11 @@ void DebuggerConnectionHandler::StartHandler(const char* address,
// listen, accept connections from debuggers, read and handle/dispatch
// debugger commands received on these connections.
ASSERT(listener_fd_ == -1);
- listener_fd_ = ServerSocket::CreateBindListen(address, port_number, 1);
+
+ OSError *os_error;
+ SocketAddresses* addresses = Socket::LookupAddress(address, -1, &os_error);
+ listener_fd_ = ServerSocket::CreateBindListen(
+ addresses->GetAt(0)->GetAddr(), port_number, 1);
DebuggerConnectionImpl::StartHandler(port_number);
}
« no previous file with comments | « no previous file | runtime/bin/secure_socket.cc » ('j') | runtime/bin/socket.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698