 called when the torrent is in a state where it
can start downloading.</p>
<a name="on_state()"></a><span class="report-issue">[<a href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_plugin%3A%3A%5Bon_state%28%29%5D&labels=documentation&body=Documentation+under+heading+%22torrent_plugin%3A%3A%5Bon_state%28%29%5D%22+could+be+improved">report issue</a>]</span></div>
<div class="section" id="on-state">
<h2>on_state()</h2>
<pre class="literal-block">
virtual void <strong>on_state</strong> (t