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

Side by Side Diff: runtime/bin/vmservice/vmservice_io.dart

Issue 125103004: Move service into VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice/vmservice.dart ('k') | runtime/bin/vmservice_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library vmservice_io; 5 library vmservice_io;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:isolate'; 10 import 'dart:isolate';
11 import 'vmservice.dart'; 11 import 'dart:vmservice';
12 12
13 part 'resources.dart';
13 part 'server.dart'; 14 part 'server.dart';
14 15
15 // The TCP port that the HTTP server listens on. 16 // The TCP port that the HTTP server listens on.
16 int _port; 17 int _port;
17 18
18 // The receive port that isolate startup / shutdown messages are delivered on. 19 // The VM service instance.
19 RawReceivePort _receivePort; 20 VMService service;
20 21
21 main() { 22 main() {
22 // Create VmService. 23 // Get VMService.
23 var service = new VMService(); 24 service = new VMService();
24 _receivePort = service.receivePort;
25 // Start HTTP server. 25 // Start HTTP server.
26 var server = new Server(service, _port); 26 var server = new Server(service, _port);
27 server.startServer(); 27 server.startServer();
28 } 28 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/vmservice.dart ('k') | runtime/bin/vmservice_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698