Assign an existing native serial port to the serial port. * This function opens the serial port to hold an existing native serial port. * * @param native_serial_port A native serial port. * * @throws boost::system::system_error Thrown on failure. */
| 423 | * @throws boost::system::system_error Thrown on failure. |
| 424 | */ |
| 425 | void assign(const native_handle_type& native_serial_port) |
| 426 | { |
| 427 | boost::system::error_code ec; |
| 428 | impl_.get_service().assign(impl_.get_implementation(), |
| 429 | native_serial_port, ec); |
| 430 | boost::asio::detail::throw_error(ec, "assign"); |
| 431 | } |
| 432 | |
| 433 | /// Assign an existing native serial port to the serial port. |
| 434 | /* |
nothing calls this directly
no test coverage detected