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