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

Function close

include/boost/asio/basic_file.hpp:615–620  ·  view source on GitHub ↗

Close the file. * This function is used to close the file. 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. Note that, even if * the function indicates an error, the underlying descriptor is closed. */

Source from the content-addressed store, hash-verified

613 * the function indicates an error, the underlying descriptor is closed.
614 */
615 void close()
616 {
617 boost::system::error_code ec;
618 impl_.get_service().close(impl_.get_implementation(), ec);
619 boost::asio::detail::throw_error(ec, "close");
620 }
621
622 /// Close the file.
623 /**

Callers 7

do_read_headerMethod · 0.50
do_read_bodyMethod · 0.50
do_write_outputMethod · 0.50
do_read_inputMethod · 0.50
do_write_messageMethod · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 2

throw_errorFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected