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

Side by Side Diff: runtime/bin/socket.h

Issue 19263003: Add FileSystemWatcher class to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix android socket. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/socket.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #ifndef BIN_SOCKET_H_ 5 #ifndef BIN_SOCKET_H_
6 #define BIN_SOCKET_H_ 6 #define BIN_SOCKET_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/utils.h" 9 #include "bin/utils.h"
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 static int Read(intptr_t fd, void* buffer, intptr_t num_bytes); 158 static int Read(intptr_t fd, void* buffer, intptr_t num_bytes);
159 static int Write(intptr_t fd, const void* buffer, intptr_t num_bytes); 159 static int Write(intptr_t fd, const void* buffer, intptr_t num_bytes);
160 static intptr_t Create(RawAddr addr); 160 static intptr_t Create(RawAddr addr);
161 static intptr_t Connect(intptr_t fd, RawAddr addr, const intptr_t port); 161 static intptr_t Connect(intptr_t fd, RawAddr addr, const intptr_t port);
162 static intptr_t CreateConnect(RawAddr addr, 162 static intptr_t CreateConnect(RawAddr addr,
163 const intptr_t port); 163 const intptr_t port);
164 static intptr_t GetPort(intptr_t fd); 164 static intptr_t GetPort(intptr_t fd);
165 static bool GetRemotePeer(intptr_t fd, char* host, intptr_t* port); 165 static bool GetRemotePeer(intptr_t fd, char* host, intptr_t* port);
166 static void GetError(intptr_t fd, OSError* os_error); 166 static void GetError(intptr_t fd, OSError* os_error);
167 static int GetType(intptr_t fd); 167 static int GetType(intptr_t fd);
168 static intptr_t GetStdioHandle(int num); 168 static intptr_t GetStdioHandle(intptr_t num);
169 static void Close(intptr_t fd); 169 static void Close(intptr_t fd);
170 static bool SetNonBlocking(intptr_t fd); 170 static bool SetNonBlocking(intptr_t fd);
171 static bool SetBlocking(intptr_t fd); 171 static bool SetBlocking(intptr_t fd);
172 static bool SetNoDelay(intptr_t fd, bool enabled); 172 static bool SetNoDelay(intptr_t fd, bool enabled);
173 173
174 // Perform a hostname lookup. Returns a AddressList of SocketAddress's. 174 // Perform a hostname lookup. Returns a AddressList of SocketAddress's.
175 static AddressList<SocketAddress>* LookupAddress(const char* host, 175 static AddressList<SocketAddress>* LookupAddress(const char* host,
176 int type, 176 int type,
177 OSError** os_error); 177 OSError** os_error);
178 static bool ReverseLookup(RawAddr addr, 178 static bool ReverseLookup(RawAddr addr,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 private: 220 private:
221 DISALLOW_ALLOCATION(); 221 DISALLOW_ALLOCATION();
222 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); 222 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket);
223 }; 223 };
224 224
225 } // namespace bin 225 } // namespace bin
226 } // namespace dart 226 } // namespace dart
227 227
228 #endif // BIN_SOCKET_H_ 228 #endif // BIN_SOCKET_H_
OLDNEW
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698