master
nkls 2 years ago
parent 7ba80aeddf
commit f76247995f

Binary file not shown.

Binary file not shown.

@ -111,6 +111,24 @@ class mix
atp.save_path=".";
lt::torrent_handle h = ses.add_torrent(std::move(atp));
for (;;)
{
std::vector<lt::alert*> alerts;
ses.pop_alerts(&alerts);
for (lt::alert const* a : alerts)
{
std::cout << a->message() << std::endl;
if (lt::alert_cast<lt::torrent_finished_alert>(a))
{
std::cout << "Torrent finished" << std::endl;
}
if (lt::alert_cast<lt::torrent_error_alert>(a))
{
std::cout << "Torrent error" << std::endl;
}
}
}
// lt::dht::dht_state dst;

Loading…
Cancel
Save