| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |