added slide

master
nkls 2021-08-30 07:28:59 +02:00
parent 0098d240c1
commit b97ea28897
6 changed files with 7 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
logs/Psp.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Binary file not shown.

BIN
src/mix

Binary file not shown.

View File

@ -12,6 +12,8 @@
#include <libtorrent/session.hpp>
#include <libtorrent/session_params.hpp>
#include <libtorrent/kademlia/dht_state.hpp>
#include <libtorrent/kademlia/dht_storage.hpp>
//#include <libtorrent/add_torrent_params.hpp>
//#include <libtorrent/torrent_handle.hpp>
//#include <libtorrent/alert_types.hpp>
@ -113,8 +115,12 @@ class mix
std::cout << "listen interfaces: " << p.listen_interfaces << std::endl;
std::cout << "peer fingerprint: " << p.peer_fingerprint << std::endl;
p.set_str(lt::settings_pack::dht_bootstrap_nodes, "dht.bootstrap.de:12345");
std::cout << "dht bootstrap nodes: " << p.get_str(11) << std::endl;
std::cout << "dht bootstrap nodes: " << p.get_str(lt::settings_pack::dht_bootstrap_nodes) << std::endl;
// lt::dht_default_storage stor;
lt::dht mydht;
lt::entry e;
std::cout << e << std::endl;
// lt::add_torrent_params atp = lt::parse_magnet_uri("magnet:?xt=urn:btih:D540FC48EB12F2833163EED6421D449DD8F1CE1F&dn=Ubuntu%20desktop%2019.04%20(64bit)");
// atp.save_path=".";