OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 #if defined(DART_IO_DISABLED) |
| 6 |
| 7 #include "bin/builtin.h" |
| 8 #include "bin/dartutils.h" |
| 9 #include "include/dart_api.h" |
| 10 |
| 11 namespace dart { |
| 12 namespace bin { |
| 13 |
| 14 |
| 15 void FUNCTION_NAME(SynchronousSocket_CreateConnectSync)( |
| 16 Dart_NativeArguments args) { |
| 17 Dart_ThrowException( |
| 18 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 19 } |
| 20 |
| 21 |
| 22 void FUNCTION_NAME(SynchronousSocket_LookupRequest)(Dart_NativeArguments args) { |
| 23 Dart_ThrowException( |
| 24 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 25 } |
| 26 |
| 27 |
| 28 void FUNCTION_NAME(SynchronousSocket_CloseSync)(Dart_NativeArguments args) { |
| 29 Dart_ThrowException( |
| 30 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 31 } |
| 32 |
| 33 |
| 34 void FUNCTION_NAME(SynchronousSocket_Available)(Dart_NativeArguments args) { |
| 35 Dart_ThrowException( |
| 36 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 37 } |
| 38 |
| 39 |
| 40 void FUNCTION_NAME(SynchronousSocket_Read)(Dart_NativeArguments args) { |
| 41 Dart_ThrowException( |
| 42 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 43 } |
| 44 |
| 45 |
| 46 void FUNCTION_NAME(SynchronousSocket_ReadList)(Dart_NativeArguments args) { |
| 47 Dart_ThrowException( |
| 48 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 49 } |
| 50 |
| 51 |
| 52 void FUNCTION_NAME(SynchronousSocket_WriteList)(Dart_NativeArguments args) { |
| 53 Dart_ThrowException( |
| 54 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 55 } |
| 56 |
| 57 |
| 58 void FUNCTION_NAME(SynchronousSocket_ShutdownRead)(Dart_NativeArguments args) { |
| 59 Dart_ThrowException( |
| 60 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 61 } |
| 62 |
| 63 |
| 64 void FUNCTION_NAME(SynchronousSocket_ShutdownWrite)(Dart_NativeArguments args) { |
| 65 Dart_ThrowException( |
| 66 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 67 } |
| 68 |
| 69 |
| 70 void FUNCTION_NAME(SynchronousSocket_GetPort)(Dart_NativeArguments args) { |
| 71 Dart_ThrowException( |
| 72 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 73 } |
| 74 |
| 75 |
| 76 void FUNCTION_NAME(SynchronousSocket_GetRemotePeer)(Dart_NativeArguments args) { |
| 77 Dart_ThrowException( |
| 78 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 79 } |
| 80 |
| 81 } // namespace bin |
| 82 } // namespace dart |
| 83 |
| 84 #endif // defined(DART_IO_DISABLED) |
OLD | NEW |