MCPcopy Create free account
hub / github.com/alibaba/async_simple / wait

Function wait

demo_example/asio/asio/basic_socket.hpp:1723–1728  ·  view source on GitHub ↗

Wait for the socket to become ready to read, ready to write, or to have pending error conditions. * This function is used to perform a blocking wait for a socket to enter * a ready to read, write or error condition state. * * @param w Specifies the desired socket state. * * @par Example * Waiting for a socket to become readable. * @code * asio::ip::tcp::socket socket(my_con

Source from the content-addressed store, hash-verified

1721 * @endcode
1722 */
1723 void wait(wait_type w)
1724 {
1725 asio::error_code ec;
1726 impl_.get_service().wait(impl_.get_implementation(), w, ec);
1727 asio::detail::throw_error(ec, "wait");
1728 }
1729
1730 /// Wait for the socket to become ready to read, ready to write, or to have
1731 /// pending error conditions.

Callers 2

getMethod · 0.50
arrive_and_waitMethod · 0.50

Calls 2

throw_errorFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected