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