MCPcopy Create free account
hub / github.com/boostorg/asio / close

Function close

include/boost/asio/basic_serial_port.hpp:463–468  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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 /**

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected