void setIsPrivate(
bool
$bool)
|
|
Sets whether the torrent is marked as 'private'
Taken from http://www.azureuswiki.com/index.php/Secure_Torrents
Tracker sites wanting to ensure that [clients] only obtains peers directly from the tracker itself (besides incoming connections) should embed the key "private" with the value "1" inside the "info" dict of the .torrent file: infod6:lengthi136547e4:name6:a............7:privatei1ee
This new field will be ignored by [older] clients, so it does not break compatibility as long as they've properly implemented the BT spec. Also, this new field WILL change the torrent's infohash, which means that torrents made without the secure flag aren't compatible with torrents made with it. If you update all the torrents on your web site, you will have to ask users to re-download the torrent files in order to let them connect to your tracker.
Parameters:
bool setPieceLength(
int
$piece_length)
|
|
Function to set the piece length for the .torrent file.
min: 32 (32KB), max: 4096 (4MB)
Parameters: