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

Function assign

include/boost/asio/basic_serial_port.hpp:425–431  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected