support web seeds in create_torrent and fix issue when building without deprecated functions
This commit is contained in:
@@ -244,6 +244,7 @@ The ``create_torrent`` class has the following synopsis::
|
||||
void set_hash(int index, sha1_hash const& h);
|
||||
void set_file_hash(int index, sha1_hash const& h);
|
||||
void add_url_seed(std::string const& url);
|
||||
void add_http_seed(std::string const& url);
|
||||
void add_node(std::pair<std::string, int> const& node);
|
||||
void add_tracker(std::string const& url, int tier = 0);
|
||||
void set_priv(bool p);
|
||||
@@ -394,12 +395,13 @@ This sets the sha1 hash for this file. This hash will end up under the key ``sha
|
||||
associated with this file (for multi-file torrents) or in the root info dictionary
|
||||
for single-file torrents.
|
||||
|
||||
add_url_seed()
|
||||
--------------
|
||||
add_url_seed() add_http_seed()
|
||||
------------------------------
|
||||
|
||||
::
|
||||
|
||||
void add_url_seed(std::string const& url);
|
||||
void add_http_seed(std::string const& url);
|
||||
|
||||
This adds a url seed to the torrent. You can have any number of url seeds. For a
|
||||
single file torrent, this should be an HTTP url, pointing to a file with identical
|
||||
@@ -407,6 +409,8 @@ content as the file of the torrent. For a multi-file torrent, it should point to
|
||||
a directory containing a directory with the same name as this torrent, and all the
|
||||
files of the torrent in it.
|
||||
|
||||
The second function, ``add_http_seed()`` adds an HTTP seed instead.
|
||||
|
||||
add_node()
|
||||
----------
|
||||
|
||||
|
Reference in New Issue
Block a user