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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 intptr_t Socket::GetStdioHandle(intptr_t num) { | 109 intptr_t Socket::GetStdioHandle(intptr_t num) { |
110 UNIMPLEMENTED(); | 110 UNIMPLEMENTED(); |
111 return num; | 111 return num; |
112 } | 112 } |
113 | 113 |
114 | 114 |
115 AddressList<SocketAddress>* Socket::LookupAddress(const char* host, | 115 AddressList<SocketAddress>* Socket::LookupAddress(const char* host, |
116 int type, | 116 int type, |
117 OSError** os_error) { | 117 OSError** os_error) { |
118 UNIMPLEMENTED(); | 118 // UNIMPLEMENTED |
| 119 ASSERT(*os_error == NULL); |
| 120 *os_error = new OSError(-1, |
| 121 "Socket::LookupAddress not implemented in " |
| 122 "Fuchsia Dart VM runtime", |
| 123 OSError::kGetAddressInfo); |
119 return NULL; | 124 return NULL; |
120 } | 125 } |
121 | 126 |
122 | 127 |
123 bool Socket::ReverseLookup(const RawAddr& addr, | 128 bool Socket::ReverseLookup(const RawAddr& addr, |
124 char* host, | 129 char* host, |
125 intptr_t host_len, | 130 intptr_t host_len, |
126 OSError** os_error) { | 131 OSError** os_error) { |
127 UNIMPLEMENTED(); | 132 UNIMPLEMENTED(); |
128 return false; | 133 return false; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 UNIMPLEMENTED(); | 244 UNIMPLEMENTED(); |
240 return false; | 245 return false; |
241 } | 246 } |
242 | 247 |
243 } // namespace bin | 248 } // namespace bin |
244 } // namespace dart | 249 } // namespace dart |
245 | 250 |
246 #endif // defined(TARGET_OS_FUCHSIA) | 251 #endif // defined(TARGET_OS_FUCHSIA) |
247 | 252 |
248 #endif // !defined(DART_IO_DISABLED) | 253 #endif // !defined(DART_IO_DISABLED) |
OLD | NEW |