| 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 void FUNCTION_NAME(SynchronousSocket_CreateConnectSync)( | |
| 15 Dart_NativeArguments args) { | |
| 16 Dart_ThrowException( | |
| 17 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 18 } | |
| 19 | |
| 20 void FUNCTION_NAME(SynchronousSocket_LookupRequest)(Dart_NativeArguments args) { | |
| 21 Dart_ThrowException( | |
| 22 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 23 } | |
| 24 | |
| 25 void FUNCTION_NAME(SynchronousSocket_CloseSync)(Dart_NativeArguments args) { | |
| 26 Dart_ThrowException( | |
| 27 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 28 } | |
| 29 | |
| 30 void FUNCTION_NAME(SynchronousSocket_Available)(Dart_NativeArguments args) { | |
| 31 Dart_ThrowException( | |
| 32 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 33 } | |
| 34 | |
| 35 void FUNCTION_NAME(SynchronousSocket_Read)(Dart_NativeArguments args) { | |
| 36 Dart_ThrowException( | |
| 37 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 38 } | |
| 39 | |
| 40 void FUNCTION_NAME(SynchronousSocket_ReadList)(Dart_NativeArguments args) { | |
| 41 Dart_ThrowException( | |
| 42 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 43 } | |
| 44 | |
| 45 void FUNCTION_NAME(SynchronousSocket_WriteList)(Dart_NativeArguments args) { | |
| 46 Dart_ThrowException( | |
| 47 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 48 } | |
| 49 | |
| 50 void FUNCTION_NAME(SynchronousSocket_ShutdownRead)(Dart_NativeArguments args) { | |
| 51 Dart_ThrowException( | |
| 52 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 53 } | |
| 54 | |
| 55 void FUNCTION_NAME(SynchronousSocket_ShutdownWrite)(Dart_NativeArguments args) { | |
| 56 Dart_ThrowException( | |
| 57 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 58 } | |
| 59 | |
| 60 void FUNCTION_NAME(SynchronousSocket_GetPort)(Dart_NativeArguments args) { | |
| 61 Dart_ThrowException( | |
| 62 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 63 } | |
| 64 | |
| 65 void FUNCTION_NAME(SynchronousSocket_GetRemotePeer)(Dart_NativeArguments args) { | |
| 66 Dart_ThrowException( | |
| 67 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | |
| 68 } | |
| 69 | |
| 70 } // namespace bin | |
| 71 } // namespace dart | |
| 72 | |
| 73 #endif // defined(DART_IO_DISABLED) | |
| OLD | NEW |