MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / wait

Function wait

3rd/asio-1.24.0/include/asio/basic_socket.hpp:1737–1742  ·  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

1735 * @endcode
1736 */
1737 void wait(wait_type w)
1738 {
1739 asio::error_code ec;
1740 impl_.get_service().wait(impl_.get_implementation(), w, ec);
1741 asio::detail::throw_error(ec, "wait");
1742 }
1743
1744 /// Wait for the socket to become ready to read, ready to write, or to have
1745 /// pending error conditions.

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected