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

Unified Diff: dart/runtime/bin/vmservice/vmservice_io.dart

Issue 239303004: Extract common code, add host IP to --debug and --enable-vm-service options (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 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 | « dart/runtime/bin/vmservice/server.dart ('k') | dart/runtime/bin/vmservice_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/bin/vmservice/vmservice_io.dart
diff --git a/dart/runtime/bin/vmservice/vmservice_io.dart b/dart/runtime/bin/vmservice/vmservice_io.dart
index 5101858b1aa83aeacf440e4046fafa9f199a129e..d0bccea61a382921fed6663eb0ebc95c44a954ac 100644
--- a/dart/runtime/bin/vmservice/vmservice_io.dart
+++ b/dart/runtime/bin/vmservice/vmservice_io.dart
@@ -13,8 +13,9 @@ import 'dart:vmservice';
part 'resources.dart';
part 'server.dart';
-// The TCP port that the HTTP server listens on.
+// The TCP ip/port that the HTTP server listens on.
int _port;
+String _ip;
// The VM service instance.
VMService service;
@@ -23,6 +24,6 @@ main() {
// Get VMService.
service = new VMService();
// Start HTTP server.
- var server = new Server(service, _port);
+ var server = new Server(service, _ip, _port);
server.startServer();
}
« no previous file with comments | « dart/runtime/bin/vmservice/server.dart ('k') | dart/runtime/bin/vmservice_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698