Clarify documentation (#1368)

clarify documentation of private torrents
This commit is contained in:
Markus 2016-11-30 15:11:16 +01:00 committed by Arvid Norberg
parent 6267984e5e
commit c0f00499b1
2 changed files with 7 additions and 7 deletions

View File

@ -256,9 +256,9 @@ namespace libtorrent
void set_root_cert(string_view pem);
// Sets and queries the private flag of the torrent.
// Torrents with the private flag set ask clients to not use any other
// sources than the tracker for peers, and to not advertise itself publicly,
// apart from the tracker.
// Torrents with the private flag set ask the client to not use any other
// sources than the tracker for peers, and to not use DHT to advertise itself publicly,
// only the tracker.
void set_priv(bool p) { m_private = p; }
bool priv() const { return m_private; }
@ -347,8 +347,8 @@ namespace libtorrent
// and they have the same name.
bool m_multifile:1;
// this is true if the torrent is private. i.e., is should not
// be announced on the dht
// this is true if the torrent is private. i.e., the client should not
// advertise itself on the DHT for this torrent
bool m_private:1;
// if set to one, a merkle torrent will be generated

View File

@ -397,8 +397,8 @@ namespace libtorrent
// metadata resolved yet or not.
bool is_valid() const { return m_files.is_valid(); }
// returns true if this torrent is private. i.e., it should not be
// distributed on the trackerless network (the kademlia DHT).
// returns true if this torrent is private. i.e., the client should not
// advertise itself on the trackerless network (the Kademlia DHT) for this torrent.
bool priv() const { return (m_flags & private_torrent) != 0; }
// returns true if this is an i2p torrent. This is determined by whether