OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ |
6 #define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ | 6 #define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <sys/types.h> // For |ssize_t|. | 9 #include <sys/types.h> // For |ssize_t|. |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 PlatformChannelRecvmsg(PlatformHandle h, | 68 PlatformChannelRecvmsg(PlatformHandle h, |
69 void* buf, | 69 void* buf, |
70 size_t num_bytes, | 70 size_t num_bytes, |
71 std::deque<PlatformHandle>* platform_handles, | 71 std::deque<PlatformHandle>* platform_handles, |
72 bool block = false); | 72 bool block = false); |
73 | 73 |
74 // Returns false if |server_handle| encounters an unrecoverable error. | 74 // Returns false if |server_handle| encounters an unrecoverable error. |
75 // Returns true if it's valid to keep listening on |server_handle|. In this | 75 // Returns true if it's valid to keep listening on |server_handle|. In this |
76 // case, it's possible that a connection wasn't successfully established; then, | 76 // case, it's possible that a connection wasn't successfully established; then, |
77 // |connection_handle| will be invalid. | 77 // |connection_handle| will be invalid. |
78 bool ServerAcceptConnection(PlatformHandle server_handle, | 78 MOJO_SYSTEM_IMPL_EXPORT bool ServerAcceptConnection( |
79 ScopedPlatformHandle* connection_handle); | 79 PlatformHandle server_handle, |
| 80 ScopedPlatformHandle* connection_handle); |
80 | 81 |
81 } // namespace edk | 82 } // namespace edk |
82 } // namespace mojo | 83 } // namespace mojo |
83 | 84 |
84 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ | 85 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ |
OLD | NEW |