Browse Source

continuing

master
nkls 9 months ago
parent
commit
f76247995f
3 changed files with 18 additions and 0 deletions
  1. BIN
      src/.mix.cpp.swp
  2. BIN
      src/mix
  3. +18
    -0
      src/mix.cpp

BIN
src/.mix.cpp.swp View File


BIN
src/mix View File


+ 18
- 0
src/mix.cpp View File

@ -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