Browse Source

added slide

master
nkls 3 weeks ago
parent
commit
b97ea28897
6 changed files with 7 additions and 1 deletions
  1. BIN
      logs/1*NcicKEqwUaI8VEc-Ejk6Dg.jpeg
  2. BIN
      logs/Psp.jpeg
  3. BIN
      slides.odp
  4. BIN
      src/.mix.cpp.swp
  5. BIN
      src/mix
  6. +7
    -1
      src/mix.cpp

BIN
logs/1*NcicKEqwUaI8VEc-Ejk6Dg.jpeg View File

Before After
Width: 512  |  Height: 406  |  Size: 34 KiB

BIN
logs/Psp.jpeg View File

Before After
Width: 512  |  Height: 406  |  Size: 34 KiB

BIN
slides.odp View File


BIN
src/.mix.cpp.swp View File


BIN
src/mix View File


+ 7
- 1
src/mix.cpp 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=".";


Loading…
Cancel
Save