Wait for the socket to become ready to read, ready to write, or to have pending error conditions.
asio::error_code wait( implementation_type & impl, socket_base::wait_type w, asio::error_code & ec);