| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 static AddressList<InterfaceSocketAddress>* ListInterfaces( | 184 static AddressList<InterfaceSocketAddress>* ListInterfaces( |
| 185 int type, | 185 int type, |
| 186 OSError** os_error); | 186 OSError** os_error); |
| 187 | 187 |
| 188 static Dart_Port GetServicePort(); | 188 static Dart_Port GetServicePort(); |
| 189 | 189 |
| 190 static Dart_Handle SetSocketIdNativeField(Dart_Handle socket, intptr_t id); | 190 static Dart_Handle SetSocketIdNativeField(Dart_Handle socket, intptr_t id); |
| 191 static Dart_Handle GetSocketIdNativeField(Dart_Handle socket, intptr_t* id); | 191 static Dart_Handle GetSocketIdNativeField(Dart_Handle socket, intptr_t* id); |
| 192 | 192 |
| 193 private: | 193 private: |
| 194 static dart::Mutex mutex_; | 194 static dart::Mutex* mutex_; |
| 195 static int service_ports_size_; | 195 static int service_ports_size_; |
| 196 static Dart_Port* service_ports_; | 196 static Dart_Port* service_ports_; |
| 197 static int service_ports_index_; | 197 static int service_ports_index_; |
| 198 | 198 |
| 199 DISALLOW_ALLOCATION(); | 199 DISALLOW_ALLOCATION(); |
| 200 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket); | 200 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket); |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 | 203 |
| 204 class ServerSocket { | 204 class ServerSocket { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |