From 9d1e77dc88d1faedba254498935549f5d0cc31d2 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 7 Jun 2008 02:58:28 +0000 Subject: [PATCH] optimized away torrent::m_have_pieces (#62) and added some documentation on bitfield. The piece picker is now constructed with the torrent, but still freed when turned into a seed --- docs/manual.html | 197 +++++++++++++--------- docs/manual.rst | 57 ++++++- examples/client_test.cpp | 4 +- include/libtorrent/bt_peer_connection.hpp | 2 +- include/libtorrent/piece_picker.hpp | 25 +-- include/libtorrent/torrent.hpp | 29 ++-- include/libtorrent/torrent_handle.hpp | 3 +- src/bt_peer_connection.cpp | 69 ++++---- src/peer_connection.cpp | 18 +- src/piece_picker.cpp | 97 +++++------ src/torrent.cpp | 130 ++++++-------- test/test_piece_picker.cpp | 39 ++++- 12 files changed, 394 insertions(+), 276 deletions(-) diff --git a/docs/manual.html b/docs/manual.html index b55ba0ccc..649a429a7 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -127,95 +127,96 @@
  • big_number
  • -
  • hasher
  • -
  • fingerprint
  • -
  • UPnP and NAT-PMP