OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 import 'dart:typed_data'; | 8 import 'dart:typed_data'; |
9 | 9 |
10 import 'package:flash_sd_card/src/context.dart'; | 10 import 'package:flash_sd_card/src/context.dart'; |
11 | 11 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 return new Server(server, completer.future); | 97 return new Server(server, completer.future); |
98 } | 98 } |
99 | 99 |
100 int get port => _httpServer.port; | 100 int get port => _httpServer.port; |
101 | 101 |
102 int get successDownloadSize => oneKBytes * 2; | 102 int get successDownloadSize => oneKBytes * 2; |
103 | 103 |
104 Future close() async => await _httpServer.close(); | 104 Future close() async => await _httpServer.close(); |
105 } | 105 } |
OLD | NEW |