| 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 | 10 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 static intptr_t Accept(intptr_t fd); | 170 static intptr_t Accept(intptr_t fd); |
| 171 | 171 |
| 172 // Returns a positive integer if the call is successful. In case of failure | 172 // Returns a positive integer if the call is successful. In case of failure |
| 173 // it returns: | 173 // it returns: |
| 174 // | 174 // |
| 175 // -1: system error (errno set) | 175 // -1: system error (errno set) |
| 176 // -5: invalid bindAddress | 176 // -5: invalid bindAddress |
| 177 static intptr_t CreateBindListen(RawAddr addr, | 177 static intptr_t CreateBindListen(RawAddr addr, |
| 178 intptr_t port, | 178 intptr_t port, |
| 179 intptr_t backlog); | 179 intptr_t backlog, |
| 180 bool v6_only = false); |
| 180 | 181 |
| 181 DISALLOW_ALLOCATION(); | 182 DISALLOW_ALLOCATION(); |
| 182 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); | 183 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace bin | 186 } // namespace bin |
| 186 } // namespace dart | 187 } // namespace dart |
| 187 | 188 |
| 188 #endif // BIN_SOCKET_H_ | 189 #endif // BIN_SOCKET_H_ |
| OLD | NEW |