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

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

Issue 907883002: Remove SetNonBlocking/SetBlocking methods from Socket and add missing close-on-exec (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 5 years, 10 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/file_system_watcher_macos.cc ('k') | runtime/bin/socket_android.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 "platform/globals.h" 8 #include "platform/globals.h"
9 9
10 #include "bin/builtin.h" 10 #include "bin/builtin.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 static intptr_t CreateConnect(RawAddr addr, 232 static intptr_t CreateConnect(RawAddr addr,
233 const intptr_t port); 233 const intptr_t port);
234 static intptr_t CreateBindDatagram( 234 static intptr_t CreateBindDatagram(
235 RawAddr* addr, intptr_t port, bool reuseAddress); 235 RawAddr* addr, intptr_t port, bool reuseAddress);
236 static intptr_t GetPort(intptr_t fd); 236 static intptr_t GetPort(intptr_t fd);
237 static SocketAddress* GetRemotePeer(intptr_t fd, intptr_t* port); 237 static SocketAddress* GetRemotePeer(intptr_t fd, intptr_t* port);
238 static void GetError(intptr_t fd, OSError* os_error); 238 static void GetError(intptr_t fd, OSError* os_error);
239 static int GetType(intptr_t fd); 239 static int GetType(intptr_t fd);
240 static intptr_t GetStdioHandle(intptr_t num); 240 static intptr_t GetStdioHandle(intptr_t num);
241 static void Close(intptr_t fd); 241 static void Close(intptr_t fd);
242 static bool SetNonBlocking(intptr_t fd);
243 static bool SetBlocking(intptr_t fd);
244 static bool GetNoDelay(intptr_t fd, bool* enabled); 242 static bool GetNoDelay(intptr_t fd, bool* enabled);
245 static bool SetNoDelay(intptr_t fd, bool enabled); 243 static bool SetNoDelay(intptr_t fd, bool enabled);
246 static bool GetMulticastLoop(intptr_t fd, intptr_t protocol, bool* enabled); 244 static bool GetMulticastLoop(intptr_t fd, intptr_t protocol, bool* enabled);
247 static bool SetMulticastLoop(intptr_t fd, intptr_t protocol, bool enabled); 245 static bool SetMulticastLoop(intptr_t fd, intptr_t protocol, bool enabled);
248 static bool GetMulticastHops(intptr_t fd, intptr_t protocol, int* value); 246 static bool GetMulticastHops(intptr_t fd, intptr_t protocol, int* value);
249 static bool SetMulticastHops(intptr_t fd, intptr_t protocol, int value); 247 static bool SetMulticastHops(intptr_t fd, intptr_t protocol, int value);
250 static bool GetBroadcast(intptr_t fd, bool* value); 248 static bool GetBroadcast(intptr_t fd, bool* value);
251 static bool SetBroadcast(intptr_t fd, bool value); 249 static bool SetBroadcast(intptr_t fd, bool value);
252 static bool JoinMulticast( 250 static bool JoinMulticast(
253 intptr_t fd, RawAddr* addr, RawAddr* interface, int interfaceIndex); 251 intptr_t fd, RawAddr* addr, RawAddr* interface, int interfaceIndex);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 307
310 private: 308 private:
311 DISALLOW_ALLOCATION(); 309 DISALLOW_ALLOCATION();
312 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); 310 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket);
313 }; 311 };
314 312
315 } // namespace bin 313 } // namespace bin
316 } // namespace dart 314 } // namespace dart
317 315
318 #endif // BIN_SOCKET_H_ 316 #endif // BIN_SOCKET_H_
OLDNEW
« no previous file with comments | « runtime/bin/file_system_watcher_macos.cc ('k') | runtime/bin/socket_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698