From c9bfb8aa36fb2f1de61a5aed3e58ebda38d64cad Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 31 Oct 2003 15:06:32 +0000 Subject: [PATCH] *** empty log message *** --- docs/index.html | 9 ++++----- include/libtorrent/session.hpp | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/index.html b/docs/index.html index 14010a1e1..31bfbeac9 100755 --- a/docs/index.html +++ b/docs/index.html @@ -155,9 +155,8 @@ structure in the torrent-file.

fingerprint is a short string that will be used in the peer_id to -identify the client. If you want your fingerprint to be shorter than 4 -characters, you can terminate the string with a null. The default is an -empty string. +identify the client. If the string is longer than 7 characters it will +be trimmed down to 7 characters. The default is an empty string.

@@ -442,11 +441,11 @@ piece and info_hash() returns the 20-bytes sha1-hash for the info-secti torrent file. For more information on the sha1_hash, see the big_number class.

-

torrent_hande

+

torrent_handle

You will usually have to store your torrent_handles somewhere, since it's the -object thought which you retrieve infromation about the torrent and aborts the torrent. +object through which you retrieve infromation about the torrent and aborts the torrent. Its declaration looks like this:

diff --git a/include/libtorrent/session.hpp b/include/libtorrent/session.hpp index 996366a9f..5070ef3f8 100755 --- a/include/libtorrent/session.hpp +++ b/include/libtorrent/session.hpp @@ -97,12 +97,12 @@ namespace libtorrent // is filled in by storage::initialize_pieces() // and represents the progress. It should be a // value in the range [0, 1] - float progress; + volatile float progress; // abort defaults to false and is typically // filled in by torrent_handle when the user // aborts the torrent - bool abort; + volatile bool abort; }; struct checker_impl: boost::noncopyable @@ -158,7 +158,7 @@ namespace libtorrent // the settings for the client http_settings m_settings; - bool m_abort; + volatile bool m_abort; #if defined(TORRENT_VERBOSE_LOGGING) boost::shared_ptr create_log(std::string name)