OLD | NEW |
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 'dart:vmservice'; | 11 import 'dart:_vmservice'; |
12 | 12 |
13 part 'loader.dart'; | 13 part 'loader.dart'; |
14 part 'resources.dart'; | 14 part 'resources.dart'; |
15 part 'server.dart'; | 15 part 'server.dart'; |
16 | 16 |
17 // The TCP ip/port that the HTTP server listens on. | 17 // The TCP ip/port that the HTTP server listens on. |
18 int _port; | 18 int _port; |
19 String _ip; | 19 String _ip; |
20 // Should the HTTP server auto start? | 20 // Should the HTTP server auto start? |
21 bool _autoStart; | 21 bool _autoStart; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // else { | 97 // else { |
98 // var service = new VMService(); | 98 // var service = new VMService(); |
99 // service.onShutdown = _onShutdown; | 99 // service.onShutdown = _onShutdown; |
100 // } | 100 // } |
101 scriptLoadPort.handler = _processLoadRequest; | 101 scriptLoadPort.handler = _processLoadRequest; |
102 // Register signal handler after a small delay to avoid stalling main | 102 // Register signal handler after a small delay to avoid stalling main |
103 // isolate startup. | 103 // isolate startup. |
104 new Timer(_shortDelay, _registerSignalHandler); | 104 new Timer(_shortDelay, _registerSignalHandler); |
105 return scriptLoadPort; | 105 return scriptLoadPort; |
106 } | 106 } |
OLD | NEW |