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

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

Issue 2812153002: Revert "Added synchronous socket implementation to dart:io." (Closed)
Patch Set: Created 3 years, 8 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/sync_socket_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/io_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #if !defined(DART_IO_DISABLED)
6
7 #include "platform/globals.h"
8 #if defined(HOST_OS_WINDOWS)
9
10 #include "bin/sync_socket.h"
11
12 #include "bin/builtin.h"
13 #include "bin/log.h"
14 #include "bin/utils.h"
15 #include "bin/utils_win.h"
16
17 namespace dart {
18 namespace bin {
19
20 SynchronousSocket::SynchronousSocket(intptr_t fd)
21 : ReferenceCounted(), fd_(fd), port_(ILLEGAL_PORT) {
22 LOG_ERR("SynchronousSocket is unimplemented\n");
23 UNIMPLEMENTED();
24 }
25
26
27 void SynchronousSocket::SetClosedFd() {
28 LOG_ERR("SynchronousSocket::SetClosedFd is unimplemented\n");
29 UNIMPLEMENTED();
30 }
31
32
33 intptr_t SynchronousSocket::CreateConnect(const RawAddr& addr) {
34 LOG_ERR("SynchronousSocket::CreateConnect is unimplemented\n");
35 UNIMPLEMENTED();
36 return -1;
37 }
38
39
40 intptr_t SynchronousSocket::CreateBindConnect(const RawAddr& addr,
41 const RawAddr& source_addr) {
42 LOG_ERR("SynchronousSocket::CreateBindConnect is unimplemented\n");
43 UNIMPLEMENTED();
44 return -1;
45 }
46
47 } // namespace bin
48 } // namespace dart
49
50 #endif // defined(HOST_OS_WINDOWS)
51
52 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/sync_socket_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698