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 <map> | 8 #include <map> |
9 | 9 |
10 #include "platform/globals.h" | 10 #include "platform/globals.h" |
11 | 11 |
12 #include "bin/builtin.h" | 12 #include "bin/builtin.h" |
13 #include "bin/dartutils.h" | 13 #include "bin/dartutils.h" |
14 // Declare the OS-specific types ahead of defining the generic class. | 14 // Declare the OS-specific types ahead of defining the generic class. |
15 #if defined(TARGET_OS_ANDROID) | 15 #if defined(TARGET_OS_ANDROID) |
16 #include "bin/socket_android.h" | 16 #include "bin/socket_android.h" |
17 #elif defined(TARGET_OS_LINUX) | 17 #elif defined(TARGET_OS_LINUX) |
18 #include "bin/socket_linux.h" | 18 #include "bin/socket_linux.h" |
19 #elif defined(TARGET_OS_MACOS) | 19 #elif defined(TARGET_OS_MACOS) |
20 #include "bin/socket_macos.h" | 20 #include "bin/socket_macos.h" |
| 21 #elif defined(TARGET_OS_OPENBSD) |
| 22 #include "bin/socket_openbsd.h" |
21 #elif defined(TARGET_OS_WINDOWS) | 23 #elif defined(TARGET_OS_WINDOWS) |
22 #include "bin/socket_win.h" | 24 #include "bin/socket_win.h" |
23 #else | 25 #else |
24 #error Unknown target os. | 26 #error Unknown target os. |
25 #endif | 27 #endif |
26 #include "bin/thread.h" | 28 #include "bin/thread.h" |
27 #include "bin/utils.h" | 29 #include "bin/utils.h" |
28 | 30 |
29 | 31 |
30 namespace dart { | 32 namespace dart { |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 417 |
416 private: | 418 private: |
417 DISALLOW_COPY_AND_ASSIGN(ListeningSocketRegistry); | 419 DISALLOW_COPY_AND_ASSIGN(ListeningSocketRegistry); |
418 }; | 420 }; |
419 | 421 |
420 | 422 |
421 } // namespace bin | 423 } // namespace bin |
422 } // namespace dart | 424 } // namespace dart |
423 | 425 |
424 #endif // BIN_SOCKET_H_ | 426 #endif // BIN_SOCKET_H_ |
OLD | NEW |