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
| 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. |
no test coverage detected