Michael Mckeown
2016-05-29 18:04:49 UTC
When adding with a magnet/hash I'm looking to get the details from the
torrent_file on the state_changed_alert but:
torrent_handle handle = state_changed_alert->handle;
torrent_status status = handle.status ( );
boost::weak_ptr<const torrent_info> weak_pointer = status.torrent_file;
gives all blank/zero in the torrent_info or:
torrent_handle handle = state_changed_alert->handle;
boost::shared_ptr<const torrent_info> shared_pointer =
handle.torrent_file ( );
does the same, how is it you access the metadata from magnet/hash torrents?
has_metadata returns true on both occasions.
Thanks.
Also, the new read_resume_data() function, where exactly is it and how
is it used?
Thanks again.
torrent_file on the state_changed_alert but:
torrent_handle handle = state_changed_alert->handle;
torrent_status status = handle.status ( );
boost::weak_ptr<const torrent_info> weak_pointer = status.torrent_file;
gives all blank/zero in the torrent_info or:
torrent_handle handle = state_changed_alert->handle;
boost::shared_ptr<const torrent_info> shared_pointer =
handle.torrent_file ( );
does the same, how is it you access the metadata from magnet/hash torrents?
has_metadata returns true on both occasions.
Thanks.
Also, the new read_resume_data() function, where exactly is it and how
is it used?
Thanks again.