/a>
</h5></div></div></div>
<p>
            <span class="emphasis"><em>Inherited from basic_socket.</em></span>
          </p>
<p>
            Wait for the socket to become ready to read, ready to write, or to have
            pending error conditions.
          </p>
<pre class="programlisting">void wait(
    wait_type w,
    boost::system::error_code &amp; ec);
</pre>
<p>
            This function is used to perform a blocking wait for a socket to enter
            a ready to read, write or error condition