Assign an existing native pipe to the pipe. * This function opens the pipe to hold an existing native pipe. * * @param native_pipe A native pipe. * * @throws asio::system_error Thrown on failure. */
| 305 | * @throws asio::system_error Thrown on failure. |
| 306 | */ |
| 307 | void assign(const native_handle_type& native_pipe) |
| 308 | { |
| 309 | asio::error_code ec; |
| 310 | impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); |
| 311 | asio::detail::throw_error(ec, "assign"); |
| 312 | } |
| 313 | |
| 314 | /// Assign an existing native pipe to the pipe. |
| 315 | /* |
nothing calls this directly
no test coverage detected