| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 #if defined(DART_IO_DISABLED) | 5 #if defined(DART_IO_DISABLED) |
| 6 | 6 |
| 7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
| 8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 | 10 |
| 11 namespace dart { | 11 namespace dart { |
| 12 namespace bin { | 12 namespace bin { |
| 13 | 13 |
| 14 bool short_socket_read = false; |
| 15 |
| 16 bool short_socket_write = false; |
| 17 |
| 14 void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) { | 18 void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) { |
| 15 Dart_ThrowException(DartUtils::NewDartArgumentError( | 19 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 16 "Sockets unsupported on this platform")); | 20 "Sockets unsupported on this platform")); |
| 17 } | 21 } |
| 18 | 22 |
| 19 | 23 |
| 20 void FUNCTION_NAME(NetworkInterface_ListSupported)(Dart_NativeArguments args) { | 24 void FUNCTION_NAME(NetworkInterface_ListSupported)(Dart_NativeArguments args) { |
| 21 Dart_ThrowException(DartUtils::NewDartArgumentError( | 25 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 22 "Sockets unsupported on this platform")); | 26 "Sockets unsupported on this platform")); |
| 23 } | 27 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 155 |
| 152 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { | 156 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { |
| 153 Dart_ThrowException(DartUtils::NewDartArgumentError( | 157 Dart_ThrowException(DartUtils::NewDartArgumentError( |
| 154 "Sockets unsupported on this platform")); | 158 "Sockets unsupported on this platform")); |
| 155 } | 159 } |
| 156 | 160 |
| 157 } // namespace bin | 161 } // namespace bin |
| 158 } // namespace dart | 162 } // namespace dart |
| 159 | 163 |
| 160 #endif // defined(DART_IO_DISABLED) | 164 #endif // defined(DART_IO_DISABLED) |
| OLD | NEW |