span><span class="o">.</span><span class="n">_is_connected</span> <span class="o">=</span> <span class="n">Event</span><span class="p">()</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">_data_available</span> <span class="o">=</span> <span class="n">Event</span><span class="p">()</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">_stream_lock</span> <span class="o">=</span> <span class="n">RLock</span><span class="p">()</span>

        <span