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

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

Issue 2210523002: Revert "Better error-message when bind fails." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 | « runtime/bin/socket_patch.dart ('k') | runtime/bin/socket_win.cc » ('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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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
(...skipping 17 matching lines...) Expand all
28 "Sockets unsupported on this platform")); 28 "Sockets unsupported on this platform"));
29 } 29 }
30 30
31 31
32 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) { 32 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) {
33 Dart_ThrowException(DartUtils::NewDartArgumentError( 33 Dart_ThrowException(DartUtils::NewDartArgumentError(
34 "Sockets unsupported on this platform")); 34 "Sockets unsupported on this platform"));
35 } 35 }
36 36
37 37
38 void FUNCTION_NAME(Socket_IsBindError)(Dart_NativeArguments args) {
39 Dart_ThrowException(DartUtils::NewDartArgumentError(
40 "Sockets unsupported on this platform"));
41 }
42
43
44 void FUNCTION_NAME(Socket_CreateBindDatagram)(Dart_NativeArguments args) { 38 void FUNCTION_NAME(Socket_CreateBindDatagram)(Dart_NativeArguments args) {
45 Dart_ThrowException(DartUtils::NewDartArgumentError( 39 Dart_ThrowException(DartUtils::NewDartArgumentError(
46 "Sockets unsupported on this platform")); 40 "Sockets unsupported on this platform"));
47 } 41 }
48 42
49 43
50 void FUNCTION_NAME(Socket_Available)(Dart_NativeArguments args) { 44 void FUNCTION_NAME(Socket_Available)(Dart_NativeArguments args) {
51 Dart_ThrowException(DartUtils::NewDartArgumentError( 45 Dart_ThrowException(DartUtils::NewDartArgumentError(
52 "Sockets unsupported on this platform")); 46 "Sockets unsupported on this platform"));
53 } 47 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 145
152 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { 146 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) {
153 Dart_ThrowException(DartUtils::NewDartArgumentError( 147 Dart_ThrowException(DartUtils::NewDartArgumentError(
154 "Sockets unsupported on this platform")); 148 "Sockets unsupported on this platform"));
155 } 149 }
156 150
157 } // namespace bin 151 } // namespace bin
158 } // namespace dart 152 } // namespace dart
159 153
160 #endif // defined(DART_IO_DISABLED) 154 #endif // defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/bin/socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698