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