File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ int main(int argc, char *argv[]) {
2323 return 1 ;
2424 }
2525
26- lt::session ses ;
26+ lt::session sess ;
2727 lt::add_torrent_params atp;
2828 atp.url = argv[1 ];
2929 atp.upload_mode = true ;
@@ -40,11 +40,11 @@ int main(int argc, char *argv[]) {
4040 | lt::add_torrent_params::flag_upload_mode
4141 | lt::add_torrent_params::flag_apply_ip_filter;
4242 */
43- lt::torrent_handle torh = ses .add_torrent (atp);
43+ lt::torrent_handle torh = sess .add_torrent (atp);
4444 std::cout << atp.url << " :" ;
4545 for (;;) {
4646 std::deque<lt::alert*> alerts;
47- ses .pop_alerts (&alerts);
47+ sess .pop_alerts (&alerts);
4848 for (lt::alert const * a : alerts) {
4949 std::cout << std::endl << a->message () << std::endl;
5050 // quit on error/finish:
@@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
5454 };
5555 }
5656 if (torh.status ().has_metadata ) {
57- ses .pause ();
57+ sess .pause ();
5858 lt::torrent_info tinf =
5959 torh.get_torrent_info ();
6060 std::cout << tinf.name () << std::endl;
@@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
6868 lt::bencode (ofsi, lt::create_torrent (tinf)
6969 .generate ());
7070 ofs.close ();
71- ses .remove_torrent (torh);
71+ sess .remove_torrent (torh);
7272 goto done0;
7373 };
7474 std::cout << " ." ;
You can’t perform that action at this time.
0 commit comments