FEATURE: Added option to download first and last piece of a torrent first (for preview)

This commit is contained in:
Christophe Dumez 2009-11-21 10:17:57 +00:00
commit 62604e32c0
5 changed files with 69 additions and 13 deletions

View file

@ -122,6 +122,7 @@ class QTorrentHandle {
void get_peer_info(std::vector<peer_info>&) const;
bool resolve_countries() const;
bool priv() const;
bool first_last_piece_first() const;
//
// Setters
@ -155,6 +156,7 @@ class QTorrentHandle {
void set_peer_upload_limit(asio::ip::tcp::endpoint ip, int limit) const;
void set_peer_download_limit(asio::ip::tcp::endpoint ip, int limit) const;
void add_tracker(announce_entry const& url);
void prioritize_first_last_piece(bool b);
//
// Operators