| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 static CObject* LookupRequest(const CObjectArray& request); | 275 static CObject* LookupRequest(const CObjectArray& request); |
| 276 static CObject* ListInterfacesRequest(const CObjectArray& request); | 276 static CObject* ListInterfacesRequest(const CObjectArray& request); |
| 277 static CObject* ReverseLookupRequest(const CObjectArray& request); | 277 static CObject* ReverseLookupRequest(const CObjectArray& request); |
| 278 | 278 |
| 279 static Dart_Port GetServicePort(); | 279 static Dart_Port GetServicePort(); |
| 280 | 280 |
| 281 static void SetSocketIdNativeField(Dart_Handle socket, intptr_t id); | 281 static void SetSocketIdNativeField(Dart_Handle socket, intptr_t id); |
| 282 static intptr_t GetSocketIdNativeField(Dart_Handle socket); | 282 static intptr_t GetSocketIdNativeField(Dart_Handle socket); |
| 283 | 283 |
| 284 private: | 284 private: |
| 285 static dart::Mutex* mutex_; | |
| 286 static int service_ports_size_; | |
| 287 static Dart_Port* service_ports_; | |
| 288 static int service_ports_index_; | |
| 289 | |
| 290 DISALLOW_ALLOCATION(); | 285 DISALLOW_ALLOCATION(); |
| 291 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket); | 286 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket); |
| 292 }; | 287 }; |
| 293 | 288 |
| 294 | 289 |
| 295 class ServerSocket { | 290 class ServerSocket { |
| 296 public: | 291 public: |
| 297 static const intptr_t kTemporaryFailure = -2; | 292 static const intptr_t kTemporaryFailure = -2; |
| 298 | 293 |
| 299 static intptr_t Accept(intptr_t fd); | 294 static intptr_t Accept(intptr_t fd); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 310 | 305 |
| 311 private: | 306 private: |
| 312 DISALLOW_ALLOCATION(); | 307 DISALLOW_ALLOCATION(); |
| 313 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); | 308 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); |
| 314 }; | 309 }; |
| 315 | 310 |
| 316 } // namespace bin | 311 } // namespace bin |
| 317 } // namespace dart | 312 } // namespace dart |
| 318 | 313 |
| 319 #endif // BIN_SOCKET_H_ | 314 #endif // BIN_SOCKET_H_ |
| OLD | NEW |