added slide
parent
0098d240c1
commit
b97ea28897
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
slides.odp
BIN
slides.odp
Binary file not shown.
BIN
src/.mix.cpp.swp
BIN
src/.mix.cpp.swp
Binary file not shown.
|
@ -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=".";
|
||||
|
|
Loading…
Reference in New Issue