not</span> <span class="bp">self</span><span class="o">.</span><span class="n">is_connected</span><span class="p">:</span>
            <span class="k">raise</span> <span class="ne">Exception</span><span class="p">(</span><span class="s1">'Not connected'</span><span class="p">)</span>

        <span class="c1"># Read the buffer mask to immediately see if any more data is being</span>
        <span class="n">buffer_status_mask</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span