Discussion:
[libtorrent] rename_file and corresponding alerts
Alexander Dyagilev
2017-04-08 07:12:49 UTC
Permalink
Hello,

Does each rename_file call always has the corresponding alert
(file_renamed_alert or file_rename_failed_alert)?

Code example:

handle.rename_file(0, "newname.txt");
handle.rename_file(0, "newname2.txt");


Will I get 2 alerts?
Arvid Norberg
2017-04-11 00:33:56 UTC
Permalink
Post by Alexander Dyagilev
Hello,
Does each rename_file call always has the corresponding alert
(file_renamed_alert or file_rename_failed_alert)?
handle.rename_file(0, "newname.txt");
handle.rename_file(0, "newname2.txt");
Will I get 2 alerts?
yes. Both of those calls will be queued up on the internal message queue
and executed in serial, each posting a response alert back.
--
Arvid Norberg
Alexander Dyagilev
2017-04-12 16:40:08 UTC
Permalink
thanks for the response.
Post by Arvid Norberg
Post by Alexander Dyagilev
Hello,
Does each rename_file call always has the corresponding alert
(file_renamed_alert or file_rename_failed_alert)?
handle.rename_file(0, "newname.txt");
handle.rename_file(0, "newname2.txt");
Will I get 2 alerts?
yes. Both of those calls will be queued up on the internal message queue
and executed in serial, each posting a response alert back.
Continue reading on narkive:
Loading...