From 8cf0510144bfb155148eace69b0a6dace7c9056d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 8 Feb 2008 10:22:05 +0000 Subject: [PATCH] added disk cache for write operations --- ChangeLog | 1 + docs/manual.html | 324 ++++++++++++++--------- docs/manual.rst | 64 +++++ examples/client_test.cpp | 24 +- include/libtorrent/aux_/session_impl.hpp | 14 +- include/libtorrent/disk_io_thread.hpp | 62 ++++- include/libtorrent/session.hpp | 5 + include/libtorrent/session_settings.hpp | 5 + include/libtorrent/storage.hpp | 2 + src/disk_io_thread.cpp | 269 +++++++++++++++++-- src/peer_connection.cpp | 4 + src/piece_picker.cpp | 4 +- src/policy.cpp | 5 +- src/session.cpp | 11 + src/session_impl.cpp | 4 + src/torrent.cpp | 4 + src/torrent_handle.cpp | 4 +- test/test_storage.cpp | 5 +- 18 files changed, 645 insertions(+), 166 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9a477e6ba..f2de0238e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + * Disk cache support. * New, more memory efficient, piece picker with sequential download support (instead of the more complicated sequential download threshold). * Auto Upload slots. Automtically opens up more slots if diff --git a/docs/manual.html b/docs/manual.html index 3f0248417..9fb1fd80a 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -39,162 +39,164 @@
  • set_max_half_open_connections() max_half_open_connections()
  • set_ip_filter()
  • status()
  • -
  • is_listening() listen_port() listen_on()
  • -
  • pop_alert() set_severity_level()
  • -
  • add_extension()
  • -
  • set_settings() set_pe_settings()
  • -
  • set_peer_proxy() set_web_seed_proxy() set_tracker_proxy() set_dht_proxy()
  • -
  • peer_proxy() web_seed_proxy() tracker_proxy() dht_proxy()
  • -
  • start_dht() stop_dht() set_dht_settings() dht_state()
  • -
  • add_dht_node() add_dht_router()
  • +
  • get_cache_status()
  • +
  • get_cache_info()
  • +
  • is_listening() listen_port() listen_on()
  • +
  • pop_alert() set_severity_level()
  • +
  • add_extension()
  • +
  • set_settings() set_pe_settings()
  • +
  • set_peer_proxy() set_web_seed_proxy() set_tracker_proxy() set_dht_proxy()
  • +
  • peer_proxy() web_seed_proxy() tracker_proxy() dht_proxy()
  • +
  • start_dht() stop_dht() set_dht_settings() dht_state()
  • +
  • add_dht_node() add_dht_router()
  • -
  • entry