Wait for the acceptor to become ready to read, ready to write, or to have pending error conditions. * This function is used to perform a blocking wait for an acceptor to enter * a ready to read, write or error condition state. * * @param w Specifies the desired acceptor state. * * @par Example * Waiting for an acceptor to become readable. * @code * asio::ip::tcp::acceptor a
| 1166 | * @endcode |
| 1167 | */ |
| 1168 | void wait(wait_type w) |
| 1169 | { |
| 1170 | asio::error_code ec; |
| 1171 | impl_.get_service().wait(impl_.get_implementation(), w, ec); |
| 1172 | asio::detail::throw_error(ec, "wait"); |
| 1173 | } |
| 1174 | |
| 1175 | /// Wait for the acceptor to become ready to read, ready to write, or to have |
| 1176 | /// pending error conditions. |
nothing calls this directly
no test coverage detected