Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: runtime/bin/io_natives.cc

Issue 2205913003: Better error-message when bind fails. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add android support. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « CHANGELOG.md ('k') | runtime/bin/socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 V(SecurityContext_SetAlpnProtocols, 3) \ 114 V(SecurityContext_SetAlpnProtocols, 3) \
115 V(SecurityContext_SetClientAuthoritiesBytes, 3) \ 115 V(SecurityContext_SetClientAuthoritiesBytes, 3) \
116 V(SecurityContext_SetTrustedCertificatesBytes, 3) \ 116 V(SecurityContext_SetTrustedCertificatesBytes, 3) \
117 V(SecurityContext_TrustBuiltinRoots, 1) \ 117 V(SecurityContext_TrustBuiltinRoots, 1) \
118 V(SecurityContext_UseCertificateChainBytes, 3) \ 118 V(SecurityContext_UseCertificateChainBytes, 3) \
119 V(ServerSocket_Accept, 2) \ 119 V(ServerSocket_Accept, 2) \
120 V(ServerSocket_CreateBindListen, 6) \ 120 V(ServerSocket_CreateBindListen, 6) \
121 V(Socket_CreateConnect, 3) \ 121 V(Socket_CreateConnect, 3) \
122 V(Socket_CreateBindConnect, 4) \ 122 V(Socket_CreateBindConnect, 4) \
123 V(Socket_CreateBindDatagram, 4) \ 123 V(Socket_CreateBindDatagram, 4) \
124 V(Socket_IsBindError, 2) \
124 V(Socket_Available, 1) \ 125 V(Socket_Available, 1) \
125 V(Socket_Read, 2) \ 126 V(Socket_Read, 2) \
126 V(Socket_RecvFrom, 1) \ 127 V(Socket_RecvFrom, 1) \
127 V(Socket_WriteList, 4) \ 128 V(Socket_WriteList, 4) \
128 V(Socket_SendTo, 6) \ 129 V(Socket_SendTo, 6) \
129 V(Socket_GetPort, 1) \ 130 V(Socket_GetPort, 1) \
130 V(Socket_GetRemotePeer, 1) \ 131 V(Socket_GetRemotePeer, 1) \
131 V(Socket_GetError, 1) \ 132 V(Socket_GetError, 1) \
132 V(Socket_GetStdioHandle, 2) \ 133 V(Socket_GetStdioHandle, 2) \
133 V(Socket_GetType, 1) \ 134 V(Socket_GetType, 1) \
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 struct NativeEntries* entry = &(IOEntries[i]); 189 struct NativeEntries* entry = &(IOEntries[i]);
189 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 190 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
190 return reinterpret_cast<const uint8_t*>(entry->name_); 191 return reinterpret_cast<const uint8_t*>(entry->name_);
191 } 192 }
192 } 193 }
193 return NULL; 194 return NULL;
194 } 195 }
195 196
196 } // namespace bin 197 } // namespace bin
197 } // namespace dart 198 } // namespace dart
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | runtime/bin/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698