From f0519e86e8c6c24107eff2afe2466c5049714107 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 11 Oct 2006 14:02:21 +0000 Subject: [PATCH] separated session from session_impl and made a real pimpl-class of it. Introduced the possibility to destruct the sessions async. --- docs/manual.html | 236 +++--- docs/manual.rst | 17 + examples/client_test.cpp | 1 + include/Makefile.am | 1 + include/libtorrent/aux_/session_impl.hpp | 382 +++++++++ include/libtorrent/bt_peer_connection.hpp | 4 +- include/libtorrent/peer_connection.hpp | 6 +- include/libtorrent/session.hpp | 269 +----- include/libtorrent/storage.hpp | 4 +- include/libtorrent/torrent.hpp | 16 +- include/libtorrent/torrent_handle.hpp | 12 +- include/libtorrent/web_peer_connection.hpp | 2 +- src/bt_peer_connection.cpp | 19 +- src/peer_connection.cpp | 26 +- src/piece_picker.cpp | 1 + src/policy.cpp | 1 + src/session.cpp | 940 ++++++++++++--------- src/storage.cpp | 7 +- src/torrent.cpp | 37 +- src/torrent_handle.cpp | 17 +- src/web_peer_connection.cpp | 27 +- test/setup_transfer.cpp | 6 + test/test_metadata_extension.cpp | 3 + test/test_storage.cpp | 3 +- 24 files changed, 1215 insertions(+), 822 deletions(-) create mode 100644 include/libtorrent/aux_/session_impl.hpp diff --git a/docs/manual.html b/docs/manual.html index 46180610b..ed5d1ebdc 100755 --- a/docs/manual.html +++ b/docs/manual.html @@ -29,137 +29,138 @@
  • session
  • -
  • entry