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
| 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. |
nothing calls this directly
no test coverage detected