| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 http_multi_server; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:io'; | 6 import 'dart:io'; |
| 9 | 7 |
| 10 import 'src/multi_headers.dart'; | 8 import 'src/multi_headers.dart'; |
| 11 import 'src/utils.dart'; | 9 import 'src/utils.dart'; |
| 12 | 10 |
| 13 /// The error code for an error caused by a port already being in use. | 11 /// The error code for an error caused by a port already being in use. |
| 14 final _addressInUseErrno = _computeAddressInUseErrno(); | 12 final _addressInUseErrno = _computeAddressInUseErrno(); |
| 15 int _computeAddressInUseErrno() { | 13 int _computeAddressInUseErrno() { |
| 16 if (Platform.isWindows) return 10048; | 14 if (Platform.isWindows) return 10048; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 for (var server in _servers) { | 163 for (var server in _servers) { |
| 166 var subInfo = server.connectionsInfo(); | 164 var subInfo = server.connectionsInfo(); |
| 167 info.total += subInfo.total; | 165 info.total += subInfo.total; |
| 168 info.active += subInfo.active; | 166 info.active += subInfo.active; |
| 169 info.idle += subInfo.idle; | 167 info.idle += subInfo.idle; |
| 170 info.closing += subInfo.closing; | 168 info.closing += subInfo.closing; |
| 171 } | 169 } |
| 172 return info; | 170 return info; |
| 173 } | 171 } |
| 174 } | 172 } |
| OLD | NEW |