plicity, it will do nothing except wait for the state of the underlying socket to change or until a timeout expires after which the state of the <b>SSL</b> object might have changed. We will call our function <code>wait_for_activity()</code>.</p>

<pre><code>    static void wait_for_activity(SSL *ssl)
    {
        fd_set wfds, rfds;
        int width, sock, isinfinite;
        struct timeval tv;
        struct timeval *tvp = NULL;

        /* Get hold of the underlying file descriptor for the socket */
   