OLD | NEW |
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 "platform/globals.h" | 7 #include "platform/globals.h" |
8 #if defined(TARGET_OS_FUCHSIA) | 8 #if defined(TARGET_OS_FUCHSIA) |
9 | 9 |
10 #include "bin/socket.h" | 10 #include "bin/socket.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 return -1; | 56 return -1; |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 intptr_t Socket::Read(intptr_t fd, void* buffer, intptr_t num_bytes) { | 60 intptr_t Socket::Read(intptr_t fd, void* buffer, intptr_t num_bytes) { |
61 UNIMPLEMENTED(); | 61 UNIMPLEMENTED(); |
62 return -1; | 62 return -1; |
63 } | 63 } |
64 | 64 |
65 | 65 |
66 intptr_t Socket::RecvFrom( | 66 intptr_t Socket::RecvFrom(intptr_t fd, |
67 intptr_t fd, void* buffer, intptr_t num_bytes, RawAddr* addr) { | 67 void* buffer, |
| 68 intptr_t num_bytes, |
| 69 RawAddr* addr) { |
68 UNIMPLEMENTED(); | 70 UNIMPLEMENTED(); |
69 return -1; | 71 return -1; |
70 } | 72 } |
71 | 73 |
72 | 74 |
73 intptr_t Socket::Write(intptr_t fd, const void* buffer, intptr_t num_bytes) { | 75 intptr_t Socket::Write(intptr_t fd, const void* buffer, intptr_t num_bytes) { |
74 UNIMPLEMENTED(); | 76 UNIMPLEMENTED(); |
75 return -1; | 77 return -1; |
76 } | 78 } |
77 | 79 |
78 | 80 |
79 intptr_t Socket::SendTo( | 81 intptr_t Socket::SendTo(intptr_t fd, |
80 intptr_t fd, const void* buffer, intptr_t num_bytes, const RawAddr& addr) { | 82 const void* buffer, |
| 83 intptr_t num_bytes, |
| 84 const RawAddr& addr) { |
81 UNIMPLEMENTED(); | 85 UNIMPLEMENTED(); |
82 return -1; | 86 return -1; |
83 } | 87 } |
84 | 88 |
85 | 89 |
86 intptr_t Socket::GetPort(intptr_t fd) { | 90 intptr_t Socket::GetPort(intptr_t fd) { |
87 UNIMPLEMENTED(); | 91 UNIMPLEMENTED(); |
88 return -1; | 92 return -1; |
89 } | 93 } |
90 | 94 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 return false; | 229 return false; |
226 } | 230 } |
227 | 231 |
228 | 232 |
229 bool Socket::SetBroadcast(intptr_t fd, bool enabled) { | 233 bool Socket::SetBroadcast(intptr_t fd, bool enabled) { |
230 UNIMPLEMENTED(); | 234 UNIMPLEMENTED(); |
231 return false; | 235 return false; |
232 } | 236 } |
233 | 237 |
234 | 238 |
235 bool Socket::JoinMulticast( | 239 bool Socket::JoinMulticast(intptr_t fd, |
236 intptr_t fd, const RawAddr& addr, const RawAddr&, int interfaceIndex) { | 240 const RawAddr& addr, |
| 241 const RawAddr&, |
| 242 int interfaceIndex) { |
237 UNIMPLEMENTED(); | 243 UNIMPLEMENTED(); |
238 return false; | 244 return false; |
239 } | 245 } |
240 | 246 |
241 | 247 |
242 bool Socket::LeaveMulticast( | 248 bool Socket::LeaveMulticast(intptr_t fd, |
243 intptr_t fd, const RawAddr& addr, const RawAddr&, int interfaceIndex) { | 249 const RawAddr& addr, |
| 250 const RawAddr&, |
| 251 int interfaceIndex) { |
244 UNIMPLEMENTED(); | 252 UNIMPLEMENTED(); |
245 return false; | 253 return false; |
246 } | 254 } |
247 | 255 |
248 } // namespace bin | 256 } // namespace bin |
249 } // namespace dart | 257 } // namespace dart |
250 | 258 |
251 #endif // defined(TARGET_OS_FUCHSIA) | 259 #endif // defined(TARGET_OS_FUCHSIA) |
252 | 260 |
253 #endif // !defined(DART_IO_DISABLED) | 261 #endif // !defined(DART_IO_DISABLED) |
OLD | NEW |