Close the serial port. * This function is used to close the serial port. Any asynchronous read or * write operations will be cancelled immediately, and will complete with the * boost::asio::error::operation_aborted error. * * @throws boost::system::system_error Thrown on failure. */
| 461 | * @throws boost::system::system_error Thrown on failure. |
| 462 | */ |
| 463 | void close() |
| 464 | { |
| 465 | boost::system::error_code ec; |
| 466 | impl_.get_service().close(impl_.get_implementation(), ec); |
| 467 | boost::asio::detail::throw_error(ec, "close"); |
| 468 | } |
| 469 | |
| 470 | /// Close the serial port. |
| 471 | /** |
nothing calls this directly
no test coverage detected