| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 static AddressList<InterfaceSocketAddress>* ListInterfaces( | 195 static AddressList<InterfaceSocketAddress>* ListInterfaces( |
| 196 int type, | 196 int type, |
| 197 OSError** os_error); | 197 OSError** os_error); |
| 198 | 198 |
| 199 static CObject* LookupRequest(const CObjectArray& request); | 199 static CObject* LookupRequest(const CObjectArray& request); |
| 200 static CObject* ListInterfacesRequest(const CObjectArray& request); | 200 static CObject* ListInterfacesRequest(const CObjectArray& request); |
| 201 static CObject* ReverseLookupRequest(const CObjectArray& request); | 201 static CObject* ReverseLookupRequest(const CObjectArray& request); |
| 202 | 202 |
| 203 static Dart_Port GetServicePort(); | 203 static Dart_Port GetServicePort(); |
| 204 | 204 |
| 205 static Dart_Handle SetSocketIdNativeField(Dart_Handle socket, intptr_t id); | 205 static void SetSocketIdNativeField(Dart_Handle socket, intptr_t id); |
| 206 static Dart_Handle GetSocketIdNativeField(Dart_Handle socket, intptr_t* id); | 206 static intptr_t GetSocketIdNativeField(Dart_Handle socket); |
| 207 | 207 |
| 208 private: | 208 private: |
| 209 static dart::Mutex* mutex_; | 209 static dart::Mutex* mutex_; |
| 210 static int service_ports_size_; | 210 static int service_ports_size_; |
| 211 static Dart_Port* service_ports_; | 211 static Dart_Port* service_ports_; |
| 212 static int service_ports_index_; | 212 static int service_ports_index_; |
| 213 | 213 |
| 214 DISALLOW_ALLOCATION(); | 214 DISALLOW_ALLOCATION(); |
| 215 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket); | 215 DISALLOW_IMPLICIT_CONSTRUCTORS(Socket); |
| 216 }; | 216 }; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 234 | 234 |
| 235 private: | 235 private: |
| 236 DISALLOW_ALLOCATION(); | 236 DISALLOW_ALLOCATION(); |
| 237 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); | 237 DISALLOW_IMPLICIT_CONSTRUCTORS(ServerSocket); |
| 238 }; | 238 }; |
| 239 | 239 |
| 240 } // namespace bin | 240 } // namespace bin |
| 241 } // namespace dart | 241 } // namespace dart |
| 242 | 242 |
| 243 #endif // BIN_SOCKET_H_ | 243 #endif // BIN_SOCKET_H_ |
| OLD | NEW |