forked from premiere/premiere-libtorrent
*** empty log message ***
This commit is contained in:
parent
ead9297a7e
commit
35b6903c6d
|
@ -131,16 +131,16 @@ boost.filesystem, boost.date_time and various other boost libraries as well as z
|
|||
<p>libtorrent has been successfully compiled and tested on:</p>
|
||||
<blockquote>
|
||||
<ul class="simple">
|
||||
<li>Cygwin GCC 3.3.1</li>
|
||||
<li>Windows 2000 vc7.1</li>
|
||||
<li>Linux x86 (debian) GCC 3.0</li>
|
||||
<li>Linux x86 (debian) GCC 3.0.4, GCC 3.2.3</li>
|
||||
<li>Windows 2000, msvc6 sp5 (does not support 64-bit values due to problems with operator<<(ostream&, __int64))</li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
<p>It does not compile on</p>
|
||||
<p>Fails on:</p>
|
||||
<blockquote>
|
||||
<ul class="simple">
|
||||
<li>GCC 2.95</li>
|
||||
<li>Linux x86 (Debian) GCC 2.95.4 (<tt class="literal"><span class="pre">std::ios_base</span></tt> is missing)</li>
|
||||
<li>Cygwin GCC 3.3.1 (compiles but crashes)</li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
<p>libtorrent is released under the <a class="reference" href="http://www.opensource.org/licenses/bsd-license.php">BSD-license</a>.</p>
|
||||
|
@ -444,7 +444,7 @@ public:
|
|||
reverse_file_iterator rbegin_files() const;
|
||||
reverse_file_iterator rend_files() const;
|
||||
|
||||
std::size_t num_files() const;
|
||||
int num_files() const;
|
||||
const file& file_at(int index) const;
|
||||
|
||||
const std::vector<announce_entry>& trackers() const;
|
||||
|
@ -453,7 +453,7 @@ public:
|
|||
|
||||
entry::integer_type total_size() const;
|
||||
entry::integer_type piece_length() const;
|
||||
std::size_t num_pieces() const;
|
||||
int num_pieces() const;
|
||||
const sha1_hash& info_hash() const;
|
||||
const std::stirng& name() const;
|
||||
const std::string& comment() const;
|
||||
|
|
|
@ -66,14 +66,14 @@ boost.filesystem, boost.date_time and various other boost libraries as well as z
|
|||
|
||||
libtorrent has been successfully compiled and tested on:
|
||||
|
||||
* Cygwin GCC 3.3.1
|
||||
* Windows 2000 vc7.1
|
||||
* Linux x86 (debian) GCC 3.0
|
||||
* Linux x86 (debian) GCC 3.0.4, GCC 3.2.3
|
||||
* Windows 2000, msvc6 sp5 (does not support 64-bit values due to problems with operator<<(ostream&, __int64))
|
||||
|
||||
It does not compile on
|
||||
Fails on:
|
||||
|
||||
* GCC 2.95
|
||||
* Linux x86 (Debian) GCC 2.95.4 (``std::ios_base`` is missing)
|
||||
* Cygwin GCC 3.3.1 (compiles but crashes)
|
||||
|
||||
libtorrent is released under the BSD-license_.
|
||||
|
||||
|
@ -412,7 +412,7 @@ The ``torrent_info`` has the following synopsis::
|
|||
reverse_file_iterator rbegin_files() const;
|
||||
reverse_file_iterator rend_files() const;
|
||||
|
||||
std::size_t num_files() const;
|
||||
int num_files() const;
|
||||
const file& file_at(int index) const;
|
||||
|
||||
const std::vector<announce_entry>& trackers() const;
|
||||
|
@ -421,7 +421,7 @@ The ``torrent_info`` has the following synopsis::
|
|||
|
||||
entry::integer_type total_size() const;
|
||||
entry::integer_type piece_length() const;
|
||||
std::size_t num_pieces() const;
|
||||
int num_pieces() const;
|
||||
const sha1_hash& info_hash() const;
|
||||
const std::stirng& name() const;
|
||||
const std::string& comment() const;
|
||||
|
@ -672,7 +672,7 @@ all peers. The rates are given as the number of bytes per second.
|
|||
get_download_queue()
|
||||
--------------------
|
||||
|
||||
``get_download_queue()`` takes a non-const reference to a vector which it will fill
|
||||
``get_download_queue()`` takes a non-const reference to a vector which it will fill with
|
||||
information about pieces that are partially downloaded or not downloaded at all but partially
|
||||
requested. The entry in the vector (``partial_piece_info``) looks like this::
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace
|
|||
{
|
||||
// the limits of the download queue size
|
||||
max_request_queue = 16,
|
||||
min_request_queue = 2,
|
||||
min_request_queue = 4,
|
||||
|
||||
// the amount of free upload allowed before
|
||||
// the peer is choked
|
||||
|
@ -113,7 +113,7 @@ namespace
|
|||
// less will make the desired queue size 2 and at about 70 kB/s
|
||||
// it will reach the maximum of 16 requests.
|
||||
// matlab expression to plot:
|
||||
// x = 1:100:100000; plot(x, round(min(max(x ./ 5000 + 1.5, 2), 16)));
|
||||
// x = 1:100:100000; plot(x, round(min(max(x ./ 5000 + 1.5, 4), 16)));
|
||||
|
||||
int desired_queue_size = static_cast<int>(rate / 5000.f + 1.5f);
|
||||
if (desired_queue_size > max_request_queue) desired_queue_size = max_request_queue;
|
||||
|
|
Loading…
Reference in New Issue