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

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

Issue 2168193002: Fuchsia: Build standalone VM. Make it run "Hello, World!". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 5 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_fuchsia.h ('k') | runtime/bin/stdio_fuchsia.cc » ('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) 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
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(TARGET_OS_FUCHSIA)
9
10 #include "bin/socket.h"
11 #include "bin/socket_fuchsia.h"
12
13 #include "bin/file.h"
14
15 namespace dart {
16 namespace bin {
17
18 SocketAddress::SocketAddress(struct sockaddr* sa) {
19 UNIMPLEMENTED();
20 }
21
22
23 bool Socket::FormatNumericAddress(const RawAddr& addr, char* address, int len) {
24 UNIMPLEMENTED();
25 return false;
26 }
27
28
29 bool Socket::Initialize() {
30 UNIMPLEMENTED();
31 return true;
32 }
33
34
35 intptr_t Socket::CreateConnect(const RawAddr& addr) {
36 UNIMPLEMENTED();
37 return -1;
38 }
39
40
41 intptr_t Socket::CreateBindConnect(const RawAddr& addr,
42 const RawAddr& source_addr) {
43 UNIMPLEMENTED();
44 return -1;
45 }
46
47
48 intptr_t Socket::Available(intptr_t fd) {
49 UNIMPLEMENTED();
50 return -1;
51 }
52
53
54 intptr_t Socket::Read(intptr_t fd, void* buffer, intptr_t num_bytes) {
55 UNIMPLEMENTED();
56 return -1;
57 }
58
59
60 intptr_t Socket::RecvFrom(
61 intptr_t fd, void* buffer, intptr_t num_bytes, RawAddr* addr) {
62 UNIMPLEMENTED();
63 return -1;
64 }
65
66
67 intptr_t Socket::Write(intptr_t fd, const void* buffer, intptr_t num_bytes) {
68 UNIMPLEMENTED();
69 return -1;
70 }
71
72
73 intptr_t Socket::SendTo(
74 intptr_t fd, const void* buffer, intptr_t num_bytes, const RawAddr& addr) {
75 UNIMPLEMENTED();
76 return -1;
77 }
78
79
80 intptr_t Socket::GetPort(intptr_t fd) {
81 UNIMPLEMENTED();
82 return -1;
83 }
84
85
86 SocketAddress* Socket::GetRemotePeer(intptr_t fd, intptr_t* port) {
87 UNIMPLEMENTED();
88 return NULL;
89 }
90
91
92 void Socket::GetError(intptr_t fd, OSError* os_error) {
93 UNIMPLEMENTED();
94 }
95
96
97 int Socket::GetType(intptr_t fd) {
98 UNIMPLEMENTED();
99 return File::kOther;
100 }
101
102
103 intptr_t Socket::GetStdioHandle(intptr_t num) {
104 UNIMPLEMENTED();
105 return num;
106 }
107
108
109 AddressList<SocketAddress>* Socket::LookupAddress(const char* host,
110 int type,
111 OSError** os_error) {
112 UNIMPLEMENTED();
113 return NULL;
114 }
115
116
117 bool Socket::ReverseLookup(const RawAddr& addr,
118 char* host,
119 intptr_t host_len,
120 OSError** os_error) {
121 UNIMPLEMENTED();
122 return false;
123 }
124
125
126 bool Socket::ParseAddress(int type, const char* address, RawAddr* addr) {
127 UNIMPLEMENTED();
128 return false;
129 }
130
131
132 intptr_t Socket::CreateBindDatagram(const RawAddr& addr, bool reuseAddress) {
133 UNIMPLEMENTED();
134 return -1;
135 }
136
137
138 bool Socket::ListInterfacesSupported() {
139 return false;
140 }
141
142
143 AddressList<InterfaceSocketAddress>* Socket::ListInterfaces(
144 int type,
145 OSError** os_error) {
146 UNIMPLEMENTED();
147 return NULL;
148 }
149
150
151 intptr_t ServerSocket::CreateBindListen(const RawAddr& addr,
152 intptr_t backlog,
153 bool v6_only) {
154 UNIMPLEMENTED();
155 return -1;
156 }
157
158
159 bool ServerSocket::StartAccept(intptr_t fd) {
160 UNIMPLEMENTED();
161 return false;
162 }
163
164
165 intptr_t ServerSocket::Accept(intptr_t fd) {
166 UNIMPLEMENTED();
167 return -1;
168 }
169
170
171 void Socket::Close(intptr_t fd) {
172 UNIMPLEMENTED();
173 }
174
175
176 bool Socket::GetNoDelay(intptr_t fd, bool* enabled) {
177 UNIMPLEMENTED();
178 return false;
179 }
180
181
182 bool Socket::SetNoDelay(intptr_t fd, bool enabled) {
183 UNIMPLEMENTED();
184 return false;
185 }
186
187
188 bool Socket::GetMulticastLoop(intptr_t fd, intptr_t protocol, bool* enabled) {
189 UNIMPLEMENTED();
190 return false;
191 }
192
193
194 bool Socket::SetMulticastLoop(intptr_t fd, intptr_t protocol, bool enabled) {
195 UNIMPLEMENTED();
196 return false;
197 }
198
199
200 bool Socket::GetMulticastHops(intptr_t fd, intptr_t protocol, int* value) {
201 UNIMPLEMENTED();
202 return false;
203 }
204
205
206 bool Socket::SetMulticastHops(intptr_t fd, intptr_t protocol, int value) {
207 UNIMPLEMENTED();
208 return false;
209 }
210
211
212 bool Socket::GetBroadcast(intptr_t fd, bool* enabled) {
213 UNIMPLEMENTED();
214 return false;
215 }
216
217
218 bool Socket::SetBroadcast(intptr_t fd, bool enabled) {
219 UNIMPLEMENTED();
220 return false;
221 }
222
223
224 bool Socket::JoinMulticast(
225 intptr_t fd, const RawAddr& addr, const RawAddr&, int interfaceIndex) {
226 UNIMPLEMENTED();
227 return false;
228 }
229
230
231 bool Socket::LeaveMulticast(
232 intptr_t fd, const RawAddr& addr, const RawAddr&, int interfaceIndex) {
233 UNIMPLEMENTED();
234 return false;
235 }
236
237 } // namespace bin
238 } // namespace dart
239
240 #endif // defined(TARGET_OS_FUCHSIA)
241
242 #endif // !defined(DART_IO_DISABLED)
OLDNEW
« no previous file with comments | « runtime/bin/socket_fuchsia.h ('k') | runtime/bin/stdio_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698