Michael Mckeown
2016-05-26 13:09:16 UTC
Hi again, with state_update_alert I get 'state_update_alert state
updates for 0 torrents' with the vector of torrent_status having a count
of zero despite torrents running.
Pretty sure I'm doing it right:
session->post_torrent_updates ( );
session->pop_alerts ( &alerts );
for ( libtorrent::alert const* a : alerts ) {
if ( auto state = libtorrent::alert_cast<
libtorrent::state_update_alert >( a ) )
{
std::cout << "state_update_alert " << a->message ( ) << "\n";
for ( std::vector<torrent_status>::const_iterator it =
state->status.begin ( ) , end ( state->status.end ( ) ); it != end; ++it )
{
}
}
}
built with master from last night with:
toolset=msvc-14.0 boost-link=static runtime-link=static
deprecated-functions=off encryption=on link=static dht=on logging=off
i2p=on variant=release
Thanks.
updates for 0 torrents' with the vector of torrent_status having a count
of zero despite torrents running.
Pretty sure I'm doing it right:
session->post_torrent_updates ( );
session->pop_alerts ( &alerts );
for ( libtorrent::alert const* a : alerts ) {
if ( auto state = libtorrent::alert_cast<
libtorrent::state_update_alert >( a ) )
{
std::cout << "state_update_alert " << a->message ( ) << "\n";
for ( std::vector<torrent_status>::const_iterator it =
state->status.begin ( ) , end ( state->status.end ( ) ); it != end; ++it )
{
}
}
}
built with master from last night with:
toolset=msvc-14.0 boost-link=static runtime-link=static
deprecated-functions=off encryption=on link=static dht=on logging=off
i2p=on variant=release
Thanks.