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

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

Issue 25511002: Add reusePort argument to ServerSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Mac os X version. Created 7 years, 2 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 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 static intptr_t Accept(intptr_t fd); 213 static intptr_t Accept(intptr_t fd);
214 214
215 // Returns a positive integer if the call is successful. In case of failure 215 // Returns a positive integer if the call is successful. In case of failure
216 // it returns: 216 // it returns:
217 // 217 //
218 // -1: system error (errno set) 218 // -1: system error (errno set)
219 // -5: invalid bindAddress 219 // -5: invalid bindAddress
220 static intptr_t CreateBindListen(RawAddr addr, 220 static intptr_t CreateBindListen(RawAddr addr,
221 intptr_t port, 221 intptr_t port,
222 intptr_t backlog, 222 intptr_t backlog,
223 bool v6_only = false); 223 bool v6_only = false,
224 bool reuse_port = false);
224 225
225 private: 226 private:
226 DISALLOW_ALLOCATION(); 227 DISALLOW_ALLOCATION();
227 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); 228 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket);
228 }; 229 };
229 230
230 } // namespace bin 231 } // namespace bin
231 } // namespace dart 232 } // namespace dart
232 233
233 #endif // BIN_SOCKET_H_ 234 #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