| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 V(Socket_Read, 2) \ | 49 V(Socket_Read, 2) \ |
| 50 V(Socket_ReadList, 4) \ | 50 V(Socket_ReadList, 4) \ |
| 51 V(Socket_WriteList, 4) \ | 51 V(Socket_WriteList, 4) \ |
| 52 V(Socket_GetPort, 1) \ | 52 V(Socket_GetPort, 1) \ |
| 53 V(Socket_GetRemotePeer, 1) \ | 53 V(Socket_GetRemotePeer, 1) \ |
| 54 V(Socket_GetError, 1) \ | 54 V(Socket_GetError, 1) \ |
| 55 V(Socket_GetStdioHandle, 2) \ | 55 V(Socket_GetStdioHandle, 2) \ |
| 56 V(Socket_NewServicePort, 0) \ | 56 V(Socket_NewServicePort, 0) \ |
| 57 V(Socket_GetType, 1) \ | 57 V(Socket_GetType, 1) \ |
| 58 V(Socket_SetOption, 3) \ | 58 V(Socket_SetOption, 3) \ |
| 59 V(SecureSocket_Connect, 8) \ | 59 V(SecureSocket_Connect, 9) \ |
| 60 V(SecureSocket_Destroy, 1) \ | 60 V(SecureSocket_Destroy, 1) \ |
| 61 V(SecureSocket_Handshake, 1) \ | 61 V(SecureSocket_Handshake, 1) \ |
| 62 V(SecureSocket_Init, 1) \ | 62 V(SecureSocket_Init, 1) \ |
| 63 V(SecureSocket_PeerCertificate, 1) \ | 63 V(SecureSocket_PeerCertificate, 1) \ |
| 64 V(SecureSocket_ProcessBuffer, 2) \ | 64 V(SecureSocket_ProcessBuffer, 2) \ |
| 65 V(SecureSocket_RegisterBadCertificateCallback, 2) \ | 65 V(SecureSocket_RegisterBadCertificateCallback, 2) \ |
| 66 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ | 66 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ |
| 67 V(SecureSocket_InitializeLibrary, 3) \ | 67 V(SecureSocket_InitializeLibrary, 3) \ |
| 68 V(StringToSystemEncoding, 1) \ | 68 V(StringToSystemEncoding, 1) \ |
| 69 V(SystemEncodingToString, 1) | 69 V(SystemEncodingToString, 1) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 92 if (!strcmp(function_name, entry->name_) && | 92 if (!strcmp(function_name, entry->name_) && |
| 93 (entry->argument_count_ == argument_count)) { | 93 (entry->argument_count_ == argument_count)) { |
| 94 return reinterpret_cast<Dart_NativeFunction>(entry->function_); | 94 return reinterpret_cast<Dart_NativeFunction>(entry->function_); |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 return NULL; | 97 return NULL; |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace bin | 100 } // namespace bin |
| 101 } // namespace dart | 101 } // namespace dart |
| OLD | NEW |