initial super seeding support

This commit is contained in:
Arvid Norberg
2008-12-08 06:36:22 +00:00
parent 14c142d997
commit b41cdd6469
12 changed files with 267 additions and 24 deletions

View File

@@ -1717,6 +1717,9 @@ Its declaration looks like this::
void rename_file(int index, boost::filesystem::wpath) const;
storage_interface* get_storage_impl() const;
bool super_seeding() const;
void super_seeding(bool on) const;
enum flags_t { overwrite_existing = 1 };
void add_piece(int piece, char const* data, int flags = 0) const;
@@ -1871,6 +1874,18 @@ get_storage_impl()
Returns the storage implementation for this torrent. This depends on the
storage contructor function that was passed to ``session::add_torrent``.
super_seeding()
---------------
::
bool super_seeding() const;
void super_seeding(bool on) const;
Enables or disabled super seeding/initial seeding for this torrent. The torrent
needs to be a seed for this to take effect. The overload that returns a bool
tells you of super seeding is enabled or not.
add_piece()
-----------