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 part of dart.io; | 5 part of "io.dart"; |
6 | 6 |
7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; | 7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; |
8 const int _STDIO_HANDLE_TYPE_PIPE = 1; | 8 const int _STDIO_HANDLE_TYPE_PIPE = 1; |
9 const int _STDIO_HANDLE_TYPE_FILE = 2; | 9 const int _STDIO_HANDLE_TYPE_FILE = 2; |
10 const int _STDIO_HANDLE_TYPE_SOCKET = 3; | 10 const int _STDIO_HANDLE_TYPE_SOCKET = 3; |
11 const int _STDIO_HANDLE_TYPE_OTHER = 4; | 11 const int _STDIO_HANDLE_TYPE_OTHER = 4; |
12 | 12 |
13 class _StdStream extends Stream<List<int>> { | 13 class _StdStream extends Stream<List<int>> { |
14 final Stream<List<int>> _stream; | 14 final Stream<List<int>> _stream; |
15 | 15 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 } | 422 } |
423 | 423 |
424 class _StdIOUtils { | 424 class _StdIOUtils { |
425 external static _getStdioOutputStream(int fd); | 425 external static _getStdioOutputStream(int fd); |
426 external static Stdin _getStdioInputStream(); | 426 external static Stdin _getStdioInputStream(); |
427 | 427 |
428 /// Returns the socket type or `null` if [socket] is not a builtin socket. | 428 /// Returns the socket type or `null` if [socket] is not a builtin socket. |
429 external static int _socketType(Socket socket); | 429 external static int _socketType(Socket socket); |
430 external static _getStdioHandleType(int fd); | 430 external static _getStdioHandleType(int fd); |
431 } | 431 } |
OLD | NEW |