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 #include "bin/io_natives.h" | 5 #include "bin/io_natives.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 V(SecureSocket_Init, 1) \ | 52 V(SecureSocket_Init, 1) \ |
53 V(SecureSocket_PeerCertificate, 1) \ | 53 V(SecureSocket_PeerCertificate, 1) \ |
54 V(SecureSocket_RegisterBadCertificateCallback, 2) \ | 54 V(SecureSocket_RegisterBadCertificateCallback, 2) \ |
55 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ | 55 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ |
56 V(SecureSocket_Renegotiate, 4) \ | 56 V(SecureSocket_Renegotiate, 4) \ |
57 V(SecureSocket_InitializeLibrary, 3) \ | 57 V(SecureSocket_InitializeLibrary, 3) \ |
58 V(SecureSocket_FilterPointer, 1) \ | 58 V(SecureSocket_FilterPointer, 1) \ |
59 V(ServerSocket_CreateBindListen, 5) \ | 59 V(ServerSocket_CreateBindListen, 5) \ |
60 V(ServerSocket_Accept, 2) \ | 60 V(ServerSocket_Accept, 2) \ |
61 V(Socket_CreateConnect, 3) \ | 61 V(Socket_CreateConnect, 3) \ |
| 62 V(Socket_CreateBindDatagram, 4) \ |
62 V(Socket_Available, 1) \ | 63 V(Socket_Available, 1) \ |
63 V(Socket_Read, 2) \ | 64 V(Socket_Read, 2) \ |
| 65 V(Socket_RecvFrom, 1) \ |
64 V(Socket_WriteList, 4) \ | 66 V(Socket_WriteList, 4) \ |
| 67 V(Socket_SendTo, 6) \ |
65 V(Socket_GetPort, 1) \ | 68 V(Socket_GetPort, 1) \ |
66 V(Socket_GetRemotePeer, 1) \ | 69 V(Socket_GetRemotePeer, 1) \ |
67 V(Socket_GetError, 1) \ | 70 V(Socket_GetError, 1) \ |
68 V(Socket_GetStdioHandle, 2) \ | 71 V(Socket_GetStdioHandle, 2) \ |
69 V(Socket_GetType, 1) \ | 72 V(Socket_GetType, 1) \ |
70 V(Socket_SetOption, 3) \ | 73 V(Socket_GetOption, 3) \ |
| 74 V(Socket_SetOption, 4) \ |
| 75 V(Socket_JoinMulticast, 4) \ |
| 76 V(Socket_LeaveMulticast, 4) \ |
71 V(Socket_SetSocketId, 2) \ | 77 V(Socket_SetSocketId, 2) \ |
72 V(Stdin_ReadByte, 1) \ | 78 V(Stdin_ReadByte, 1) \ |
73 V(Stdin_SetEchoMode, 2) \ | 79 V(Stdin_SetEchoMode, 2) \ |
74 V(Stdin_SetLineMode, 2) \ | 80 V(Stdin_SetLineMode, 2) \ |
75 V(StringToSystemEncoding, 1) \ | 81 V(StringToSystemEncoding, 1) \ |
76 V(SystemEncodingToString, 1) | 82 V(SystemEncodingToString, 1) |
77 | 83 |
78 | 84 |
79 IO_NATIVE_LIST(DECLARE_FUNCTION); | 85 IO_NATIVE_LIST(DECLARE_FUNCTION); |
80 | 86 |
(...skipping 18 matching lines...) Expand all Loading... |
99 if (!strcmp(function_name, entry->name_) && | 105 if (!strcmp(function_name, entry->name_) && |
100 (entry->argument_count_ == argument_count)) { | 106 (entry->argument_count_ == argument_count)) { |
101 return reinterpret_cast<Dart_NativeFunction>(entry->function_); | 107 return reinterpret_cast<Dart_NativeFunction>(entry->function_); |
102 } | 108 } |
103 } | 109 } |
104 return NULL; | 110 return NULL; |
105 } | 111 } |
106 | 112 |
107 } // namespace bin | 113 } // namespace bin |
108 } // namespace dart | 114 } // namespace dart |
OLD | NEW |