7.8 MB
/srv/reproducible-results/rbuild-debian/r-b-build.7HTBXQ5g/b1/libtorrent-rasterbar_2.0.11-1_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.7HTBXQ5g/b2/libtorrent-rasterbar_2.0.11-1_amd64.changes
743 B
Files
    
Offset 1, 7 lines modifiedOffset 1, 7 lines modified
  
1 ·1e537d9298a8b265e97c6e12e4bbe431·366364·libdevel·optional·libtorrent-rasterbar-dev_2.0.11-1_amd64.deb1 ·1e537d9298a8b265e97c6e12e4bbe431·366364·libdevel·optional·libtorrent-rasterbar-dev_2.0.11-1_amd64.deb
2 ·e0137cebc38c87a2a84b3ac9f7b1f87c·1672696·doc·optional·libtorrent-rasterbar-doc_2.0.11-1_all.deb2 ·df963356af6b7cffecf7bdd5976111d4·1669776·doc·optional·libtorrent-rasterbar-doc_2.0.11-1_all.deb
3 ·32627de7b9999555711087c1bf445dd7·50797972·debug·optional·libtorrent-rasterbar2.0t64-dbgsym_2.0.11-1_amd64.deb3 ·32627de7b9999555711087c1bf445dd7·50797972·debug·optional·libtorrent-rasterbar2.0t64-dbgsym_2.0.11-1_amd64.deb
4 ·5b87c858d9e8f6cc3f8d3f750871ece5·1675092·libs·optional·libtorrent-rasterbar2.0t64_2.0.11-1_amd64.deb4 ·5b87c858d9e8f6cc3f8d3f750871ece5·1675092·libs·optional·libtorrent-rasterbar2.0t64_2.0.11-1_amd64.deb
5 ·6a3a80162313475894a26ff9b19daa06·13270728·debug·optional·python3-libtorrent-dbgsym_2.0.11-1_amd64.deb5 ·6a3a80162313475894a26ff9b19daa06·13270728·debug·optional·python3-libtorrent-dbgsym_2.0.11-1_amd64.deb
6 ·9e235b1d052dbac42cc41830be15d111·720076·python·optional·python3-libtorrent_2.0.11-1_amd64.deb6 ·9e235b1d052dbac42cc41830be15d111·720076·python·optional·python3-libtorrent_2.0.11-1_amd64.deb
7.8 MB
libtorrent-rasterbar-doc_2.0.11-1_all.deb
367 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2025-01-28·14:33:12.000000·debian-binary1 -rw-r--r--···0········0········0········4·2025-01-28·14:33:12.000000·debian-binary
2 -rw-r--r--···0········0········0·····3632·2025-01-28·14:33:12.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3632·2025-01-28·14:33:12.000000·control.tar.xz
3 -rw-r--r--···0········0········0··1668872·2025-01-28·14:33:12.000000·data.tar.xz3 -rw-r--r--···0········0········0··1665952·2025-01-28·14:33:12.000000·data.tar.xz
616 B
control.tar.xz
588 B
control.tar
518 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·libtorrent-rasterbar-doc1 Package:·libtorrent-rasterbar-doc
2 Source:·libtorrent-rasterbar2 Source:·libtorrent-rasterbar
3 Version:·2.0.11-13 Version:·2.0.11-1
4 Architecture:·all4 Architecture:·all
5 Maintainer:·Christian·Marillat·<marillat@debian.org>5 Maintainer:·Christian·Marillat·<marillat@debian.org>
6 Installed-Size:·59416 Installed-Size:·5773
7 Section:·doc7 Section:·doc
8 Priority:·optional8 Priority:·optional
9 Multi-Arch:·foreign9 Multi-Arch:·foreign
10 Homepage:·https://libtorrent.org/10 Homepage:·https://libtorrent.org/
11 Description:·Documentation·for·libtorrent-rasterbar11 Description:·Documentation·for·libtorrent-rasterbar
12 ·Bittorrent·library·by·Rasterbar·Software·(Arvid·Norberg).12 ·Bittorrent·library·by·Rasterbar·Software·(Arvid·Norberg).
13 ·libtorrent-rasterbar·is·a·C++·library·that·aims·to·be·a·good·alternative·to13 ·libtorrent-rasterbar·is·a·C++·library·that·aims·to·be·a·good·alternative·to
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
7.8 MB
data.tar.xz
7.8 MB
data.tar
7.89 KB
file list
    
Offset 73, 43 lines modifiedOffset 73, 43 lines modified
73 -rw-r--r--···0·root·········(0)·root·········(0)···428298·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/troubleshooting.png73 -rw-r--r--···0·root·········(0)·root·········(0)···428298·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/troubleshooting.png
74 -rw-r--r--···0·root·········(0)·root·········(0)····46281·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/troubleshooting_thumb.png74 -rw-r--r--···0·root·········(0)·root·········(0)····46281·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/troubleshooting_thumb.png
75 -rw-r--r--···0·root·········(0)·root·········(0)······243·2025-01-28·10:57:42.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/utp_stack.diagram75 -rw-r--r--···0·root·········(0)·root·········(0)······243·2025-01-28·10:57:42.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/utp_stack.diagram
76 -rw-r--r--···0·root·········(0)·root·········(0)·····2007·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/utp_stack.png76 -rw-r--r--···0·root·········(0)·root·········(0)·····2007·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/utp_stack.png
77 -rw-r--r--···0·root·········(0)·root·········(0)·····1156·2025-01-28·10:57:42.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/write_disk_buffers.diagram77 -rw-r--r--···0·root·········(0)·root·········(0)·····1156·2025-01-28·10:57:42.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/write_disk_buffers.diagram
78 -rw-r--r--···0·root·········(0)·root·········(0)·····9631·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/write_disk_buffers.png78 -rw-r--r--···0·root·········(0)·root·········(0)·····9631·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/write_disk_buffers.png
79 -rw-r--r--···0·root·········(0)·root·········(0)·····9768·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/index.html79 -rw-r--r--···0·root·········(0)·root·········(0)·····9768·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/index.html
80 -rw-r--r--···0·root·········(0)·root·········(0)···144603·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/manual-ref.html80 -rw-r--r--···0·root·········(0)·root·········(0)···144610·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/manual-ref.html
81 -rw-r--r--···0·root·········(0)·root·········(0)·····9650·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/projects.html81 -rw-r--r--···0·root·········(0)·root·········(0)·····9650·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/projects.html
82 -rw-r--r--···0·root·········(0)·root·········(0)····22814·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/python_binding.html82 -rw-r--r--···0·root·········(0)·root·········(0)····22814·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/python_binding.html
83 -rw-r--r--···0·root·········(0)·root·········(0)····33687·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Add_Torrent.html83 -rw-r--r--···0·root·········(0)·root·········(0)····33687·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Add_Torrent.html
84 -rw-r--r--···0·root·········(0)·root·········(0)···256772·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Alerts.html84 -rw-r--r--···0·root·········(0)·root·········(0)···256772·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Alerts.html
85 -rw-r--r--···0·root·········(0)·root·········(0)····27437·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Bdecoding.html85 -rw-r--r--···0·root·········(0)·root·········(0)····27437·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Bdecoding.html
86 -rw-r--r--···0·root·········(0)·root·········(0)····25856·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Bencoding.html86 -rw-r--r--···0·root·········(0)·root·········(0)····25856·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Bencoding.html
87 -rw-r--r--···0·root·········(0)·root·········(0)····88949·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Core.html87 -rw-r--r--···0·root·········(0)·root·········(0)····88949·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Core.html
88 -rw-r--r--···0·root·········(0)·root·········(0)····43859·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Create_Torrents.html88 -rw-r--r--···0·root·········(0)·root·········(0)····43859·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Create_Torrents.html
89 -rw-r--r--···0·root·········(0)·root·········(0)···137008·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Custom_Storage.html89 -rw-r--r--···0·root·········(0)·root·········(0)····50915·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Custom_Storage.html
90 -rw-r--r--···0·root·········(0)·root·········(0)····24960·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-DHT.html90 -rw-r--r--···0·root·········(0)·root·········(0)····24960·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-DHT.html
91 -rw-r--r--···0·root·········(0)·root·········(0)····48763·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Error_Codes.html91 -rw-r--r--···0·root·········(0)·root·········(0)····48763·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Error_Codes.html
92 -rw-r--r--···0·root·········(0)·root·········(0)····13261·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Filter.html92 -rw-r--r--···0·root·········(0)·root·········(0)····13261·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Filter.html
93 -rw-r--r--···0·root·········(0)·root·········(0)····12804·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-PeerClass.html93 -rw-r--r--···0·root·········(0)·root·········(0)····12804·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-PeerClass.html
94 -rw-r--r--···0·root·········(0)·root·········(0)····68487·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Plugins.html94 -rw-r--r--···0·root·········(0)·root·········(0)····68487·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Plugins.html
95 -rw-r--r--···0·root·········(0)·root·········(0)·····9618·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Resume_Data.html95 -rw-r--r--···0·root·········(0)·root·········(0)·····9618·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Resume_Data.html
96 -rw-r--r--···0·root·········(0)·root·········(0)···102455·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Session.html96 -rw-r--r--···0·root·········(0)·root·········(0)···102476·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Session.html
97 -rw-r--r--···0·root·········(0)·root·········(0)···169276·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Settings.html97 -rw-r--r--···0·root·········(0)·root·········(0)···169276·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Settings.html
98 -rw-r--r--···0·root·········(0)·root·········(0)·····9742·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Stats.html98 -rw-r--r--···0·root·········(0)·root·········(0)·····9742·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Stats.html
99 -rw-r--r--···0·root·········(0)·root·········(0)····56848·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Storage.html99 -rw-r--r--···0·root·········(0)·root·········(0)····56856·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Storage.html
100 -rw-r--r--···0·root·········(0)·root·········(0)···129801·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Handle.html100 -rw-r--r--···0·root·········(0)·root·········(0)···129808·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Handle.html
101 -rw-r--r--···0·root·········(0)·root·········(0)····55629·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Info.html101 -rw-r--r--···0·root·········(0)·root·········(0)····55640·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Info.html
102 -rw-r--r--···0·root·········(0)·root·········(0)····48392·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Status.html102 -rw-r--r--···0·root·········(0)·root·········(0)····48385·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Status.html
103 -rw-r--r--···0·root·········(0)·root·········(0)····16461·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Trackers.html103 -rw-r--r--···0·root·········(0)·root·········(0)····16462·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Trackers.html
104 -rw-r--r--···0·root·········(0)·root·········(0)····25530·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Utility.html104 -rw-r--r--···0·root·········(0)·root·········(0)····25530·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Utility.html
105 -rw-r--r--···0·root·········(0)·root·········(0)·····9129·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-ed25519.html105 -rw-r--r--···0·root·········(0)·root·········(0)·····9129·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-ed25519.html
106 -rw-r--r--···0·root·········(0)·root·········(0)····34353·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference.html106 -rw-r--r--···0·root·········(0)·root·········(0)····34353·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference.html
107 -rw-r--r--···0·root·········(0)·root·········(0)····29242·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/security-audit.html107 -rw-r--r--···0·root·········(0)·root·········(0)····29242·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/security-audit.html
108 -rw-r--r--···0·root·········(0)·root·········(0)··1360844·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/single-page-ref.html108 -rw-r--r--···0·root·········(0)·root·········(0)··1274792·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/single-page-ref.html
109 -rw-r--r--···0·root·········(0)·root·········(0)····10121·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/streaming.html109 -rw-r--r--···0·root·········(0)·root·········(0)····10121·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/streaming.html
110 -rw-r--r--···0·root·········(0)·root·········(0)·····8807·2025-01-28·10:57:42.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/style.css110 -rw-r--r--···0·root·········(0)·root·········(0)·····8807·2025-01-28·10:57:42.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/style.css
111 -rw-r--r--···0·root·········(0)·root·········(0)···522888·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/todo.html111 -rw-r--r--···0·root·········(0)·root·········(0)···522888·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/todo.html
112 -rw-r--r--···0·root·········(0)·root·········(0)·····3023·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/troubleshooting.html112 -rw-r--r--···0·root·········(0)·root·········(0)·····3023·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/troubleshooting.html
113 -rw-r--r--···0·root·········(0)·root·········(0)····25162·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/tuning-ref.html113 -rw-r--r--···0·root·········(0)·root·········(0)····25162·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/tuning-ref.html
114 -rw-r--r--···0·root·········(0)·root·········(0)···132630·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/tutorial-ref.html114 -rw-r--r--···0·root·········(0)·root·········(0)···132630·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/tutorial-ref.html
115 -rw-r--r--···0·root·········(0)·root·········(0)····16383·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/udp_tracker_protocol.html115 -rw-r--r--···0·root·········(0)·root·········(0)····16383·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/udp_tracker_protocol.html
1.89 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/manual-ref.html
    
Offset 115, 15 lines modifiedOffset 115, 15 lines modified
115 <li><p·class="first">main·loop·(see·<a·class="reference·external"·href="reference-Session.html#session">session</a>)</p>115 <li><p·class="first">main·loop·(see·<a·class="reference·external"·href="reference-Session.html#session">session</a>)</p>
116 <blockquote>116 <blockquote>
117 <ul·class="simple">117 <ul·class="simple">
118 <li>poll·for·alerts·(see·<a·class="reference·external"·href="reference-Session.html#wait_for_alert()">wait_for_alert()</a>,·<a·class="reference·external"·href="reference-Session.html#pop_alerts()">pop_alerts()</a>)</li>118 <li>poll·for·alerts·(see·<a·class="reference·external"·href="reference-Session.html#wait_for_alert()">wait_for_alert()</a>,·<a·class="reference·external"·href="reference-Session.html#pop_alerts()">pop_alerts()</a>)</li>
119 <li>handle·updates·to·torrents,·(see·<a·class="reference·external"·href="reference-Alerts.html#state_update_alert">state_update_alert</a>).</li>119 <li>handle·updates·to·torrents,·(see·<a·class="reference·external"·href="reference-Alerts.html#state_update_alert">state_update_alert</a>).</li>
120 <li>handle·other·alerts,·(see·<a·class="reference·external"·href="reference-Alerts.html#alert">alert</a>).</li>120 <li>handle·other·alerts,·(see·<a·class="reference·external"·href="reference-Alerts.html#alert">alert</a>).</li>
121 <li>query·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·for·information·(see·session::status()).</li>121 <li>query·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·for·information·(see·session::status()).</li>
122 <li>add·and·remove·torrents·from·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·(<a·class="reference·external"·href="reference-Session.html#remove_torrent()">remove_torrent()</a>)</li>122 <li>add·and·remove·torrents·from·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·(<a·class="reference·external"·href="reference-Custom_Storage.html#remove_torrent()">remove_torrent()</a>)</li>
123 </ul>123 </ul>
124 </blockquote>124 </blockquote>
125 </li>125 </li>
126 <li><p·class="first">save·resume·data·for·all·torrent_handles·(optional,·see126 <li><p·class="first">save·resume·data·for·all·torrent_handles·(optional,·see
127 <a·class="reference·external"·href="reference-Torrent_Handle.html#save_resume_data()">save_resume_data()</a>)</p>127 <a·class="reference·external"·href="reference-Torrent_Handle.html#save_resume_data()">save_resume_data()</a>)</p>
128 </li>128 </li>
129 <li><p·class="first">save·<a·class="reference·external"·href="reference-Session.html#session">session</a>·state·(see·<a·class="reference·external"·href="reference-Session.html#session_state()">session_state()</a>·and·<a·class="reference·external"·href="reference-Session.html#write_session_params()">write_session_params()</a>)</p>129 <li><p·class="first">save·<a·class="reference·external"·href="reference-Session.html#session">session</a>·state·(see·<a·class="reference·external"·href="reference-Session.html#session_state()">session_state()</a>·and·<a·class="reference·external"·href="reference-Session.html#write_session_params()">write_session_params()</a>)</p>
12.0 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Add_Torrent.html
    
Offset 28, 23 lines modifiedOffset 28, 65 lines modified
28 <td>2.0.11</td></tr>28 <td>2.0.11</td></tr>
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#add-torrent-params"·id="toc-entry-1">add_torrent_params</a></li> 
36 <li><a·class="reference·internal"·href="#client-data-t"·id="toc-entry-2">client_data_t</a><ul>35 <li><a·class="reference·internal"·href="#client-data-t"·id="toc-entry-1">client_data_t</a><ul>
37 <li><a·class="reference·internal"·href="#client-data-t-1"·id="toc-entry-3">client_data_t()</a></li>36 <li><a·class="reference·internal"·href="#client-data-t-1"·id="toc-entry-2">client_data_t()</a></li>
38 <li><a·class="reference·internal"·href="#void-operator-const"·id="toc-entry-4">void*()·operator=()·const*()</a></li>37 <li><a·class="reference·internal"·href="#const-operator-void"·id="toc-entry-3">const*()·operator=()·void*()</a></li>
39 </ul>38 </ul>
40 </li>39 </li>
 40 <li><a·class="reference·internal"·href="#add-torrent-params"·id="toc-entry-4">add_torrent_params</a></li>
41 </ul>41 </ul>
42 </div>42 </div>
 43 <a·name="client_data_t"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+client_data_t&labels=documentation&body=Documentation+under+heading+%22class+client_data_t%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="client-data-t">
 44 <h1>client_data_t</h1>
 45 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/client_data.hpp">libtorrent/client_data.hpp</a>&quot;</p>
 46 <p>A·thin·wrapper·around·a·void·pointer·used·as·&quot;user·data&quot;.·i.e.·an·opaque
 47 cookie·passed·in·to·libtorrent·and·returned·on·demand.·It·adds·type-safety·by
 48 requiring·the·same·type·be·requested·out·of·it·as·was·assigned·to·it.</p>
 49 <pre·class="literal-block">
 50 struct·client_data_t
 51 {
 52 ···<strong>client_data_t</strong>·()·=·default;
 53 ···explicit·<strong>client_data_t</strong>·(T*·v);
 54 ···client_data_t&amp;·<strong>operator=</strong>·(T*·v);
 55 ···explicit·operator·<strong>T</strong>·()·const;
 56 ···T*·<strong>get</strong>·()·const;
 57 ···client_data_t&amp;·<strong>operator=</strong>·(void·const*)·=·delete;
 58 ···operator·<strong>void*</strong>·()·const·=·delete;
 59 ···operator·void·<strong>const*</strong>·()·const·=·delete;
 60 ···client_data_t&amp;·<strong>operator=</strong>·(void*)·=·delete;
  
 61 ···template·&lt;typename·T,·typename·<strong>U</strong>··=·typename·std::enable_if&lt;std::is_pointer&lt;T&gt;::value&gt;::type&gt;
 62 };
 63 </pre>
 64 <a·name="client_data_t()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:client_data_t%3A%3A%5Bclient_data_t%28%29%5D&labels=documentation&body=Documentation+under+heading+%22client_data_t%3A%3A%5Bclient_data_t%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="client-data-t-1">
 65 <h2>client_data_t()</h2>
 66 <pre·class="literal-block">
 67 <strong>client_data_t</strong>·()·=·default;
 68 </pre>
 69 <p>construct·a·nullptr·client·data</p>
 70 <a·name="const*()"></a>
 71 <a·name="operator=()"></a>
 72 <a·name="void*()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:client_data_t%3A%3A%5Bconst%2A%28%29+operator%3D%28%29+void%2A%28%29%5D&labels=documentation&body=Documentation+under+heading+%22client_data_t%3A%3A%5Bconst%2A%28%29+operator%3D%28%29+void%2A%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
 73 <div·class="section"·id="const-operator-void">
 74 <h2>const*()·operator=()·void*()</h2>
 75 <pre·class="literal-block">
 76 client_data_t&amp;·<strong>operator=</strong>·(void·const*)·=·delete;
 77 operator·<strong>void*</strong>·()·const·=·delete;
 78 operator·void·<strong>const*</strong>·()·const·=·delete;
 79 client_data_t&amp;·<strong>operator=</strong>·(void*)·=·delete;
 80 </pre>
 81 <p>we·don't·allow·type-unsafe·operations</p>
43 <a·name="add_torrent_params"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+add_torrent_params&labels=documentation&body=Documentation+under+heading+%22class+add_torrent_params%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="add-torrent-params">82 <a·name="add_torrent_params"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+add_torrent_params&labels=documentation&body=Documentation+under+heading+%22class+add_torrent_params%22+could+be+improved">report·issue</a>]</span></div>
 83 </div>
 84 <div·class="section"·id="add-torrent-params">
44 <h1>add_torrent_params</h1>85 <h1>add_torrent_params</h1>
45 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/add_torrent_params.hpp">libtorrent/add_torrent_params.hpp</a>&quot;</p>86 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/add_torrent_params.hpp">libtorrent/add_torrent_params.hpp</a>&quot;</p>
46 <p>The·<a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a>·contains·all·the·information·in·a·.torrent·file87 <p>The·<a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a>·contains·all·the·information·in·a·.torrent·file
47 along·with·all·information·necessary·to·add·that·torrent·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>.88 along·with·all·information·necessary·to·add·that·torrent·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>.
48 The·key·fields·when·adding·a·torrent·are:</p>89 The·key·fields·when·adding·a·torrent·are:</p>
49 <ul·class="simple">90 <ul·class="simple">
50 <li>ti·-·the·immutable·info-dict·part·of·the·torrent</li>91 <li>ti·-·the·immutable·info-dict·part·of·the·torrent</li>
Offset 357, 56 lines modifiedOffset 399, 14 lines modified
357 <a·name="last_upload"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:add_torrent_params%3A%3A%5Blast_download+last_upload%5D&labels=documentation&body=Documentation+under+heading+%22add_torrent_params%3A%3A%5Blast_download+last_upload%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">399 <a·name="last_upload"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:add_torrent_params%3A%3A%5Blast_download+last_upload%5D&labels=documentation&body=Documentation+under+heading+%22add_torrent_params%3A%3A%5Blast_download+last_upload%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">
358 <dt>last_download·last_upload</dt>400 <dt>last_download·last_upload</dt>
359 <dd>the·posix·time·of·the·last·time·payload·was·received·or·sent·for·this401 <dd>the·posix·time·of·the·last·time·payload·was·received·or·sent·for·this
360 torrent,·respectively.·A·value·of·0·means·we·don't·know·when·we·last402 torrent,·respectively.·A·value·of·0·means·we·don't·know·when·we·last
361 uploaded·or·downloaded,·or·we·have·never·uploaded·or·downloaded·any403 uploaded·or·downloaded,·or·we·have·never·uploaded·or·downloaded·any
362 payload·for·this·torrent.</dd>404 payload·for·this·torrent.</dd>
363 </dl>405 </dl>
364 <a·name="client_data_t"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+client_data_t&labels=documentation&body=Documentation+under+heading+%22class+client_data_t%22+could+be+improved">report·issue</a>]</span></div> 
365 <div·class="section"·id="client-data-t"> 
366 <h1>client_data_t</h1> 
367 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/client_data.hpp">libtorrent/client_data.hpp</a>&quot;</p> 
368 <p>A·thin·wrapper·around·a·void·pointer·used·as·&quot;user·data&quot;.·i.e.·an·opaque 
369 cookie·passed·in·to·libtorrent·and·returned·on·demand.·It·adds·type-safety·by 
370 requiring·the·same·type·be·requested·out·of·it·as·was·assigned·to·it.</p> 
371 <pre·class="literal-block"> 
372 struct·client_data_t 
373 { 
374 ···<strong>client_data_t</strong>·()·=·default; 
375 ···explicit·<strong>client_data_t</strong>·(T*·v); 
376 ···client_data_t&amp;·<strong>operator=</strong>·(T*·v); 
377 ···explicit·operator·<strong>T</strong>·()·const; 
378 ···T*·<strong>get</strong>·()·const; 
379 ···client_data_t&amp;·<strong>operator=</strong>·(void*)·=·delete; 
380 ···operator·<strong>void*</strong>·()·const·=·delete; 
381 ···client_data_t&amp;·<strong>operator=</strong>·(void·const*)·=·delete; 
382 ···operator·void·<strong>const*</strong>·()·const·=·delete; 
  
383 ···template·&lt;typename·T,·typename·<strong>U</strong>··=·typename·std::enable_if&lt;std::is_pointer&lt;T&gt;::value&gt;::type&gt; 
384 }; 
385 </pre> 
386 <a·name="client_data_t()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:client_data_t%3A%3A%5Bclient_data_t%28%29%5D&labels=documentation&body=Documentation+under+heading+%22client_data_t%3A%3A%5Bclient_data_t%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="client-data-t-1"> 
387 <h2>client_data_t()</h2> 
388 <pre·class="literal-block"> 
389 <strong>client_data_t</strong>·()·=·default; 
390 </pre> 
391 <p>construct·a·nullptr·client·data</p> 
392 <a·name="void*()"></a> 
393 <a·name="operator=()"></a> 
394 <a·name="const*()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:client_data_t%3A%3A%5Bvoid%2A%28%29+operator%3D%28%29+const%2A%28%29%5D&labels=documentation&body=Documentation+under+heading+%22client_data_t%3A%3A%5Bvoid%2A%28%29+operator%3D%28%29+const%2A%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> 
395 <div·class="section"·id="void-operator-const"> 
396 <h2>void*()·operator=()·const*()</h2> 
397 <pre·class="literal-block"> 
398 client_data_t&amp;·<strong>operator=</strong>·(void*)·=·delete; 
399 operator·<strong>void*</strong>·()·const·=·delete; 
400 client_data_t&amp;·<strong>operator=</strong>·(void·const*)·=·delete; 
401 operator·void·<strong>const*</strong>·()·const·=·delete; 
402 </pre> 
403 <p>we·don't·allow·type-unsafe·operations</p> 
404 </div> 
405 </div>406 </div>
  
406 ····</div>407 ····</div>
407 ····</div>408 ····</div>
408 ····<div·id="gradient"></div>409 ····<div·id="gradient"></div>
409 ····<div·id="filler">410 ····<div·id="filler">
410 ····<div·id="footer">411 ····<div·id="footer">
3.32 KB
html2text {}
    
Offset 1, 15 lines modifiedOffset 1, 47 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·add_torrent_params 
6 ····*·client_data_t5 ····*·client_data_t
7 ··········o·client_data_t()6 ··········o·client_data_t()
8 ··········o·void*()_operator=()_const*()7 ··········o·const*()_operator=()_void*()
 8 ····*·add_torrent_params
 9 [report_issue]
 10 ******·client_data_t·******
 11 Declared·in·"libtorrent/client_data.hpp"
 12 A·thin·wrapper·around·a·void·pointer·used·as·"user·data".·i.e.·an·opaque·cookie
 13 passed·in·to·libtorrent·and·returned·on·demand.·It·adds·type-safety·by
 14 requiring·the·same·type·be·requested·out·of·it·as·was·assigned·to·it.
 15 struct·client_data_t
 16 {
 17 ···client_data_t·()·=·default;
 18 ···explicit·client_data_t·(T*·v);
 19 ···client_data_t&·operator=·(T*·v);
 20 ···explicit·operator·T·()·const;
 21 ···T*·get·()·const;
 22 ···client_data_t&·operator=·(void·const*)·=·delete;
 23 ···operator·void*·()·const·=·delete;
 24 ···operator·void·const*·()·const·=·delete;
 25 ···client_data_t&·operator=·(void*)·=·delete;
  
 26 ···template·<typename·T,·typename·U··=·typename·std::enable_if<std::is_
 27 pointer<T>::value>::type>
 28 };
 29 [report_issue]
 30 *****·client_data_t()·*****
 31 client_data_t·()·=·default;
 32 construct·a·nullptr·client·data
 33 [report_issue]
 34 *****·const*()·operator=()·void*()·*****
 35 client_data_t&·operator=·(void·const*)·=·delete;
 36 operator·void*·()·const·=·delete;
 37 operator·void·const*·()·const·=·delete;
 38 client_data_t&·operator=·(void*)·=·delete;
 39 we·don't·allow·type-unsafe·operations
9 [report_issue]40 [report_issue]
10 ******·add_torrent_params·******41 ******·add_torrent_params·******
11 Declared·in·"libtorrent/add_torrent_params.hpp"42 Declared·in·"libtorrent/add_torrent_params.hpp"
12 The·add_torrent_params·contains·all·the·information·in·a·.torrent·file·along43 The·add_torrent_params·contains·all·the·information·in·a·.torrent·file·along
13 with·all·information·necessary·to·add·that·torrent·to·a·session.·The·key·fields44 with·all·information·necessary·to·add·that·torrent·to·a·session.·The·key·fields
14 when·adding·a·torrent·are:45 when·adding·a·torrent·are:
15 ····*·ti·-·the·immutable·info-dict·part·of·the·torrent46 ····*·ti·-·the·immutable·info-dict·part·of·the·torrent
Offset 258, 46 lines modifiedOffset 290, 14 lines modified
258 ······applied·before·the·torrent·is·added.290 ······applied·before·the·torrent·is·added.
259 [report_issue]291 [report_issue]
260 ··last_download·last_upload292 ··last_download·last_upload
261 ······the·posix·time·of·the·last·time·payload·was·received·or·sent·for·this293 ······the·posix·time·of·the·last·time·payload·was·received·or·sent·for·this
262 ······torrent,·respectively.·A·value·of·0·means·we·don't·know·when·we·last294 ······torrent,·respectively.·A·value·of·0·means·we·don't·know·when·we·last
263 ······uploaded·or·downloaded,·or·we·have·never·uploaded·or·downloaded·any295 ······uploaded·or·downloaded,·or·we·have·never·uploaded·or·downloaded·any
264 ······payload·for·this·torrent.296 ······payload·for·this·torrent.
265 [report_issue] 
266 ******·client_data_t·****** 
267 Declared·in·"libtorrent/client_data.hpp" 
268 A·thin·wrapper·around·a·void·pointer·used·as·"user·data".·i.e.·an·opaque·cookie 
269 passed·in·to·libtorrent·and·returned·on·demand.·It·adds·type-safety·by 
270 requiring·the·same·type·be·requested·out·of·it·as·was·assigned·to·it. 
271 struct·client_data_t 
272 { 
273 ···client_data_t·()·=·default; 
274 ···explicit·client_data_t·(T*·v); 
275 ···client_data_t&·operator=·(T*·v); 
276 ···explicit·operator·T·()·const; 
277 ···T*·get·()·const; 
278 ···client_data_t&·operator=·(void*)·=·delete; 
279 ···operator·void*·()·const·=·delete; 
280 ···client_data_t&·operator=·(void·const*)·=·delete; 
281 ···operator·void·const*·()·const·=·delete; 
  
282 ···template·<typename·T,·typename·U··=·typename·std::enable_if<std::is_ 
283 pointer<T>::value>::type> 
284 }; 
285 [report_issue] 
286 *****·client_data_t()·***** 
287 client_data_t·()·=·default; 
288 construct·a·nullptr·client·data 
289 [report_issue] 
290 *****·void*()·operator=()·const*()·***** 
291 client_data_t&·operator=·(void*)·=·delete; 
292 operator·void*·()·const·=·delete; 
293 client_data_t&·operator=·(void·const*)·=·delete; 
294 operator·void·const*·()·const·=·delete; 
295 we·don't·allow·type-unsafe·operations 
296 home297 home
297 blog298 blog
298 uTP299 uTP
299 download300 download
300 documentation301 documentation
301 DHT_put_extension302 DHT_put_extension
302 python_bindings303 python_bindings
84.6 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Alerts.html
    
Offset 28, 211 lines modifiedOffset 28, 211 lines modified
28 <td>2.0.11</td></tr>28 <td>2.0.11</td></tr>
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#dht-routing-bucket"·id="toc-entry-1">dht_routing_bucket</a></li> 
36 <li><a·class="reference·internal"·href="#torrent-alert"·id="toc-entry-2">torrent_alert</a><ul>35 <li><a·class="reference·internal"·href="#alert"·id="toc-entry-1">alert</a><ul>
 36 <li><a·class="reference·internal"·href="#timestamp"·id="toc-entry-2">timestamp()</a></li>
 37 <li><a·class="reference·internal"·href="#type"·id="toc-entry-3">type()</a></li>
 38 <li><a·class="reference·internal"·href="#what"·id="toc-entry-4">what()</a></li>
37 <li><a·class="reference·internal"·href="#message"·id="toc-entry-3">message()</a></li>39 <li><a·class="reference·internal"·href="#message"·id="toc-entry-5">message()</a></li>
 40 <li><a·class="reference·internal"·href="#category"·id="toc-entry-6">category()</a></li>
38 </ul>41 </ul>
39 </li>42 </li>
40 <li><a·class="reference·internal"·href="#peer-alert"·id="toc-entry-4">peer_alert</a></li>43 <li><a·class="reference·internal"·href="#dht-routing-bucket"·id="toc-entry-7">dht_routing_bucket</a></li>
41 <li><a·class="reference·internal"·href="#tracker-alert"·id="toc-entry-5">tracker_alert</a><ul>44 <li><a·class="reference·internal"·href="#torrent-alert"·id="toc-entry-8">torrent_alert</a><ul>
42 <li><a·class="reference·internal"·href="#tracker-url"·id="toc-entry-6">tracker_url()</a></li>45 <li><a·class="reference·internal"·href="#message-1"·id="toc-entry-9">message()</a></li>
43 </ul>46 </ul>
44 </li>47 </li>
45 <li><a·class="reference·internal"·href="#torrent-removed-alert"·id="toc-entry-7">torrent_removed_alert</a></li> 
46 <li><a·class="reference·internal"·href="#read-piece-alert"·id="toc-entry-8">read_piece_alert</a></li> 
47 <li><a·class="reference·internal"·href="#file-completed-alert"·id="toc-entry-9">file_completed_alert</a></li> 
48 <li><a·class="reference·internal"·href="#file-renamed-alert"·id="toc-entry-10">file_renamed_alert</a><ul>48 <li><a·class="reference·internal"·href="#peer-alert"·id="toc-entry-10">peer_alert</a></li>
49 <li><a·class="reference·internal"·href="#old-name-new-name"·id="toc-entry-11">old_name()·new_name()</a></li>49 <li><a·class="reference·internal"·href="#tracker-alert"·id="toc-entry-11">tracker_alert</a><ul>
 50 <li><a·class="reference·internal"·href="#tracker-url"·id="toc-entry-12">tracker_url()</a></li>
50 </ul>51 </ul>
51 </li>52 </li>
 53 <li><a·class="reference·internal"·href="#torrent-removed-alert"·id="toc-entry-13">torrent_removed_alert</a></li>
 54 <li><a·class="reference·internal"·href="#read-piece-alert"·id="toc-entry-14">read_piece_alert</a></li>
 55 <li><a·class="reference·internal"·href="#file-completed-alert"·id="toc-entry-15">file_completed_alert</a></li>
52 <li><a·class="reference·internal"·href="#file-rename-failed-alert"·id="toc-entry-12">file_rename_failed_alert</a></li>56 <li><a·class="reference·internal"·href="#file-renamed-alert"·id="toc-entry-16">file_renamed_alert</a><ul>
 57 <li><a·class="reference·internal"·href="#new-name-old-name"·id="toc-entry-17">new_name()·old_name()</a></li>
53 <li><a·class="reference·internal"·href="#performance-alert"·id="toc-entry-13">performance_alert</a><ul> 
54 <li><a·class="reference·internal"·href="#enum-performance-warning-t"·id="toc-entry-14">enum·performance_warning_t</a></li> 
55 </ul>58 </ul>
56 </li>59 </li>
57 <li><a·class="reference·internal"·href="#state-changed-alert"·id="toc-entry-15">state_changed_alert</a></li>60 <li><a·class="reference·internal"·href="#file-rename-failed-alert"·id="toc-entry-18">file_rename_failed_alert</a></li>
58 <li><a·class="reference·internal"·href="#tracker-error-alert"·id="toc-entry-16">tracker_error_alert</a><ul>61 <li><a·class="reference·internal"·href="#performance-alert"·id="toc-entry-19">performance_alert</a><ul>
59 <li><a·class="reference·internal"·href="#failure-reason"·id="toc-entry-17">failure_reason()</a></li>62 <li><a·class="reference·internal"·href="#enum-performance-warning-t"·id="toc-entry-20">enum·performance_warning_t</a></li>
60 </ul>63 </ul>
61 </li>64 </li>
 65 <li><a·class="reference·internal"·href="#state-changed-alert"·id="toc-entry-21">state_changed_alert</a></li>
62 <li><a·class="reference·internal"·href="#tracker-warning-alert"·id="toc-entry-18">tracker_warning_alert</a><ul>66 <li><a·class="reference·internal"·href="#tracker-error-alert"·id="toc-entry-22">tracker_error_alert</a><ul>
63 <li><a·class="reference·internal"·href="#warning-message"·id="toc-entry-19">warning_message()</a></li>67 <li><a·class="reference·internal"·href="#failure-reason"·id="toc-entry-23">failure_reason()</a></li>
64 </ul>68 </ul>
65 </li>69 </li>
66 <li><a·class="reference·internal"·href="#scrape-reply-alert"·id="toc-entry-20">scrape_reply_alert</a></li> 
67 <li><a·class="reference·internal"·href="#scrape-failed-alert"·id="toc-entry-21">scrape_failed_alert</a><ul>70 <li><a·class="reference·internal"·href="#tracker-warning-alert"·id="toc-entry-24">tracker_warning_alert</a><ul>
68 <li><a·class="reference·internal"·href="#error-message"·id="toc-entry-22">error_message()</a></li>71 <li><a·class="reference·internal"·href="#warning-message"·id="toc-entry-25">warning_message()</a></li>
69 </ul>72 </ul>
70 </li>73 </li>
71 <li><a·class="reference·internal"·href="#tracker-reply-alert"·id="toc-entry-23">tracker_reply_alert</a></li>74 <li><a·class="reference·internal"·href="#scrape-reply-alert"·id="toc-entry-26">scrape_reply_alert</a></li>
72 <li><a·class="reference·internal"·href="#dht-reply-alert"·id="toc-entry-24">dht_reply_alert</a></li> 
73 <li><a·class="reference·internal"·href="#tracker-announce-alert"·id="toc-entry-25">tracker_announce_alert</a></li> 
74 <li><a·class="reference·internal"·href="#hash-failed-alert"·id="toc-entry-26">hash_failed_alert</a></li>75 <li><a·class="reference·internal"·href="#scrape-failed-alert"·id="toc-entry-27">scrape_failed_alert</a><ul>
75 <li><a·class="reference·internal"·href="#peer-ban-alert"·id="toc-entry-27">peer_ban_alert</a></li> 
76 <li><a·class="reference·internal"·href="#peer-unsnubbed-alert"·id="toc-entry-28">peer_unsnubbed_alert</a></li> 
77 <li><a·class="reference·internal"·href="#peer-snubbed-alert"·id="toc-entry-29">peer_snubbed_alert</a></li> 
78 <li><a·class="reference·internal"·href="#peer-error-alert"·id="toc-entry-30">peer_error_alert</a></li>76 <li><a·class="reference·internal"·href="#error-message"·id="toc-entry-28">error_message()</a></li>
79 <li><a·class="reference·internal"·href="#peer-connect-alert"·id="toc-entry-31">peer_connect_alert</a><ul> 
80 <li><a·class="reference·internal"·href="#enum-direction-t"·id="toc-entry-32">enum·direction_t</a></li> 
81 </ul>77 </ul>
82 </li>78 </li>
 79 <li><a·class="reference·internal"·href="#tracker-reply-alert"·id="toc-entry-29">tracker_reply_alert</a></li>
 80 <li><a·class="reference·internal"·href="#dht-reply-alert"·id="toc-entry-30">dht_reply_alert</a></li>
 81 <li><a·class="reference·internal"·href="#tracker-announce-alert"·id="toc-entry-31">tracker_announce_alert</a></li>
 82 <li><a·class="reference·internal"·href="#hash-failed-alert"·id="toc-entry-32">hash_failed_alert</a></li>
 83 <li><a·class="reference·internal"·href="#peer-ban-alert"·id="toc-entry-33">peer_ban_alert</a></li>
 84 <li><a·class="reference·internal"·href="#peer-unsnubbed-alert"·id="toc-entry-34">peer_unsnubbed_alert</a></li>
 85 <li><a·class="reference·internal"·href="#peer-snubbed-alert"·id="toc-entry-35">peer_snubbed_alert</a></li>
 86 <li><a·class="reference·internal"·href="#peer-error-alert"·id="toc-entry-36">peer_error_alert</a></li>
83 <li><a·class="reference·internal"·href="#peer-disconnected-alert"·id="toc-entry-33">peer_disconnected_alert</a></li>87 <li><a·class="reference·internal"·href="#peer-connect-alert"·id="toc-entry-37">peer_connect_alert</a><ul>
84 <li><a·class="reference·internal"·href="#invalid-request-alert"·id="toc-entry-34">invalid_request_alert</a></li> 
85 <li><a·class="reference·internal"·href="#torrent-finished-alert"·id="toc-entry-35">torrent_finished_alert</a></li> 
86 <li><a·class="reference·internal"·href="#piece-finished-alert"·id="toc-entry-36">piece_finished_alert</a></li> 
87 <li><a·class="reference·internal"·href="#request-dropped-alert"·id="toc-entry-37">request_dropped_alert</a></li> 
88 <li><a·class="reference·internal"·href="#block-timeout-alert"·id="toc-entry-38">block_timeout_alert</a></li>88 <li><a·class="reference·internal"·href="#enum-direction-t"·id="toc-entry-38">enum·direction_t</a></li>
89 <li><a·class="reference·internal"·href="#block-finished-alert"·id="toc-entry-39">block_finished_alert</a></li> 
90 <li><a·class="reference·internal"·href="#block-downloading-alert"·id="toc-entry-40">block_downloading_alert</a></li> 
91 <li><a·class="reference·internal"·href="#unwanted-block-alert"·id="toc-entry-41">unwanted_block_alert</a></li> 
92 <li><a·class="reference·internal"·href="#storage-moved-alert"·id="toc-entry-42">storage_moved_alert</a><ul> 
93 <li><a·class="reference·internal"·href="#storage-path-old-path"·id="toc-entry-43">storage_path()·old_path()</a></li> 
94 </ul>89 </ul>
95 </li>90 </li>
 91 <li><a·class="reference·internal"·href="#peer-disconnected-alert"·id="toc-entry-39">peer_disconnected_alert</a></li>
 92 <li><a·class="reference·internal"·href="#invalid-request-alert"·id="toc-entry-40">invalid_request_alert</a></li>
 93 <li><a·class="reference·internal"·href="#torrent-finished-alert"·id="toc-entry-41">torrent_finished_alert</a></li>
 94 <li><a·class="reference·internal"·href="#piece-finished-alert"·id="toc-entry-42">piece_finished_alert</a></li>
 95 <li><a·class="reference·internal"·href="#request-dropped-alert"·id="toc-entry-43">request_dropped_alert</a></li>
 96 <li><a·class="reference·internal"·href="#block-timeout-alert"·id="toc-entry-44">block_timeout_alert</a></li>
 97 <li><a·class="reference·internal"·href="#block-finished-alert"·id="toc-entry-45">block_finished_alert</a></li>
 98 <li><a·class="reference·internal"·href="#block-downloading-alert"·id="toc-entry-46">block_downloading_alert</a></li>
 99 <li><a·class="reference·internal"·href="#unwanted-block-alert"·id="toc-entry-47">unwanted_block_alert</a></li>
96 <li><a·class="reference·internal"·href="#storage-moved-failed-alert"·id="toc-entry-44">storage_moved_failed_alert</a><ul>100 <li><a·class="reference·internal"·href="#storage-moved-alert"·id="toc-entry-48">storage_moved_alert</a><ul>
97 <li><a·class="reference·internal"·href="#file-path"·id="toc-entry-45">file_path()</a></li>101 <li><a·class="reference·internal"·href="#old-path-storage-path"·id="toc-entry-49">old_path()·storage_path()</a></li>
98 </ul>102 </ul>
99 </li>103 </li>
100 <li><a·class="reference·internal"·href="#torrent-deleted-alert"·id="toc-entry-46">torrent_deleted_alert</a></li> 
101 <li><a·class="reference·internal"·href="#torrent-delete-failed-alert"·id="toc-entry-47">torrent_delete_failed_alert</a></li>104 <li><a·class="reference·internal"·href="#storage-moved-failed-alert"·id="toc-entry-50">storage_moved_failed_alert</a><ul>
102 <li><a·class="reference·internal"·href="#save-resume-data-alert"·id="toc-entry-48">save_resume_data_alert</a></li> 
103 <li><a·class="reference·internal"·href="#save-resume-data-failed-alert"·id="toc-entry-49">save_resume_data_failed_alert</a></li> 
104 <li><a·class="reference·internal"·href="#torrent-paused-alert"·id="toc-entry-50">torrent_paused_alert</a></li> 
105 <li><a·class="reference·internal"·href="#torrent-resumed-alert"·id="toc-entry-51">torrent_resumed_alert</a></li> 
106 <li><a·class="reference·internal"·href="#torrent-checked-alert"·id="toc-entry-52">torrent_checked_alert</a></li> 
107 <li><a·class="reference·internal"·href="#url-seed-alert"·id="toc-entry-53">url_seed_alert</a><ul> 
108 <li><a·class="reference·internal"·href="#server-url"·id="toc-entry-54">server_url()</a></li>105 <li><a·class="reference·internal"·href="#file-path"·id="toc-entry-51">file_path()</a></li>
109 <li><a·class="reference·internal"·href="#error-message-1"·id="toc-entry-55">error_message()</a></li> 
110 </ul>106 </ul>
111 </li>107 </li>
 108 <li><a·class="reference·internal"·href="#torrent-deleted-alert"·id="toc-entry-52">torrent_deleted_alert</a></li>
 109 <li><a·class="reference·internal"·href="#torrent-delete-failed-alert"·id="toc-entry-53">torrent_delete_failed_alert</a></li>
 110 <li><a·class="reference·internal"·href="#save-resume-data-alert"·id="toc-entry-54">save_resume_data_alert</a></li>
 111 <li><a·class="reference·internal"·href="#save-resume-data-failed-alert"·id="toc-entry-55">save_resume_data_failed_alert</a></li>
 112 <li><a·class="reference·internal"·href="#torrent-paused-alert"·id="toc-entry-56">torrent_paused_alert</a></li>
 113 <li><a·class="reference·internal"·href="#torrent-resumed-alert"·id="toc-entry-57">torrent_resumed_alert</a></li>
 114 <li><a·class="reference·internal"·href="#torrent-checked-alert"·id="toc-entry-58">torrent_checked_alert</a></li>
112 <li><a·class="reference·internal"·href="#file-error-alert"·id="toc-entry-56">file_error_alert</a><ul>115 <li><a·class="reference·internal"·href="#url-seed-alert"·id="toc-entry-59">url_seed_alert</a><ul>
 116 <li><a·class="reference·internal"·href="#server-url"·id="toc-entry-60">server_url()</a></li>
113 <li><a·class="reference·internal"·href="#filename"·id="toc-entry-57">filename()</a></li>117 <li><a·class="reference·internal"·href="#error-message-1"·id="toc-entry-61">error_message()</a></li>
114 </ul>118 </ul>
115 </li>119 </li>
116 <li><a·class="reference·internal"·href="#metadata-failed-alert"·id="toc-entry-58">metadata_failed_alert</a></li> 
117 <li><a·class="reference·internal"·href="#metadata-received-alert"·id="toc-entry-59">metadata_received_alert</a></li> 
118 <li><a·class="reference·internal"·href="#udp-error-alert"·id="toc-entry-60">udp_error_alert</a></li>120 <li><a·class="reference·internal"·href="#file-error-alert"·id="toc-entry-62">file_error_alert</a><ul>
119 <li><a·class="reference·internal"·href="#external-ip-alert"·id="toc-entry-61">external_ip_alert</a></li> 
Max diff block lines reached; 55447/69389 bytes (79.91%) of diff not shown.
16.7 KB
html2text {}
    
Offset 1, 22 lines modifiedOffset 1, 28 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
 5 ····*·alert
 6 ··········o·timestamp()
 7 ··········o·type()
 8 ··········o·what()
 9 ··········o·message()
 10 ··········o·category()
5 ····*·dht_routing_bucket11 ····*·dht_routing_bucket
6 ····*·torrent_alert12 ····*·torrent_alert
7 ··········o·message()13 ··········o·message()
8 ····*·peer_alert14 ····*·peer_alert
9 ····*·tracker_alert15 ····*·tracker_alert
10 ··········o·tracker_url()16 ··········o·tracker_url()
11 ····*·torrent_removed_alert17 ····*·torrent_removed_alert
12 ····*·read_piece_alert18 ····*·read_piece_alert
13 ····*·file_completed_alert19 ····*·file_completed_alert
14 ····*·file_renamed_alert20 ····*·file_renamed_alert
15 ··········o·old_name()_new_name()21 ··········o·new_name()_old_name()
16 ····*·file_rename_failed_alert22 ····*·file_rename_failed_alert
17 ····*·performance_alert23 ····*·performance_alert
18 ··········o·enum_performance_warning_t24 ··········o·enum_performance_warning_t
19 ····*·state_changed_alert25 ····*·state_changed_alert
20 ····*·tracker_error_alert26 ····*·tracker_error_alert
21 ··········o·failure_reason()27 ··········o·failure_reason()
22 ····*·tracker_warning_alert28 ····*·tracker_warning_alert
Offset 40, 15 lines modifiedOffset 46, 15 lines modified
40 ····*·piece_finished_alert46 ····*·piece_finished_alert
41 ····*·request_dropped_alert47 ····*·request_dropped_alert
42 ····*·block_timeout_alert48 ····*·block_timeout_alert
43 ····*·block_finished_alert49 ····*·block_finished_alert
44 ····*·block_downloading_alert50 ····*·block_downloading_alert
45 ····*·unwanted_block_alert51 ····*·unwanted_block_alert
46 ····*·storage_moved_alert52 ····*·storage_moved_alert
47 ··········o·storage_path()_old_path()53 ··········o·old_path()_storage_path()
48 ····*·storage_moved_failed_alert54 ····*·storage_moved_failed_alert
49 ··········o·file_path()55 ··········o·file_path()
50 ····*·torrent_deleted_alert56 ····*·torrent_deleted_alert
51 ····*·torrent_delete_failed_alert57 ····*·torrent_delete_failed_alert
52 ····*·save_resume_data_alert58 ····*·save_resume_data_alert
53 ····*·save_resume_data_failed_alert59 ····*·save_resume_data_failed_alert
54 ····*·torrent_paused_alert60 ····*·torrent_paused_alert
Offset 113, 15 lines modifiedOffset 119, 15 lines modified
113 ··········o·pkt_buf()119 ··········o·pkt_buf()
114 ··········o·enum_direction_t120 ··········o·enum_direction_t
115 ····*·dht_get_peers_reply_alert121 ····*·dht_get_peers_reply_alert
116 ····*·dht_direct_response_alert122 ····*·dht_direct_response_alert
117 ····*·picker_log_alert123 ····*·picker_log_alert
118 ····*·session_error_alert124 ····*·session_error_alert
119 ····*·dht_live_nodes_alert125 ····*·dht_live_nodes_alert
120 ··········o·num_nodes()_nodes()126 ··········o·nodes()_num_nodes()
121 ····*·session_stats_header_alert127 ····*·session_stats_header_alert
122 ····*·dht_sample_infohashes_alert128 ····*·dht_sample_infohashes_alert
123 ··········o·num_samples()_samples()129 ··········o·num_samples()_samples()
124 ··········o·num_nodes()130 ··········o·num_nodes()
125 ··········o·nodes()131 ··········o·nodes()
126 ····*·block_uploaded_alert132 ····*·block_uploaded_alert
127 ····*·alerts_dropped_alert133 ····*·alerts_dropped_alert
Offset 130, 25 lines modifiedOffset 136, 19 lines modified
130 ····*·oversized_file_alert136 ····*·oversized_file_alert
131 ····*·torrent_conflict_alert137 ····*·torrent_conflict_alert
132 ····*·peer_info_alert138 ····*·peer_info_alert
133 ····*·file_progress_alert139 ····*·file_progress_alert
134 ····*·piece_info_alert140 ····*·piece_info_alert
135 ····*·piece_availability_alert141 ····*·piece_availability_alert
136 ····*·tracker_list_alert142 ····*·tracker_list_alert
137 ····*·alert 
138 ··········o·timestamp() 
139 ··········o·type() 
140 ··········o·what() 
141 ··········o·message() 
142 ··········o·category() 
143 ····*·alert_cast()143 ····*·alert_cast()
144 ····*·operation_name()144 ····*·operation_name()
145 ····*·enum_operation_t145 ····*·enum_operation_t
146 ····*·int 
147 ····*·alert_category_t146 ····*·alert_category_t
 147 ····*·int
148 The·pop_alerts()·function·on·session·is·the·main·interface·for·retrieving148 The·pop_alerts()·function·on·session·is·the·main·interface·for·retrieving
149 alerts·(warnings,·messages·and·errors·from·libtorrent).·If·no·alerts·have·been149 alerts·(warnings,·messages·and·errors·from·libtorrent).·If·no·alerts·have·been
150 posted·by·libtorrent·pop_alerts()·will·return·an·empty·list.150 posted·by·libtorrent·pop_alerts()·will·return·an·empty·list.
151 By·default,·only·errors·are·reported.·settings_pack::alert_mask·can·be·used·to151 By·default,·only·errors·are·reported.·settings_pack::alert_mask·can·be·used·to
152 specify·which·kinds·of·events·should·be·reported.·The·alert·mask·is·a152 specify·which·kinds·of·events·should·be·reported.·The·alert·mask·is·a
153 combination·of·the·alert_category_t·flags·in·the·alert·class.153 combination·of·the·alert_category_t·flags·in·the·alert·class.
154 Every·alert·belongs·to·one·or·more·category.·There·is·a·cost·associated·with154 Every·alert·belongs·to·one·or·more·category.·There·is·a·cost·associated·with
Offset 161, 14 lines modifiedOffset 161, 103 lines modified
161 that·are·generated·for·a·specific·torrent·are·derived·from·torrent_alert,·and161 that·are·generated·for·a·specific·torrent·are·derived·from·torrent_alert,·and
162 tracker·events·derive·from·tracker_alert.162 tracker·events·derive·from·tracker_alert.
163 Alerts·returned·by·pop_alerts()·are·only·valid·until·the·next·call·to·pop_163 Alerts·returned·by·pop_alerts()·are·only·valid·until·the·next·call·to·pop_
164 alerts().·You·may·not·copy·an·alert·object·to·access·it·after·the·next·call·to164 alerts().·You·may·not·copy·an·alert·object·to·access·it·after·the·next·call·to
165 pop_alerts().·Internal·members·of·alerts·also·become·invalid·once·pop_alerts()165 pop_alerts().·Internal·members·of·alerts·also·become·invalid·once·pop_alerts()
166 is·called·again.166 is·called·again.
167 [report_issue]167 [report_issue]
 168 ******·alert·******
 169 Declared·in·"libtorrent/alert.hpp"
 170 The·alert·class·is·the·base·class·that·specific·messages·are·derived·from.
 171 alert·types·are·not·copyable,·and·cannot·be·constructed·by·the·client.·The
 172 pointers·returned·by·libtorrent·are·short·lived·(the·details·are·described
 173 under·session_handle::pop_alerts())
 174 struct·alert
 175 {
 176 ···time_point·timestamp·()·const;
 177 ···virtual·int·type·()·const·noexcept·=·0;
 178 ···virtual·char·const*·what·()·const·noexcept·=·0;
 179 ···virtual·std::string·message·()·const·=·0;
 180 ···virtual·alert_category_t·category·()·const·noexcept·=·0;
  
 181 ···static·constexpr·alert_category_t·error_notification··=·0_bit;
 182 ···static·constexpr·alert_category_t·peer_notification··=·1_bit;
 183 ···static·constexpr·alert_category_t·port_mapping_notification··=·2_bit;
 184 ···static·constexpr·alert_category_t·storage_notification··=·3_bit;
 185 ···static·constexpr·alert_category_t·tracker_notification··=·4_bit;
 186 ···static·constexpr·alert_category_t·connect_notification··=·5_bit;
 187 ···static·constexpr·alert_category_t·status_notification··=·6_bit;
 188 ···static·constexpr·alert_category_t·ip_block_notification··=·8_bit;
 189 ···static·constexpr·alert_category_t·performance_warning··=·9_bit;
 190 ···static·constexpr·alert_category_t·dht_notification··=·10_bit;
 191 ···static·constexpr·alert_category_t·session_log_notification··=·13_bit;
 192 ···static·constexpr·alert_category_t·torrent_log_notification··=·14_bit;
 193 ···static·constexpr·alert_category_t·peer_log_notification··=·15_bit;
 194 ···static·constexpr·alert_category_t·incoming_request_notification··=·16_bit;
 195 ···static·constexpr·alert_category_t·dht_log_notification··=·17_bit;
 196 ···static·constexpr·alert_category_t·dht_operation_notification··=·18_bit;
 197 ···static·constexpr·alert_category_t·port_mapping_log_notification··=·19_bit;
 198 ···static·constexpr·alert_category_t·picker_log_notification··=·20_bit;
Max diff block lines reached; 9738/17084 bytes (57.00%) of diff not shown.
29.6 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Bdecoding.html
    
Offset 35, 18 lines modifiedOffset 35, 18 lines modified
35 <li><a·class="reference·internal"·href="#bdecode-node"·id="toc-entry-1">bdecode_node</a><ul>35 <li><a·class="reference·internal"·href="#bdecode-node"·id="toc-entry-1">bdecode_node</a><ul>
36 <li><a·class="reference·internal"·href="#bdecode-node-1"·id="toc-entry-2">bdecode_node()</a></li>36 <li><a·class="reference·internal"·href="#bdecode-node-1"·id="toc-entry-2">bdecode_node()</a></li>
37 <li><a·class="reference·internal"·href="#bdecode-node-operator"·id="toc-entry-3">bdecode_node()·operator=()</a></li>37 <li><a·class="reference·internal"·href="#bdecode-node-operator"·id="toc-entry-3">bdecode_node()·operator=()</a></li>
38 <li><a·class="reference·internal"·href="#type"·id="toc-entry-4">type()</a></li>38 <li><a·class="reference·internal"·href="#type"·id="toc-entry-4">type()</a></li>
39 <li><a·class="reference·internal"·href="#bool"·id="toc-entry-5">bool()</a></li>39 <li><a·class="reference·internal"·href="#bool"·id="toc-entry-5">bool()</a></li>
40 <li><a·class="reference·internal"·href="#non-owning"·id="toc-entry-6">non_owning()</a></li>40 <li><a·class="reference·internal"·href="#non-owning"·id="toc-entry-6">non_owning()</a></li>
41 <li><a·class="reference·internal"·href="#data-section-data-offset"·id="toc-entry-7">data_section()·data_offset()</a></li>41 <li><a·class="reference·internal"·href="#data-section-data-offset"·id="toc-entry-7">data_section()·data_offset()</a></li>
42 <li><a·class="reference·internal"·href="#list-at-list-int-value-at-list-string-value-at-list-size"·id="toc-entry-8">list_at()·list_int_value_at()·list_string_value_at()·list_size()</a></li>42 <li><a·class="reference·internal"·href="#list-int-value-at-list-size-list-at-list-string-value-at"·id="toc-entry-8">list_int_value_at()·list_size()·list_at()·list_string_value_at()</a></li>
43 <li><a·class="reference·internal"·href="#dict-find-string-value-dict-find-string-dict-find-dict-find-int-dict-at-dict-find-dict-dict-size-dict-find-list-dict-at-node-dict-find-int-value"·id="toc-entry-9">dict_find_string_value()·dict_find_string()·dict_find()·dict_find_int()·dict_at()·dict_find_dict()·dict_size()[·...·truncated·by·diffoscope;·len:·52,·SHA:·e5827bdfbda75390d819952aa2c1171a949a6345f7ce08587737561db7c5ebce·...·]()</a></li>43 <li><a·class="reference·internal"·href="#dict-find-string-dict-find-int-dict-find-dict-at-node-dict-find-string-value-dict-find-int-value-dict-size-dict-find-list-dict-at-dict-find-dict"·id="toc-entry-9">dict_find_string()·dict_find_int()·dict_find()·dict_at_node()·dict_find_string_value()·dict_find_int_value()·d[·...·truncated·by·diffoscope;·len:·52,·SHA:·cb504d7bcf0e5efcd9cf7e30ebd62ae8afb347dd6f23a01eeb1732927049f95d·...·]()</a></li>
44 <li><a·class="reference·internal"·href="#int-value"·id="toc-entry-10">int_value()</a></li>44 <li><a·class="reference·internal"·href="#int-value"·id="toc-entry-10">int_value()</a></li>
45 <li><a·class="reference·internal"·href="#string-value-string-ptr-string-length-string-offset"·id="toc-entry-11">string_value()·string_ptr()·string_length()·string_offset()</a></li>45 <li><a·class="reference·internal"·href="#string-ptr-string-offset-string-value-string-length"·id="toc-entry-11">string_ptr()·string_offset()·string_value()·string_length()</a></li>
46 <li><a·class="reference·internal"·href="#clear"·id="toc-entry-12">clear()</a></li>46 <li><a·class="reference·internal"·href="#clear"·id="toc-entry-12">clear()</a></li>
47 <li><a·class="reference·internal"·href="#swap"·id="toc-entry-13">swap()</a></li>47 <li><a·class="reference·internal"·href="#swap"·id="toc-entry-13">swap()</a></li>
48 <li><a·class="reference·internal"·href="#reserve"·id="toc-entry-14">reserve()</a></li>48 <li><a·class="reference·internal"·href="#reserve"·id="toc-entry-14">reserve()</a></li>
49 <li><a·class="reference·internal"·href="#switch-underlying-buffer"·id="toc-entry-15">switch_underlying_buffer()</a></li>49 <li><a·class="reference·internal"·href="#switch-underlying-buffer"·id="toc-entry-15">switch_underlying_buffer()</a></li>
50 <li><a·class="reference·internal"·href="#has-soft-error"·id="toc-entry-16">has_soft_error()</a></li>50 <li><a·class="reference·internal"·href="#has-soft-error"·id="toc-entry-16">has_soft_error()</a></li>
51 <li><a·class="reference·internal"·href="#enum-type-t"·id="toc-entry-17">enum·type_t</a></li>51 <li><a·class="reference·internal"·href="#enum-type-t"·id="toc-entry-17">enum·type_t</a></li>
52 </ul>52 </ul>
Offset 62, 46 lines modifiedOffset 62, 46 lines modified
62 to·be·able·to·copy·it·as·a·reference·for·instance).·For·that,·use·the62 to·be·able·to·copy·it·as·a·reference·for·instance).·For·that,·use·the
63 <a·class="reference·external"·href="reference-Bdecoding.html#non_owning()">non_owning()</a>·member·function.</p>63 <a·class="reference·external"·href="reference-Bdecoding.html#non_owning()">non_owning()</a>·member·function.</p>
64 <p>There·are·5·different·types·of·nodes,·see·<a·class="reference·external"·href="reference-Bdecoding.html#type_t">type_t</a>.</p>64 <p>There·are·5·different·types·of·nodes,·see·<a·class="reference·external"·href="reference-Bdecoding.html#type_t">type_t</a>.</p>
65 <pre·class="literal-block">65 <pre·class="literal-block">
66 struct·bdecode_node66 struct·bdecode_node
67 {67 {
68 ···<strong>bdecode_node</strong>·()·=·default;68 ···<strong>bdecode_node</strong>·()·=·default;
69 ···bdecode_node&amp;·<strong>operator=</strong>·(bdecode_node·const&amp;)·&amp;; 
70 ···<strong>bdecode_node</strong>·(bdecode_node·const&amp;); 
71 ···bdecode_node&amp;·<strong>operator=</strong>·(bdecode_node&amp;&amp;)·&amp;·=·default;69 ···bdecode_node&amp;·<strong>operator=</strong>·(bdecode_node&amp;&amp;)·&amp;·=·default;
 70 ···<strong>bdecode_node</strong>·(bdecode_node·const&amp;);
 71 ···bdecode_node&amp;·<strong>operator=</strong>·(bdecode_node·const&amp;)·&amp;;
72 ···<strong>bdecode_node</strong>·(bdecode_node&amp;&amp;)·noexcept;72 ···<strong>bdecode_node</strong>·(bdecode_node&amp;&amp;)·noexcept;
73 ···type_t·<strong>type</strong>·()·const·noexcept;73 ···type_t·<strong>type</strong>·()·const·noexcept;
74 ···explicit·operator·<strong>bool</strong>·()·const·noexcept;74 ···explicit·operator·<strong>bool</strong>·()·const·noexcept;
75 ···bdecode_node·<strong>non_owning</strong>·()·const;75 ···bdecode_node·<strong>non_owning</strong>·()·const;
76 ···span&lt;char·const&gt;·<strong>data_section</strong>·()·const·noexcept; 
77 ···std::ptrdiff_t·<strong>data_offset</strong>·()·const·noexcept;76 ···std::ptrdiff_t·<strong>data_offset</strong>·()·const·noexcept;
 77 ···span&lt;char·const&gt;·<strong>data_section</strong>·()·const·noexcept;
78 ···std::int64_t·<strong>list_int_value_at</strong>·(int·i78 ···std::int64_t·<strong>list_int_value_at</strong>·(int·i
79 ······,·std::int64_t·default_val·=·0)·const;79 ······,·std::int64_t·default_val·=·0)·const;
80 ···bdecode_node·<strong>list_at</strong>·(int·i)·const; 
81 ···int·<strong>list_size</strong>·()·const;80 ···int·<strong>list_size</strong>·()·const;
82 ···string_view·<strong>list_string_value_at</strong>·(int·i81 ···string_view·<strong>list_string_value_at</strong>·(int·i
83 ······,·string_view·default_val·=·string_view())·const;82 ······,·string_view·default_val·=·string_view())·const;
84 ···std::int64_t·<strong>dict_find_int_value</strong>·(string_view·key 
85 ······,·std::int64_t·default_val·=·0)·const; 
86 ···bdecode_node·<strong>dict_find_list</strong>·(string_view·key)·const;83 ···bdecode_node·<strong>list_at</strong>·(int·i)·const;
87 ···bdecode_node·<strong>dict_find_dict</strong>·(string_view·key)·const; 
88 ···bdecode_node·<strong>dict_find</strong>·(string_view·key)·const;84 ···bdecode_node·<strong>dict_find</strong>·(string_view·key)·const;
89 ···int·<strong>dict_size</strong>·()·const;85 ···int·<strong>dict_size</strong>·()·const;
90 ···bdecode_node·<strong>dict_find_int</strong>·(string_view·key)·const;86 ···bdecode_node·<strong>dict_find_dict</strong>·(string_view·key)·const;
91 ···std::pair&lt;bdecode_node,·bdecode_node&gt;·<strong>dict_at_node</strong>·(int·i)·const;87 ···std::pair&lt;bdecode_node,·bdecode_node&gt;·<strong>dict_at_node</strong>·(int·i)·const;
92 ···bdecode_node·<strong>dict_find_string</strong>·(string_view·key)·const;88 ···bdecode_node·<strong>dict_find_string</strong>·(string_view·key)·const;
 89 ···bdecode_node·<strong>dict_find_list</strong>·(string_view·key)·const;
 90 ···std::int64_t·<strong>dict_find_int_value</strong>·(string_view·key
 91 ······,·std::int64_t·default_val·=·0)·const;
 92 ···std::pair&lt;string_view,·bdecode_node&gt;·<strong>dict_at</strong>·(int·i)·const;
 93 ···bdecode_node·<strong>dict_find_int</strong>·(string_view·key)·const;
93 ···string_view·<strong>dict_find_string_value</strong>·(string_view·key94 ···string_view·<strong>dict_find_string_value</strong>·(string_view·key
94 ······,·string_view·default_value·=·string_view())·const;95 ······,·string_view·default_value·=·string_view())·const;
95 ···std::pair&lt;string_view,·bdecode_node&gt;·<strong>dict_at</strong>·(int·i)·const; 
96 ···std::int64_t·<strong>int_value</strong>·()·const;96 ···std::int64_t·<strong>int_value</strong>·()·const;
97 ···string_view·<strong>string_value</strong>·()·const; 
98 ···char·const*·<strong>string_ptr</strong>·()·const;97 ···char·const*·<strong>string_ptr</strong>·()·const;
99 ···int·<strong>string_length</strong>·()·const;98 ···int·<strong>string_length</strong>·()·const;
100 ···std::ptrdiff_t·<strong>string_offset</strong>·()·const;99 ···std::ptrdiff_t·<strong>string_offset</strong>·()·const;
 100 ···string_view·<strong>string_value</strong>·()·const;
101 ···void·<strong>clear</strong>·();101 ···void·<strong>clear</strong>·();
102 ···void·<strong>swap</strong>·(bdecode_node&amp;·n);102 ···void·<strong>swap</strong>·(bdecode_node&amp;·n);
103 ···void·<strong>reserve</strong>·(int·tokens);103 ···void·<strong>reserve</strong>·(int·tokens);
104 ···void·<strong>switch_underlying_buffer</strong>·(char·const*·buf)·noexcept;104 ···void·<strong>switch_underlying_buffer</strong>·(char·const*·buf)·noexcept;
105 ···bool·<strong>has_soft_error</strong>·(span&lt;char&gt;·error)·const;105 ···bool·<strong>has_soft_error</strong>·(span&lt;char&gt;·error)·const;
  
106 ···enum·type_t106 ···enum·type_t
Offset 121, 17 lines modifiedOffset 121, 17 lines modified
121 </pre>121 </pre>
122 <p>creates·a·default·constructed·node,·it·will·have·the·type·<tt·class="docutils·literal">none_t</tt>.</p>122 <p>creates·a·default·constructed·node,·it·will·have·the·type·<tt·class="docutils·literal">none_t</tt>.</p>
123 <a·name="bdecode_node()"></a>123 <a·name="bdecode_node()"></a>
124 <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Bbdecode_node%28%29+operator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bbdecode_node%28%29+operator%3D%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>124 <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Bbdecode_node%28%29+operator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bbdecode_node%28%29+operator%3D%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
125 <div·class="section"·id="bdecode-node-operator">125 <div·class="section"·id="bdecode-node-operator">
126 <h2>bdecode_node()·operator=()</h2>126 <h2>bdecode_node()·operator=()</h2>
127 <pre·class="literal-block">127 <pre·class="literal-block">
128 bdecode_node&amp;·<strong>operator=</strong>·(bdecode_node·const&amp;)·&amp;; 
129 <strong>bdecode_node</strong>·(bdecode_node·const&amp;); 
130 bdecode_node&amp;·<strong>operator=</strong>·(bdecode_node&amp;&amp;)·&amp;·=·default;128 bdecode_node&amp;·<strong>operator=</strong>·(bdecode_node&amp;&amp;)·&amp;·=·default;
 129 <strong>bdecode_node</strong>·(bdecode_node·const&amp;);
 130 bdecode_node&amp;·<strong>operator=</strong>·(bdecode_node·const&amp;)·&amp;;
131 <strong>bdecode_node</strong>·(bdecode_node&amp;&amp;)·noexcept;131 <strong>bdecode_node</strong>·(bdecode_node&amp;&amp;)·noexcept;
132 </pre>132 </pre>
133 <p>For·owning·nodes,·the·copy·will·create·a·copy·of·the·tree,·but·the133 <p>For·owning·nodes,·the·copy·will·create·a·copy·of·the·tree,·but·the
134 underlying·buffer·remains·the·same.</p>134 underlying·buffer·remains·the·same.</p>
135 <a·name="type()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Btype%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Btype%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>135 <a·name="type()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Btype%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Btype%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
136 <div·class="section"·id="type">136 <div·class="section"·id="type">
137 <h2>type()</h2>137 <h2>type()</h2>
Offset 155, 66 lines modifiedOffset 155, 66 lines modified
155 <p>return·a·non-owning·reference·to·this·node.·This·is·useful·to·refer·to155 <p>return·a·non-owning·reference·to·this·node.·This·is·useful·to·refer·to
156 the·root·node·without·copying·it·in·assignments.</p>156 the·root·node·without·copying·it·in·assignments.</p>
157 <a·name="data_section()"></a>157 <a·name="data_section()"></a>
158 <a·name="data_offset()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Bdata_section%28%29+data_offset%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bdata_section%28%29+data_offset%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>158 <a·name="data_offset()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Bdata_section%28%29+data_offset%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bdata_section%28%29+data_offset%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
159 <div·class="section"·id="data-section-data-offset">159 <div·class="section"·id="data-section-data-offset">
160 <h2>data_section()·data_offset()</h2>160 <h2>data_section()·data_offset()</h2>
161 <pre·class="literal-block">161 <pre·class="literal-block">
162 span&lt;char·const&gt;·<strong>data_section</strong>·()·const·noexcept; 
163 std::ptrdiff_t·<strong>data_offset</strong>·()·const·noexcept;162 std::ptrdiff_t·<strong>data_offset</strong>·()·const·noexcept;
 163 span&lt;char·const&gt;·<strong>data_section</strong>·()·const·noexcept;
164 </pre>164 </pre>
165 <p>returns·the·buffer·and·length·of·the·section·in·the·original·bencoded165 <p>returns·the·buffer·and·length·of·the·section·in·the·original·bencoded
166 buffer·where·this·node·is·defined.·For·a·dictionary·for·instance,·this166 buffer·where·this·node·is·defined.·For·a·dictionary·for·instance,·this
167 starts·with·<tt·class="docutils·literal">d</tt>·and·ends·with·<tt·class="docutils·literal">e</tt>,·and·has·all·the·content·of·the167 starts·with·<tt·class="docutils·literal">d</tt>·and·ends·with·<tt·class="docutils·literal">e</tt>,·and·has·all·the·content·of·the
168 dictionary·in·between.168 dictionary·in·between.
169 the·<tt·class="docutils·literal">data_offset()</tt>·function·returns·the·byte-offset·to·this·node·in,169 the·<tt·class="docutils·literal">data_offset()</tt>·function·returns·the·byte-offset·to·this·node·in,
170 starting·from·the·beginning·of·the·buffer·that·was·parsed.</p>170 starting·from·the·beginning·of·the·buffer·that·was·parsed.</p>
171 <a·name="list_at()"></a> 
172 <a·name="list_int_value_at()"></a>171 <a·name="list_int_value_at()"></a>
173 <a·name="list_string_value_at()"></a>172 <a·name="list_size()"></a>
 173 <a·name="list_at()"></a>
174 <a·name="list_size()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Blist_at%28%29+list_int_value_at%28%29+list_string_value_at%28%29+list_size%28%29%5D&labels=documentation&body=Documentation+under[·...·truncated·by·diffoscope;·len:·107,·SHA:·3379a5f854bdf7551bd7b80d51326d5d15d13e7c629b8a82f9dbc8f670f8710b·...·]%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>174 <a·name="list_string_value_at()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Blist_int_value_at%28%29+list_size%28%29+list_at%28%29+list_string_value_at%28%29%5D&labels=documentation&body=Document[·...·truncated·by·diffoscope;·len:·118,·SHA:·7dc72df69c54c84060f5405a17aacd9b64bd0dc13f64c177b4ebdfeb39c44c04·...·]%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
175 <div·class="section"·id="list-at-list-int-value-at-list-string-value-at-list-size">175 <div·class="section"·id="list-int-value-at-list-size-list-at-list-string-value-at">
176 <h2>list_at()·list_int_value_at()·list_string_value_at()·list_size()</h2>176 <h2>list_int_value_at()·list_size()·list_at()·list_string_value_at()</h2>
177 <pre·class="literal-block">177 <pre·class="literal-block">
178 std::int64_t·<strong>list_int_value_at</strong>·(int·i178 std::int64_t·<strong>list_int_value_at</strong>·(int·i
179 ······,·std::int64_t·default_val·=·0)·const;179 ······,·std::int64_t·default_val·=·0)·const;
180 bdecode_node·<strong>list_at</strong>·(int·i)·const; 
181 int·<strong>list_size</strong>·()·const;180 int·<strong>list_size</strong>·()·const;
182 string_view·<strong>list_string_value_at</strong>·(int·i181 string_view·<strong>list_string_value_at</strong>·(int·i
183 ······,·string_view·default_val·=·string_view())·const;182 ······,·string_view·default_val·=·string_view())·const;
 183 bdecode_node·<strong>list_at</strong>·(int·i)·const;
Max diff block lines reached; 9283/20376 bytes (45.56%) of diff not shown.
9.59 KB
html2text {}
    
Offset 5, 20 lines modifiedOffset 5, 20 lines modified
5 ····*·bdecode_node5 ····*·bdecode_node
6 ··········o·bdecode_node()6 ··········o·bdecode_node()
7 ··········o·bdecode_node()_operator=()7 ··········o·bdecode_node()_operator=()
8 ··········o·type()8 ··········o·type()
9 ··········o·bool()9 ··········o·bool()
10 ··········o·non_owning()10 ··········o·non_owning()
11 ··········o·data_section()_data_offset()11 ··········o·data_section()_data_offset()
12 ··········o·list_at()_list_int_value_at()_list_string_value_at()_list_size()12 ··········o·list_int_value_at()_list_size()_list_at()_list_string_value_at()
 13 ··········o·dict_find_string()_dict_find_int()_dict_find()_dict_at_node()_dict_
13 ··········o·dict_find_string_value()_dict_find_string()_dict_find()_dict_find_14 ············find_string_value()_dict_find_int_value()_dict_size()_dict_find_
 15 ············list()_dict_at()_dict_find_dict()
14 ············int()_dict_at()_dict_find_dict()_dict_size()_dict_find_list()_dict_ 
15 ············at_node()_dict_find_int_value() 
16 ··········o·int_value()16 ··········o·int_value()
17 ··········o·string_value()_string_ptr()_string_length()_string_offset()17 ··········o·string_ptr()_string_offset()_string_value()_string_length()
18 ··········o·clear()18 ··········o·clear()
19 ··········o·swap()19 ··········o·swap()
20 ··········o·reserve()20 ··········o·reserve()
21 ··········o·switch_underlying_buffer()21 ··········o·switch_underlying_buffer()
22 ··········o·has_soft_error()22 ··········o·has_soft_error()
23 ··········o·enum_type_t23 ··········o·enum_type_t
24 ····*·print_entry()24 ····*·print_entry()
Offset 29, 46 lines modifiedOffset 29, 46 lines modified
29 Sometimes·it's·important·to·get·a·non-owning·reference·to·the·root·node·(·to·be29 Sometimes·it's·important·to·get·a·non-owning·reference·to·the·root·node·(·to·be
30 able·to·copy·it·as·a·reference·for·instance).·For·that,·use·the·non_owning()30 able·to·copy·it·as·a·reference·for·instance).·For·that,·use·the·non_owning()
31 member·function.31 member·function.
32 There·are·5·different·types·of·nodes,·see·type_t.32 There·are·5·different·types·of·nodes,·see·type_t.
33 struct·bdecode_node33 struct·bdecode_node
34 {34 {
35 ···bdecode_node·()·=·default;35 ···bdecode_node·()·=·default;
36 ···bdecode_node&·operator=·(bdecode_node·const&)·&; 
37 ···bdecode_node·(bdecode_node·const&); 
38 ···bdecode_node&·operator=·(bdecode_node&&)·&·=·default;36 ···bdecode_node&·operator=·(bdecode_node&&)·&·=·default;
 37 ···bdecode_node·(bdecode_node·const&);
 38 ···bdecode_node&·operator=·(bdecode_node·const&)·&;
39 ···bdecode_node·(bdecode_node&&)·noexcept;39 ···bdecode_node·(bdecode_node&&)·noexcept;
40 ···type_t·type·()·const·noexcept;40 ···type_t·type·()·const·noexcept;
41 ···explicit·operator·bool·()·const·noexcept;41 ···explicit·operator·bool·()·const·noexcept;
42 ···bdecode_node·non_owning·()·const;42 ···bdecode_node·non_owning·()·const;
43 ···span<char·const>·data_section·()·const·noexcept; 
44 ···std::ptrdiff_t·data_offset·()·const·noexcept;43 ···std::ptrdiff_t·data_offset·()·const·noexcept;
 44 ···span<char·const>·data_section·()·const·noexcept;
45 ···std::int64_t·list_int_value_at·(int·i45 ···std::int64_t·list_int_value_at·(int·i
46 ······,·std::int64_t·default_val·=·0)·const;46 ······,·std::int64_t·default_val·=·0)·const;
47 ···bdecode_node·list_at·(int·i)·const; 
48 ···int·list_size·()·const;47 ···int·list_size·()·const;
49 ···string_view·list_string_value_at·(int·i48 ···string_view·list_string_value_at·(int·i
50 ······,·string_view·default_val·=·string_view())·const;49 ······,·string_view·default_val·=·string_view())·const;
 50 ···bdecode_node·list_at·(int·i)·const;
51 ···std::int64_t·dict_find_int_value·(string_view·key 
52 ······,·std::int64_t·default_val·=·0)·const; 
53 ···bdecode_node·dict_find_list·(string_view·key)·const; 
54 ···bdecode_node·dict_find_dict·(string_view·key)·const; 
55 ···bdecode_node·dict_find·(string_view·key)·const;51 ···bdecode_node·dict_find·(string_view·key)·const;
56 ···int·dict_size·()·const;52 ···int·dict_size·()·const;
57 ···bdecode_node·dict_find_int·(string_view·key)·const;53 ···bdecode_node·dict_find_dict·(string_view·key)·const;
58 ···std::pair<bdecode_node,·bdecode_node>·dict_at_node·(int·i)·const;54 ···std::pair<bdecode_node,·bdecode_node>·dict_at_node·(int·i)·const;
59 ···bdecode_node·dict_find_string·(string_view·key)·const;55 ···bdecode_node·dict_find_string·(string_view·key)·const;
 56 ···bdecode_node·dict_find_list·(string_view·key)·const;
 57 ···std::int64_t·dict_find_int_value·(string_view·key
 58 ······,·std::int64_t·default_val·=·0)·const;
 59 ···std::pair<string_view,·bdecode_node>·dict_at·(int·i)·const;
 60 ···bdecode_node·dict_find_int·(string_view·key)·const;
60 ···string_view·dict_find_string_value·(string_view·key61 ···string_view·dict_find_string_value·(string_view·key
61 ······,·string_view·default_value·=·string_view())·const;62 ······,·string_view·default_value·=·string_view())·const;
62 ···std::pair<string_view,·bdecode_node>·dict_at·(int·i)·const; 
63 ···std::int64_t·int_value·()·const;63 ···std::int64_t·int_value·()·const;
64 ···string_view·string_value·()·const; 
65 ···char·const*·string_ptr·()·const;64 ···char·const*·string_ptr·()·const;
66 ···int·string_length·()·const;65 ···int·string_length·()·const;
67 ···std::ptrdiff_t·string_offset·()·const;66 ···std::ptrdiff_t·string_offset·()·const;
 67 ···string_view·string_value·()·const;
68 ···void·clear·();68 ···void·clear·();
69 ···void·swap·(bdecode_node&·n);69 ···void·swap·(bdecode_node&·n);
70 ···void·reserve·(int·tokens);70 ···void·reserve·(int·tokens);
71 ···void·switch_underlying_buffer·(char·const*·buf)·noexcept;71 ···void·switch_underlying_buffer·(char·const*·buf)·noexcept;
72 ···bool·has_soft_error·(span<char>·error)·const;72 ···bool·has_soft_error·(span<char>·error)·const;
  
73 ···enum·type_t73 ···enum·type_t
Offset 82, 17 lines modifiedOffset 82, 17 lines modified
82 };82 };
83 [report_issue]83 [report_issue]
84 *****·bdecode_node()·*****84 *****·bdecode_node()·*****
85 bdecode_node·()·=·default;85 bdecode_node·()·=·default;
86 creates·a·default·constructed·node,·it·will·have·the·type·none_t.86 creates·a·default·constructed·node,·it·will·have·the·type·none_t.
87 [report_issue]87 [report_issue]
88 *****·bdecode_node()·operator=()·*****88 *****·bdecode_node()·operator=()·*****
89 bdecode_node&·operator=·(bdecode_node·const&)·&; 
90 bdecode_node·(bdecode_node·const&); 
91 bdecode_node&·operator=·(bdecode_node&&)·&·=·default;89 bdecode_node&·operator=·(bdecode_node&&)·&·=·default;
 90 bdecode_node·(bdecode_node·const&);
 91 bdecode_node&·operator=·(bdecode_node·const&)·&;
92 bdecode_node·(bdecode_node&&)·noexcept;92 bdecode_node·(bdecode_node&&)·noexcept;
93 For·owning·nodes,·the·copy·will·create·a·copy·of·the·tree,·but·the·underlying93 For·owning·nodes,·the·copy·will·create·a·copy·of·the·tree,·but·the·underlying
94 buffer·remains·the·same.94 buffer·remains·the·same.
95 [report_issue]95 [report_issue]
96 *****·type()·*****96 *****·type()·*****
97 type_t·type·()·const·noexcept;97 type_t·type·()·const·noexcept;
98 the·type·of·this·node.·See·type_t.98 the·type·of·this·node.·See·type_t.
Offset 103, 49 lines modifiedOffset 103, 49 lines modified
103 [report_issue]103 [report_issue]
104 *****·non_owning()·*****104 *****·non_owning()·*****
105 bdecode_node·non_owning·()·const;105 bdecode_node·non_owning·()·const;
106 return·a·non-owning·reference·to·this·node.·This·is·useful·to·refer·to·the·root106 return·a·non-owning·reference·to·this·node.·This·is·useful·to·refer·to·the·root
107 node·without·copying·it·in·assignments.107 node·without·copying·it·in·assignments.
108 [report_issue]108 [report_issue]
109 *****·data_section()·data_offset()·*****109 *****·data_section()·data_offset()·*****
110 span<char·const>·data_section·()·const·noexcept; 
111 std::ptrdiff_t·data_offset·()·const·noexcept;110 std::ptrdiff_t·data_offset·()·const·noexcept;
 111 span<char·const>·data_section·()·const·noexcept;
112 returns·the·buffer·and·length·of·the·section·in·the·original·bencoded·buffer112 returns·the·buffer·and·length·of·the·section·in·the·original·bencoded·buffer
113 where·this·node·is·defined.·For·a·dictionary·for·instance,·this·starts·with·d113 where·this·node·is·defined.·For·a·dictionary·for·instance,·this·starts·with·d
114 and·ends·with·e,·and·has·all·the·content·of·the·dictionary·in·between.·the114 and·ends·with·e,·and·has·all·the·content·of·the·dictionary·in·between.·the
115 data_offset()·function·returns·the·byte-offset·to·this·node·in,·starting·from115 data_offset()·function·returns·the·byte-offset·to·this·node·in,·starting·from
116 the·beginning·of·the·buffer·that·was·parsed.116 the·beginning·of·the·buffer·that·was·parsed.
117 [report_issue]117 [report_issue]
118 *****·list_at()·list_int_value_at()·list_string_value_at()·list_size()·*****118 *****·list_int_value_at()·list_size()·list_at()·list_string_value_at()·*****
119 std::int64_t·list_int_value_at·(int·i119 std::int64_t·list_int_value_at·(int·i
120 ······,·std::int64_t·default_val·=·0)·const;120 ······,·std::int64_t·default_val·=·0)·const;
121 bdecode_node·list_at·(int·i)·const; 
122 int·list_size·()·const;121 int·list_size·()·const;
123 string_view·list_string_value_at·(int·i122 string_view·list_string_value_at·(int·i
124 ······,·string_view·default_val·=·string_view())·const;123 ······,·string_view·default_val·=·string_view())·const;
 124 bdecode_node·list_at·(int·i)·const;
125 functions·with·the·list_·prefix·operate·on·lists.·These·functions·are·only125 functions·with·the·list_·prefix·operate·on·lists.·These·functions·are·only
126 valid·if·type()·==·list_t.·list_at()·returns·the·item·in·the·list·at·index·i.·i126 valid·if·type()·==·list_t.·list_at()·returns·the·item·in·the·list·at·index·i.·i
127 may·not·be·greater·than·or·equal·to·the·size·of·the·list.·size()·returns·the127 may·not·be·greater·than·or·equal·to·the·size·of·the·list.·size()·returns·the
Max diff block lines reached; 3879/9797 bytes (39.59%) of diff not shown.
18.6 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Bencoding.html
    
Offset 34, 15 lines modifiedOffset 34, 15 lines modified
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#entry"·id="toc-entry-1">entry</a><ul>35 <li><a·class="reference·internal"·href="#entry"·id="toc-entry-1">entry</a><ul>
36 <li><a·class="reference·internal"·href="#type"·id="toc-entry-2">type()</a></li>36 <li><a·class="reference·internal"·href="#type"·id="toc-entry-2">type()</a></li>
37 <li><a·class="reference·internal"·href="#entry-1"·id="toc-entry-3">entry()</a></li>37 <li><a·class="reference·internal"·href="#entry-1"·id="toc-entry-3">entry()</a></li>
38 <li><a·class="reference·internal"·href="#entry-2"·id="toc-entry-4">entry()</a></li>38 <li><a·class="reference·internal"·href="#entry-2"·id="toc-entry-4">entry()</a></li>
39 <li><a·class="reference·internal"·href="#entry-3"·id="toc-entry-5">entry()</a></li>39 <li><a·class="reference·internal"·href="#entry-3"·id="toc-entry-5">entry()</a></li>
40 <li><a·class="reference·internal"·href="#operator"·id="toc-entry-6">operator=()</a></li>40 <li><a·class="reference·internal"·href="#operator"·id="toc-entry-6">operator=()</a></li>
41 <li><a·class="reference·internal"·href="#integer-preformatted-list-dict-string"·id="toc-entry-7">integer()·preformatted()·list()·dict()·string()</a></li>41 <li><a·class="reference·internal"·href="#string-preformatted-integer-dict-list"·id="toc-entry-7">string()·preformatted()·integer()·dict()·list()</a></li>
42 <li><a·class="reference·internal"·href="#swap"·id="toc-entry-8">swap()</a></li>42 <li><a·class="reference·internal"·href="#swap"·id="toc-entry-8">swap()</a></li>
43 <li><a·class="reference·internal"·href="#operator-1"·id="toc-entry-9">operator[]()</a></li>43 <li><a·class="reference·internal"·href="#operator-1"·id="toc-entry-9">operator[]()</a></li>
44 <li><a·class="reference·internal"·href="#find-key"·id="toc-entry-10">find_key()</a></li>44 <li><a·class="reference·internal"·href="#find-key"·id="toc-entry-10">find_key()</a></li>
45 <li><a·class="reference·internal"·href="#to-string"·id="toc-entry-11">to_string()</a></li>45 <li><a·class="reference·internal"·href="#to-string"·id="toc-entry-11">to_string()</a></li>
46 <li><a·class="reference·internal"·href="#enum-data-type"·id="toc-entry-12">enum·data_type</a></li>46 <li><a·class="reference·internal"·href="#enum-data-type"·id="toc-entry-12">enum·data_type</a></li>
47 </ul>47 </ul>
48 </li>48 </li>
Offset 69, 46 lines modifiedOffset 69, 46 lines modified
69 <p>The·<tt·class="docutils·literal">entry</tt>·class·represents·one·node·in·a·bencoded·hierarchy.·It·works·as·a69 <p>The·<tt·class="docutils·literal">entry</tt>·class·represents·one·node·in·a·bencoded·hierarchy.·It·works·as·a
70 variant·type,·it·can·be·either·a·list,·a·dictionary·(<tt·class="docutils·literal"><span·class="pre">std::map</span></tt>),·an·integer70 variant·type,·it·can·be·either·a·list,·a·dictionary·(<tt·class="docutils·literal"><span·class="pre">std::map</span></tt>),·an·integer
71 or·a·string.</p>71 or·a·string.</p>
72 <pre·class="literal-block">72 <pre·class="literal-block">
73 class·entry73 class·entry
74 {74 {
75 ···data_type·<strong>type</strong>·()·const;75 ···data_type·<strong>type</strong>·()·const;
76 ···<strong>entry</strong>·(span&lt;char·const&gt;);76 ···<strong>entry</strong>·(preformatted_type);
77 ···<strong>entry</strong>·(list_type);77 ···<strong>entry</strong>·(list_type);
78 ···<strong>entry</strong>·(dictionary_type);78 ···<strong>entry</strong>·(dictionary_type);
 79 ···<strong>entry</strong>·(span&lt;char·const&gt;);
79 ···<strong>entry</strong>·(integer_type);80 ···<strong>entry</strong>·(integer_type);
80 ···<strong>entry</strong>·(preformatted_type); 
81 ···<strong>entry</strong>·(U·v);81 ···<strong>entry</strong>·(U·v);
82 ···<strong>entry</strong>·(data_type·t);82 ···<strong>entry</strong>·(data_type·t);
83 ···<strong>entry</strong>·(bdecode_node·const&amp;·n);83 ···<strong>entry</strong>·(bdecode_node·const&amp;·n);
84 ···entry&amp;·<strong>operator=</strong>·(span&lt;char·const&gt;)·&amp;; 
85 ···entry&amp;·<strong>operator=</strong>·(entry·const&amp;)·&amp;; 
86 ···entry&amp;·<strong>operator=</strong>·(preformatted_type)·&amp;;84 ···entry&amp;·<strong>operator=</strong>·(preformatted_type)·&amp;;
 85 ···entry&amp;·<strong>operator=</strong>·(bdecode_node·const&amp;)·&amp;;
87 ···entry&amp;·<strong>operator=</strong>·(integer_type)·&amp;;86 ···entry&amp;·<strong>operator=</strong>·(integer_type)·&amp;;
88 ···entry&amp;·<strong>operator=</strong>·(list_type)·&amp;;87 ···entry&amp;·<strong>operator=</strong>·(list_type)·&amp;;
89 ···entry&amp;·<strong>operator=</strong>·(dictionary_type)·&amp;;88 ···entry&amp;·<strong>operator=</strong>·(dictionary_type)·&amp;;
90 ···entry&amp;·<strong>operator=</strong>·(bdecode_node·const&amp;)·&amp;; 
91 ···entry&amp;·<strong>operator=</strong>·(entry&amp;&amp;)·&amp;·noexcept;89 ···entry&amp;·<strong>operator=</strong>·(entry&amp;&amp;)·&amp;·noexcept;
 90 ···entry&amp;·<strong>operator=</strong>·(span&lt;char·const&gt;)·&amp;;
 91 ···entry&amp;·<strong>operator=</strong>·(entry·const&amp;)·&amp;;
92 ···entry&amp;·<strong>operator=</strong>·(U·v)·&amp;;92 ···entry&amp;·<strong>operator=</strong>·(U·v)·&amp;;
93 ···preformatted_type·const&amp;·<strong>preformatted</strong>·()·const;93 ···preformatted_type·const&amp;·<strong>preformatted</strong>·()·const;
94 ···preformatted_type&amp;·<strong>preformatted</strong>·(); 
95 ···list_type&amp;·<strong>list</strong>·(); 
96 ···integer_type&amp;·<strong>integer</strong>·();94 ···integer_type&amp;·<strong>integer</strong>·();
97 ···dictionary_type&amp;·<strong>dict</strong>·();95 ···dictionary_type&amp;·<strong>dict</strong>·();
98 ···string_type&amp;·<strong>string</strong>·(); 
99 ···dictionary_type·const&amp;·<strong>dict</strong>·()·const; 
100 ···list_type·const&amp;·<strong>list</strong>·()·const; 
101 ···integer_type·const&amp;·<strong>integer</strong>·()·const;96 ···integer_type·const&amp;·<strong>integer</strong>·()·const;
 97 ···dictionary_type·const&amp;·<strong>dict</strong>·()·const;
 98 ···preformatted_type&amp;·<strong>preformatted</strong>·();
 99 ···string_type&amp;·<strong>string</strong>·();
102 ···string_type·const&amp;·<strong>string</strong>·()·const;100 ···string_type·const&amp;·<strong>string</strong>·()·const;
 101 ···list_type&amp;·<strong>list</strong>·();
 102 ···list_type·const&amp;·<strong>list</strong>·()·const;
103 ···void·<strong>swap</strong>·(entry&amp;·e);103 ···void·<strong>swap</strong>·(entry&amp;·e);
104 ···entry&amp;·<strong>operator[]</strong>·(string_view·key); 
105 ···entry·const&amp;·<strong>operator[]</strong>·(string_view·key)·const;104 ···entry·const&amp;·<strong>operator[]</strong>·(string_view·key)·const;
106 ···entry*·<strong>find_key</strong>·(string_view·key);105 ···entry&amp;·<strong>operator[]</strong>·(string_view·key);
107 ···entry·const*·<strong>find_key</strong>·(string_view·key)·const;106 ···entry·const*·<strong>find_key</strong>·(string_view·key)·const;
 107 ···entry*·<strong>find_key</strong>·(string_view·key);
108 ···std::string·<strong>to_string</strong>·(bool·single_line·=·false)·const;108 ···std::string·<strong>to_string</strong>·(bool·single_line·=·false)·const;
  
109 ···enum·data_type109 ···enum·data_type
110 ···{110 ···{
111 ······int_t,111 ······int_t,
112 ······string_t,112 ······string_t,
113 ······list_t,113 ······list_t,
Offset 124, 19 lines modifiedOffset 124, 19 lines modified
124 data_type·<strong>type</strong>·()·const;124 data_type·<strong>type</strong>·()·const;
125 </pre>125 </pre>
126 <p>returns·the·concrete·type·of·the·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a></p>126 <p>returns·the·concrete·type·of·the·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a></p>
127 <a·name="entry()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Bentry%28%29%5D&labels=documentation&body=Documentation+under+heading+%22entry%3A%3A%5Bentry%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>127 <a·name="entry()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Bentry%28%29%5D&labels=documentation&body=Documentation+under+heading+%22entry%3A%3A%5Bentry%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
128 <div·class="section"·id="entry-1">128 <div·class="section"·id="entry-1">
129 <h2>entry()</h2>129 <h2>entry()</h2>
130 <pre·class="literal-block">130 <pre·class="literal-block">
131 <strong>entry</strong>·(span&lt;char·const&gt;);131 <strong>entry</strong>·(preformatted_type);
132 <strong>entry</strong>·(list_type);132 <strong>entry</strong>·(list_type);
133 <strong>entry</strong>·(dictionary_type);133 <strong>entry</strong>·(dictionary_type);
 134 <strong>entry</strong>·(span&lt;char·const&gt;);
134 <strong>entry</strong>·(integer_type);135 <strong>entry</strong>·(integer_type);
135 <strong>entry</strong>·(preformatted_type); 
136 </pre>136 </pre>
137 <p>constructors·directly·from·a·specific·type.137 <p>constructors·directly·from·a·specific·type.
138 The·content·of·the·argument·is·copied·into·the138 The·content·of·the·argument·is·copied·into·the
139 newly·constructed·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a></p>139 newly·constructed·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a></p>
140 <a·name="entry()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Bentry%28%29%5D&labels=documentation&body=Documentation+under+heading+%22entry%3A%3A%5Bentry%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>140 <a·name="entry()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Bentry%28%29%5D&labels=documentation&body=Documentation+under+heading+%22entry%3A%3A%5Bentry%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
141 <div·class="section"·id="entry-2">141 <div·class="section"·id="entry-2">
142 <h2>entry()</h2>142 <h2>entry()</h2>
Offset 152, 43 lines modifiedOffset 152, 43 lines modified
152 <strong>entry</strong>·(bdecode_node·const&amp;·n);152 <strong>entry</strong>·(bdecode_node·const&amp;·n);
153 </pre>153 </pre>
154 <p>construct·from·<a·class="reference·external"·href="reference-Bdecoding.html#bdecode_node">bdecode_node</a>·parsed·form·(see·<a·class="reference·external"·href="reference-Bdecoding.html#bdecode()">bdecode()</a>)</p>154 <p>construct·from·<a·class="reference·external"·href="reference-Bdecoding.html#bdecode_node">bdecode_node</a>·parsed·form·(see·<a·class="reference·external"·href="reference-Bdecoding.html#bdecode()">bdecode()</a>)</p>
155 <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Boperator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22entry%3A%3A%5Boperator%3D%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>155 <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Boperator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22entry%3A%3A%5Boperator%3D%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
156 <div·class="section"·id="operator">156 <div·class="section"·id="operator">
157 <h2>operator=()</h2>157 <h2>operator=()</h2>
158 <pre·class="literal-block">158 <pre·class="literal-block">
159 entry&amp;·<strong>operator=</strong>·(span&lt;char·const&gt;)·&amp;; 
160 entry&amp;·<strong>operator=</strong>·(entry·const&amp;)·&amp;; 
161 entry&amp;·<strong>operator=</strong>·(preformatted_type)·&amp;;159 entry&amp;·<strong>operator=</strong>·(preformatted_type)·&amp;;
 160 entry&amp;·<strong>operator=</strong>·(bdecode_node·const&amp;)·&amp;;
162 entry&amp;·<strong>operator=</strong>·(integer_type)·&amp;;161 entry&amp;·<strong>operator=</strong>·(integer_type)·&amp;;
163 entry&amp;·<strong>operator=</strong>·(list_type)·&amp;;162 entry&amp;·<strong>operator=</strong>·(list_type)·&amp;;
164 entry&amp;·<strong>operator=</strong>·(dictionary_type)·&amp;;163 entry&amp;·<strong>operator=</strong>·(dictionary_type)·&amp;;
165 entry&amp;·<strong>operator=</strong>·(bdecode_node·const&amp;)·&amp;; 
166 entry&amp;·<strong>operator=</strong>·(entry&amp;&amp;)·&amp;·noexcept;164 entry&amp;·<strong>operator=</strong>·(entry&amp;&amp;)·&amp;·noexcept;
 165 entry&amp;·<strong>operator=</strong>·(span&lt;char·const&gt;)·&amp;;
 166 entry&amp;·<strong>operator=</strong>·(entry·const&amp;)·&amp;;
167 </pre>167 </pre>
168 <p>copies·the·structure·of·the·right·hand·side·into·this168 <p>copies·the·structure·of·the·right·hand·side·into·this
169 <a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>.</p>169 <a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>.</p>
170 <a·name="integer()"></a>170 <a·name="string()"></a>
171 <a·name="preformatted()"></a>171 <a·name="preformatted()"></a>
172 <a·name="list()"></a>172 <a·name="integer()"></a>
173 <a·name="dict()"></a>173 <a·name="dict()"></a>
174 <a·name="string()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Binteger%28%29+preformatted%28%29+list%28%29+dict%28%29+string%28%29%5D&labels=documentation&body=Documentation+under+heading+%22entry[·...·truncated·by·diffoscope;·len:·70,·SHA:·3e9be54a759efb9305b19798d9927d23adc3a122236487f300c00c049332c3c1·...·]%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>174 <a·name="list()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Bstring%28%29+preformatted%28%29+integer%28%29+dict%28%29+list%28%29%5D&labels=documentation&body=Documentation+under+heading+%22entry%3[·...·truncated·by·diffoscope;·len:·68,·SHA:·469006df4b841f029f372105bb9de9b0f106a70d3de8da6fc1de57f9f6c17780·...·]%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
175 <div·class="section"·id="integer-preformatted-list-dict-string">175 <div·class="section"·id="string-preformatted-integer-dict-list">
176 <h2>integer()·preformatted()·list()·dict()·string()</h2>176 <h2>string()·preformatted()·integer()·dict()·list()</h2>
177 <pre·class="literal-block">177 <pre·class="literal-block">
178 preformatted_type·const&amp;·<strong>preformatted</strong>·()·const;178 preformatted_type·const&amp;·<strong>preformatted</strong>·()·const;
179 preformatted_type&amp;·<strong>preformatted</strong>·(); 
180 list_type&amp;·<strong>list</strong>·(); 
181 integer_type&amp;·<strong>integer</strong>·();179 integer_type&amp;·<strong>integer</strong>·();
Max diff block lines reached; 3895/12801 bytes (30.43%) of diff not shown.
5.94 KB
html2text {}
    
Offset 4, 15 lines modifiedOffset 4, 15 lines modified
4 Table·of·contents4 Table·of·contents
5 ····*·entry5 ····*·entry
6 ··········o·type()6 ··········o·type()
7 ··········o·entry()7 ··········o·entry()
8 ··········o·entry()8 ··········o·entry()
9 ··········o·entry()9 ··········o·entry()
10 ··········o·operator=()10 ··········o·operator=()
11 ··········o·integer()_preformatted()_list()_dict()_string()11 ··········o·string()_preformatted()_integer()_dict()_list()
12 ··········o·swap()12 ··········o·swap()
13 ··········o·operator[]()13 ··········o·operator[]()
14 ··········o·find_key()14 ··········o·find_key()
15 ··········o·to_string()15 ··········o·to_string()
16 ··········o·enum_data_type16 ··········o·enum_data_type
17 ····*·bencode()17 ····*·bencode()
18 ····*·operator<<()18 ····*·operator<<()
Offset 34, 46 lines modifiedOffset 34, 46 lines modified
34 Declared·in·"libtorrent/entry.hpp"34 Declared·in·"libtorrent/entry.hpp"
35 The·entry·class·represents·one·node·in·a·bencoded·hierarchy.·It·works·as·a35 The·entry·class·represents·one·node·in·a·bencoded·hierarchy.·It·works·as·a
36 variant·type,·it·can·be·either·a·list,·a·dictionary·(std::map),·an·integer·or·a36 variant·type,·it·can·be·either·a·list,·a·dictionary·(std::map),·an·integer·or·a
37 string.37 string.
38 class·entry38 class·entry
39 {39 {
40 ···data_type·type·()·const;40 ···data_type·type·()·const;
41 ···entry·(span<char·const>);41 ···entry·(preformatted_type);
42 ···entry·(list_type);42 ···entry·(list_type);
43 ···entry·(dictionary_type);43 ···entry·(dictionary_type);
 44 ···entry·(span<char·const>);
44 ···entry·(integer_type);45 ···entry·(integer_type);
45 ···entry·(preformatted_type); 
46 ···entry·(U·v);46 ···entry·(U·v);
47 ···entry·(data_type·t);47 ···entry·(data_type·t);
48 ···entry·(bdecode_node·const&·n);48 ···entry·(bdecode_node·const&·n);
49 ···entry&·operator=·(span<char·const>)·&; 
50 ···entry&·operator=·(entry·const&)·&; 
51 ···entry&·operator=·(preformatted_type)·&;49 ···entry&·operator=·(preformatted_type)·&;
 50 ···entry&·operator=·(bdecode_node·const&)·&;
52 ···entry&·operator=·(integer_type)·&;51 ···entry&·operator=·(integer_type)·&;
53 ···entry&·operator=·(list_type)·&;52 ···entry&·operator=·(list_type)·&;
54 ···entry&·operator=·(dictionary_type)·&;53 ···entry&·operator=·(dictionary_type)·&;
55 ···entry&·operator=·(bdecode_node·const&)·&; 
56 ···entry&·operator=·(entry&&)·&·noexcept;54 ···entry&·operator=·(entry&&)·&·noexcept;
 55 ···entry&·operator=·(span<char·const>)·&;
 56 ···entry&·operator=·(entry·const&)·&;
57 ···entry&·operator=·(U·v)·&;57 ···entry&·operator=·(U·v)·&;
58 ···preformatted_type·const&·preformatted·()·const;58 ···preformatted_type·const&·preformatted·()·const;
59 ···preformatted_type&·preformatted·(); 
60 ···list_type&·list·(); 
61 ···integer_type&·integer·();59 ···integer_type&·integer·();
62 ···dictionary_type&·dict·();60 ···dictionary_type&·dict·();
63 ···string_type&·string·(); 
64 ···dictionary_type·const&·dict·()·const; 
65 ···list_type·const&·list·()·const; 
66 ···integer_type·const&·integer·()·const;61 ···integer_type·const&·integer·()·const;
 62 ···dictionary_type·const&·dict·()·const;
 63 ···preformatted_type&·preformatted·();
 64 ···string_type&·string·();
67 ···string_type·const&·string·()·const;65 ···string_type·const&·string·()·const;
 66 ···list_type&·list·();
 67 ···list_type·const&·list·()·const;
68 ···void·swap·(entry&·e);68 ···void·swap·(entry&·e);
69 ···entry&·operator[]·(string_view·key); 
70 ···entry·const&·operator[]·(string_view·key)·const;69 ···entry·const&·operator[]·(string_view·key)·const;
71 ···entry*·find_key·(string_view·key);70 ···entry&·operator[]·(string_view·key);
72 ···entry·const*·find_key·(string_view·key)·const;71 ···entry·const*·find_key·(string_view·key)·const;
 72 ···entry*·find_key·(string_view·key);
73 ···std::string·to_string·(bool·single_line·=·false)·const;73 ···std::string·to_string·(bool·single_line·=·false)·const;
  
74 ···enum·data_type74 ···enum·data_type
75 ···{75 ···{
76 ······int_t,76 ······int_t,
77 ······string_t,77 ······string_t,
78 ······list_t,78 ······list_t,
Offset 84, 52 lines modifiedOffset 84, 52 lines modified
84 };84 };
85 [report_issue]85 [report_issue]
86 *****·type()·*****86 *****·type()·*****
87 data_type·type·()·const;87 data_type·type·()·const;
88 returns·the·concrete·type·of·the·entry88 returns·the·concrete·type·of·the·entry
89 [report_issue]89 [report_issue]
90 *****·entry()·*****90 *****·entry()·*****
91 entry·(span<char·const>);91 entry·(preformatted_type);
92 entry·(list_type);92 entry·(list_type);
93 entry·(dictionary_type);93 entry·(dictionary_type);
 94 entry·(span<char·const>);
94 entry·(integer_type);95 entry·(integer_type);
95 entry·(preformatted_type); 
96 constructors·directly·from·a·specific·type.·The·content·of·the·argument·is96 constructors·directly·from·a·specific·type.·The·content·of·the·argument·is
97 copied·into·the·newly·constructed·entry97 copied·into·the·newly·constructed·entry
98 [report_issue]98 [report_issue]
99 *****·entry()·*****99 *****·entry()·*****
100 entry·(data_type·t);100 entry·(data_type·t);
101 construct·an·empty·entry·of·the·specified·type.·see·data_type·enum.101 construct·an·empty·entry·of·the·specified·type.·see·data_type·enum.
102 [report_issue]102 [report_issue]
103 *****·entry()·*****103 *****·entry()·*****
104 entry·(bdecode_node·const&·n);104 entry·(bdecode_node·const&·n);
105 construct·from·bdecode_node·parsed·form·(see·bdecode())105 construct·from·bdecode_node·parsed·form·(see·bdecode())
106 [report_issue]106 [report_issue]
107 *****·operator=()·*****107 *****·operator=()·*****
108 entry&·operator=·(span<char·const>)·&; 
109 entry&·operator=·(entry·const&)·&; 
110 entry&·operator=·(preformatted_type)·&;108 entry&·operator=·(preformatted_type)·&;
 109 entry&·operator=·(bdecode_node·const&)·&;
111 entry&·operator=·(integer_type)·&;110 entry&·operator=·(integer_type)·&;
112 entry&·operator=·(list_type)·&;111 entry&·operator=·(list_type)·&;
113 entry&·operator=·(dictionary_type)·&;112 entry&·operator=·(dictionary_type)·&;
114 entry&·operator=·(bdecode_node·const&)·&; 
115 entry&·operator=·(entry&&)·&·noexcept;113 entry&·operator=·(entry&&)·&·noexcept;
 114 entry&·operator=·(span<char·const>)·&;
 115 entry&·operator=·(entry·const&)·&;
116 copies·the·structure·of·the·right·hand·side·into·this·entry.116 copies·the·structure·of·the·right·hand·side·into·this·entry.
117 [report_issue]117 [report_issue]
118 *****·integer()·preformatted()·list()·dict()·string()·*****118 *****·string()·preformatted()·integer()·dict()·list()·*****
119 preformatted_type·const&·preformatted·()·const;119 preformatted_type·const&·preformatted·()·const;
120 preformatted_type&·preformatted·(); 
121 list_type&·list·(); 
122 integer_type&·integer·();120 integer_type&·integer·();
123 dictionary_type&·dict·();121 dictionary_type&·dict·();
124 string_type&·string·(); 
125 dictionary_type·const&·dict·()·const; 
126 list_type·const&·list·()·const; 
127 integer_type·const&·integer·()·const;122 integer_type·const&·integer·()·const;
 123 dictionary_type·const&·dict·()·const;
 124 preformatted_type&·preformatted·();
 125 string_type&·string·();
128 string_type·const&·string·()·const;126 string_type·const&·string·()·const;
 127 list_type&·list·();
 128 list_type·const&·list·()·const;
Max diff block lines reached; 1674/6055 bytes (27.65%) of diff not shown.
66.1 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Core.html
    
Offset 28, 88 lines modifiedOffset 28, 52 lines modified
28 <td>2.0.11</td></tr>28 <td>2.0.11</td></tr>
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#peer-request"·id="toc-entry-1">peer_request</a><ul>35 <li><a·class="reference·internal"·href="#piece-block"·id="toc-entry-1">piece_block</a></li>
 36 <li><a·class="reference·internal"·href="#info-hash-t"·id="toc-entry-2">info_hash_t</a><ul>
 37 <li><a·class="reference·internal"·href="#info-hash-t-1"·id="toc-entry-3">info_hash_t()</a></li>
 38 <li><a·class="reference·internal"·href="#has-v1-has-has-v2"·id="toc-entry-4">has_v1()·has()·has_v2()</a></li>
36 <li><a·class="reference·internal"·href="#operator"·id="toc-entry-2">operator==()</a></li>39 <li><a·class="reference·internal"·href="#get"·id="toc-entry-5">get()</a></li>
 40 <li><a·class="reference·internal"·href="#get-best"·id="toc-entry-6">get_best()</a></li>
 41 <li><a·class="reference·internal"·href="#for-each"·id="toc-entry-7">for_each()</a></li>
37 </ul>42 </ul>
38 </li>43 </li>
39 <li><a·class="reference·internal"·href="#piece-block"·id="toc-entry-3">piece_block</a></li> 
40 <li><a·class="reference·internal"·href="#peer-info"·id="toc-entry-4">peer_info</a><ul>44 <li><a·class="reference·internal"·href="#peer-info"·id="toc-entry-8">peer_info</a><ul>
41 <li><a·class="reference·internal"·href="#i2p-destination"·id="toc-entry-5">i2p_destination()</a></li>45 <li><a·class="reference·internal"·href="#i2p-destination"·id="toc-entry-9">i2p_destination()</a></li>
42 </ul>46 </ul>
43 </li>47 </li>
44 <li><a·class="reference·internal"·href="#info-hash-t"·id="toc-entry-6">info_hash_t</a><ul>48 <li><a·class="reference·internal"·href="#peer-request"·id="toc-entry-10">peer_request</a><ul>
45 <li><a·class="reference·internal"·href="#info-hash-t-1"·id="toc-entry-7">info_hash_t()</a></li> 
46 <li><a·class="reference·internal"·href="#has-v2-has-v1-has"·id="toc-entry-8">has_v2()·has_v1()·has()</a></li> 
47 <li><a·class="reference·internal"·href="#get"·id="toc-entry-9">get()</a></li>49 <li><a·class="reference·internal"·href="#operator"·id="toc-entry-11">operator==()</a></li>
48 <li><a·class="reference·internal"·href="#get-best"·id="toc-entry-10">get_best()</a></li> 
49 <li><a·class="reference·internal"·href="#for-each"·id="toc-entry-11">for_each()</a></li> 
50 </ul>50 </ul>
51 </li>51 </li>
52 <li><a·class="reference·internal"·href="#load-torrent-buffer-load-torrent-file-load-torrent-parsed"·id="toc-entry-12">load_torrent_buffer()·load_torrent_file()·load_torrent_parsed()</a></li> 
53 <li><a·class="reference·internal"·href="#truncate-files"·id="toc-entry-13">truncate_files()</a></li> 
54 <li><a·class="reference·internal"·href="#make-magnet-uri"·id="toc-entry-14">make_magnet_uri()</a></li> 
55 <li><a·class="reference·internal"·href="#parse-magnet-uri"·id="toc-entry-15">parse_magnet_uri()</a></li> 
56 <li><a·class="reference·internal"·href="#torrent-peer-equal"·id="toc-entry-16">torrent_peer_equal()</a></li>52 <li><a·class="reference·internal"·href="#torrent-peer-equal"·id="toc-entry-12">torrent_peer_equal()</a></li>
 53 <li><a·class="reference·internal"·href="#make-magnet-uri"·id="toc-entry-13">make_magnet_uri()</a></li>
 54 <li><a·class="reference·internal"·href="#parse-magnet-uri"·id="toc-entry-14">parse_magnet_uri()</a></li>
 55 <li><a·class="reference·internal"·href="#truncate-files"·id="toc-entry-15">truncate_files()</a></li>
57 <li><a·class="reference·internal"·href="#version"·id="toc-entry-17">version()</a></li>56 <li><a·class="reference·internal"·href="#version"·id="toc-entry-16">version()</a></li>
 57 <li><a·class="reference·internal"·href="#load-torrent-parsed-load-torrent-file-load-torrent-buffer"·id="toc-entry-17">load_torrent_parsed()·load_torrent_file()·load_torrent_buffer()</a></li>
58 <li><a·class="reference·internal"·href="#enum-event-t"·id="toc-entry-18">enum·event_t</a></li> 
59 <li><a·class="reference·internal"·href="#enum-portmap-transport"·id="toc-entry-19">enum·portmap_transport</a></li> 
60 <li><a·class="reference·internal"·href="#enum-portmap-protocol"·id="toc-entry-20">enum·portmap_protocol</a></li> 
61 <li><a·class="reference·internal"·href="#enum-protocol-version"·id="toc-entry-21">enum·protocol_version</a></li>58 <li><a·class="reference·internal"·href="#enum-protocol-version"·id="toc-entry-18">enum·protocol_version</a></li>
62 <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-22">enum·socket_type_t</a></li>59 <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-19">enum·socket_type_t</a></li>
 60 <li><a·class="reference·internal"·href="#enum-portmap-transport"·id="toc-entry-20">enum·portmap_transport</a></li>
 61 <li><a·class="reference·internal"·href="#enum-portmap-protocol"·id="toc-entry-21">enum·portmap_protocol</a></li>
 62 <li><a·class="reference·internal"·href="#enum-event-t"·id="toc-entry-22">enum·event_t</a></li>
63 <li><a·class="reference·internal"·href="#enum-connection-type"·id="toc-entry-23">enum·connection_type</a></li>63 <li><a·class="reference·internal"·href="#enum-connection-type"·id="toc-entry-23">enum·connection_type</a></li>
64 <li><a·class="reference·internal"·href="#torrent-flags-t"·id="toc-entry-24">torrent_flags_t</a></li>64 <li><a·class="reference·internal"·href="#torrent-flags-t"·id="toc-entry-24">torrent_flags_t</a></li>
65 <li><a·class="reference·internal"·href="#int"·id="toc-entry-25">int</a></li> 
66 <li><a·class="reference·internal"·href="#pex-flags-t"·id="toc-entry-26">pex_flags_t</a></li>65 <li><a·class="reference·internal"·href="#pex-flags-t"·id="toc-entry-25">pex_flags_t</a></li>
67 <li><a·class="reference·internal"·href="#char-const"·id="toc-entry-27">char·const*</a></li> 
68 <li><a·class="reference·internal"·href="#std-uint64-t"·id="toc-entry-28">std::uint64_t</a></li> 
69 <li><a·class="reference·internal"·href="#download-priority-t"·id="toc-entry-29">download_priority_t</a></li>66 <li><a·class="reference·internal"·href="#download-priority-t"·id="toc-entry-26">download_priority_t</a></li>
 67 <li><a·class="reference·internal"·href="#int"·id="toc-entry-27">int</a></li>
 68 <li><a·class="reference·internal"·href="#char-const"·id="toc-entry-28">char·const*</a></li>
 69 <li><a·class="reference·internal"·href="#std-uint64-t"·id="toc-entry-29">std::uint64_t</a></li>
70 </ul>70 </ul>
71 </div>71 </div>
72 <a·name="peer_request"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+peer_request&labels=documentation&body=Documentation+under+heading+%22class+peer_request%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="peer-request"> 
73 <h1>peer_request</h1> 
74 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/peer_request.hpp">libtorrent/peer_request.hpp</a>&quot;</p> 
75 <p>represents·a·byte·range·within·a·piece.·Internally·this·is·is·used·for 
76 incoming·piece·requests.</p> 
77 <pre·class="literal-block"> 
78 struct·peer_request 
79 { 
80 ···bool·<strong>operator==</strong>·(peer_request·const&amp;·r)·const; 
  
81 ···piece_index_t·piece; 
82 ···int·start; 
83 ···int·length; 
84 }; 
85 </pre> 
86 <a·name="operator==()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_request%3A%3A%5Boperator%3D%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22peer_request%3A%3A%5Boperator%3D%3D%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="operator"> 
87 <h2>operator==()</h2> 
88 <pre·class="literal-block"> 
89 bool·<strong>operator==</strong>·(peer_request·const&amp;·r)·const; 
90 </pre> 
91 <p>returns·true·if·the·right·hand·side·<a·class="reference·external"·href="reference-Core.html#peer_request">peer_request</a>·refers·to·the·same 
92 range·as·this·does.</p> 
93 <a·name="piece"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_request%3A%3A%5Bpiece%5D&labels=documentation&body=Documentation+under+heading+%22peer_request%3A%3A%5Bpiece%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> 
94 <dt>piece</dt> 
95 <dd>The·index·of·the·piece·in·which·the·range·starts.</dd> 
96 </dl> 
97 <a·name="start"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_request%3A%3A%5Bstart%5D&labels=documentation&body=Documentation+under+heading+%22peer_request%3A%3A%5Bstart%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> 
98 <dt>start</dt> 
99 <dd>The·byte·offset·within·that·piece·where·the·range·starts.</dd> 
100 </dl> 
101 <a·name="length"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_request%3A%3A%5Blength%5D&labels=documentation&body=Documentation+under+heading+%22peer_request%3A%3A%5Blength%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> 
102 <dt>length</dt> 
103 <dd>The·size·of·the·range,·in·bytes.</dd> 
104 </dl> 
105 <a·name="piece_block"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+piece_block&labels=documentation&body=Documentation+under+heading+%22class+piece_block%22+could+be+improved">report·issue</a>]</span></div>72 <a·name="piece_block"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+piece_block&labels=documentation&body=Documentation+under+heading+%22class+piece_block%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="piece-block">
106 </div> 
107 <div·class="section"·id="piece-block"> 
108 <h1>piece_block</h1>73 <h1>piece_block</h1>
109 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/piece_block.hpp">libtorrent/piece_block.hpp</a>&quot;</p>74 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/piece_block.hpp">libtorrent/piece_block.hpp</a>&quot;</p>
110 <pre·class="literal-block">75 <pre·class="literal-block">
111 struct·piece_block76 struct·piece_block
112 {77 {
113 ···<strong>piece_block</strong>·(piece_index_t·p_index,·int·b_index);78 ···<strong>piece_block</strong>·(piece_index_t·p_index,·int·b_index);
114 ···<strong>piece_block</strong>·()·=·default;79 ···<strong>piece_block</strong>·()·=·default;
Offset 118, 15 lines modifiedOffset 82, 100 lines modified
118 ···bool·<strong>operator!=</strong>·(piece_block·const&amp;·b)·const;82 ···bool·<strong>operator!=</strong>·(piece_block·const&amp;·b)·const;
  
119 ···static·const·piece_block·invalid;83 ···static·const·piece_block·invalid;
120 ···piece_index_t·piece_index·{0};84 ···piece_index_t·piece_index·{0};
121 ···int·<strong>block_index</strong>··=·0;85 ···int·<strong>block_index</strong>··=·0;
122 };86 };
123 </pre>87 </pre>
 88 <a·name="info_hash_t"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+info_hash_t&labels=documentation&body=Documentation+under+heading+%22class+info_hash_t%22+could+be+improved">report·issue</a>]</span></div>
 89 <div·class="section"·id="info-hash-t">
 90 <h1>info_hash_t</h1>
 91 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/info_hash.hpp">libtorrent/info_hash.hpp</a>&quot;</p>
 92 <p>class·holding·the·info-hash·of·a·torrent.·It·can·hold·a·v1·info-hash
 93 (SHA-1)·or·a·v2·info-hash·(SHA-256)·or·both.</p>
 94 <div·class="admonition·note">
 95 <p·class="first·admonition-title">Note</p>
 96 <p·class="last">If·<tt·class="docutils·literal">has_v2()</tt>·is·false·then·the·v1·hash·might·actually·be·a·truncated
 97 v2·hash</p>
 98 </div>
 99 <pre·class="literal-block">
 100 struct·info_hash_t
 101 {
 102 ···explicit·<strong>info_hash_t</strong>·(sha256_hash·h2)·noexcept;
 103 ···<strong>info_hash_t</strong>·()·noexcept·=·default;
Max diff block lines reached; 34066/49438 bytes (68.91%) of diff not shown.
17.7 KB
html2text {}
    
Offset 1, 67 lines modifiedOffset 1, 40 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·peer_request 
6 ··········o·operator==() 
7 ····*·piece_block5 ····*·piece_block
8 ····*·peer_info 
9 ··········o·i2p_destination() 
10 ····*·info_hash_t6 ····*·info_hash_t
11 ··········o·info_hash_t()7 ··········o·info_hash_t()
12 ··········o·has_v2()_has_v1()_has()8 ··········o·has_v1()_has()_has_v2()
13 ··········o·get()9 ··········o·get()
14 ··········o·get_best()10 ··········o·get_best()
15 ··········o·for_each()11 ··········o·for_each()
16 ····*·load_torrent_buffer()_load_torrent_file()_load_torrent_parsed() 
17 ····*·truncate_files()12 ····*·peer_info
 13 ··········o·i2p_destination()
 14 ····*·peer_request
 15 ··········o·operator==()
 16 ····*·torrent_peer_equal()
18 ····*·make_magnet_uri()17 ····*·make_magnet_uri()
19 ····*·parse_magnet_uri()18 ····*·parse_magnet_uri()
20 ····*·torrent_peer_equal()19 ····*·truncate_files()
21 ····*·version()20 ····*·version()
 21 ····*·load_torrent_parsed()_load_torrent_file()_load_torrent_buffer()
22 ····*·enum_event_t 
23 ····*·enum_portmap_transport 
24 ····*·enum_portmap_protocol 
25 ····*·enum_protocol_version22 ····*·enum_protocol_version
26 ····*·enum_socket_type_t23 ····*·enum_socket_type_t
 24 ····*·enum_portmap_transport
 25 ····*·enum_portmap_protocol
 26 ····*·enum_event_t
27 ····*·enum_connection_type27 ····*·enum_connection_type
28 ····*·torrent_flags_t28 ····*·torrent_flags_t
29 ····*·int 
30 ····*·pex_flags_t29 ····*·pex_flags_t
 30 ····*·download_priority_t
 31 ····*·int
31 ····*·char_const*32 ····*·char_const*
32 ····*·std::uint64_t33 ····*·std::uint64_t
33 ····*·download_priority_t 
34 [report_issue] 
35 ******·peer_request·****** 
36 Declared·in·"libtorrent/peer_request.hpp" 
37 represents·a·byte·range·within·a·piece.·Internally·this·is·is·used·for·incoming 
38 piece·requests. 
39 struct·peer_request 
40 { 
41 ···bool·operator==·(peer_request·const&·r)·const; 
  
42 ···piece_index_t·piece; 
43 ···int·start; 
44 ···int·length; 
45 }; 
46 [report_issue] 
47 *****·operator==()·***** 
48 bool·operator==·(peer_request·const&·r)·const; 
49 returns·true·if·the·right·hand·side·peer_request·refers·to·the·same·range·as 
50 this·does. 
51 [report_issue] 
52 ··piece 
53 ······The·index·of·the·piece·in·which·the·range·starts. 
54 [report_issue] 
55 ··start 
56 ······The·byte·offset·within·that·piece·where·the·range·starts. 
57 [report_issue] 
58 ··length 
59 ······The·size·of·the·range,·in·bytes. 
60 [report_issue]34 [report_issue]
61 ******·piece_block·******35 ******·piece_block·******
62 Declared·in·"libtorrent/piece_block.hpp"36 Declared·in·"libtorrent/piece_block.hpp"
63 struct·piece_block37 struct·piece_block
64 {38 {
65 ···piece_block·(piece_index_t·p_index,·int·b_index);39 ···piece_block·(piece_index_t·p_index,·int·b_index);
66 ···piece_block·()·=·default;40 ···piece_block·()·=·default;
Offset 70, 14 lines modifiedOffset 43, 73 lines modified
70 ···bool·operator!=·(piece_block·const&·b)·const;43 ···bool·operator!=·(piece_block·const&·b)·const;
  
71 ···static·const·piece_block·invalid;44 ···static·const·piece_block·invalid;
72 ···piece_index_t·piece_index·{0};45 ···piece_index_t·piece_index·{0};
73 ···int·block_index··=·0;46 ···int·block_index··=·0;
74 };47 };
75 [report_issue]48 [report_issue]
 49 ******·info_hash_t·******
 50 Declared·in·"libtorrent/info_hash.hpp"
 51 class·holding·the·info-hash·of·a·torrent.·It·can·hold·a·v1·info-hash·(SHA-1)·or
 52 a·v2·info-hash·(SHA-256)·or·both.
 53 Note
 54 If·has_v2()·is·false·then·the·v1·hash·might·actually·be·a·truncated·v2·hash
 55 struct·info_hash_t
 56 {
 57 ···explicit·info_hash_t·(sha256_hash·h2)·noexcept;
 58 ···info_hash_t·()·noexcept·=·default;
 59 ···explicit·info_hash_t·(sha1_hash·h1)·noexcept;
 60 ···info_hash_t·(sha1_hash·h1,·sha256_hash·h2)·noexcept;
 61 ···bool·has·(protocol_version·v)·const;
 62 ···bool·has_v1·()·const;
 63 ···bool·has_v2·()·const;
 64 ···sha1_hash·get·(protocol_version·v)·const;
 65 ···sha1_hash·get_best·()·const;
 66 ···friend·bool·operator!=·(info_hash_t·const&·lhs,·info_hash_t·const&·rhs);
 67 ···friend·bool·operator==·(info_hash_t·const&·lhs,·info_hash_t·const&·rhs)
 68 noexcept;
 69 ···template·<typename·F>·void·for_each·(F·f)·const;
 70 ···bool·operator<·(info_hash_t·const&·o)·const;
 71 ···friend·std::ostream&·operator<<·(std::ostream&·os,·info_hash_t·const&·ih);
  
 72 ···sha1_hash·v1;
 73 ···sha256_hash·v2;
 74 };
 75 [report_issue]
 76 *****·info_hash_t()·*****
 77 explicit·info_hash_t·(sha256_hash·h2)·noexcept;
 78 info_hash_t·()·noexcept·=·default;
 79 explicit·info_hash_t·(sha1_hash·h1)·noexcept;
 80 info_hash_t·(sha1_hash·h1,·sha256_hash·h2)·noexcept;
 81 The·default·constructor·creates·an·object·that·has·neither·a·v1·or·v2·hash.
 82 For·backwards·compatibility,·make·it·possible·to·construct·directly·from·a·v1
 83 hash.·This·constructor·allows·implicit·conversion·from·a·v1·hash,·but·the
 84 implicitness·is·deprecated.
 85 [report_issue]
 86 *****·has_v1()·has()·has_v2()·*****
 87 bool·has·(protocol_version·v)·const;
 88 bool·has_v1·()·const;
 89 bool·has_v2·()·const;
Max diff block lines reached; 13481/18106 bytes (74.46%) of diff not shown.
28.0 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Create_Torrents.html
    
Offset 37, 25 lines modifiedOffset 37, 25 lines modified
37 <li><a·class="reference·internal"·href="#generate-buf-generate"·id="toc-entry-3">generate_buf()·generate()</a></li>37 <li><a·class="reference·internal"·href="#generate-buf-generate"·id="toc-entry-3">generate_buf()·generate()</a></li>
38 <li><a·class="reference·internal"·href="#files"·id="toc-entry-4">files()</a></li>38 <li><a·class="reference·internal"·href="#files"·id="toc-entry-4">files()</a></li>
39 <li><a·class="reference·internal"·href="#set-comment"·id="toc-entry-5">set_comment()</a></li>39 <li><a·class="reference·internal"·href="#set-comment"·id="toc-entry-5">set_comment()</a></li>
40 <li><a·class="reference·internal"·href="#set-creator"·id="toc-entry-6">set_creator()</a></li>40 <li><a·class="reference·internal"·href="#set-creator"·id="toc-entry-6">set_creator()</a></li>
41 <li><a·class="reference·internal"·href="#set-creation-date"·id="toc-entry-7">set_creation_date()</a></li>41 <li><a·class="reference·internal"·href="#set-creation-date"·id="toc-entry-7">set_creation_date()</a></li>
42 <li><a·class="reference·internal"·href="#set-hash"·id="toc-entry-8">set_hash()</a></li>42 <li><a·class="reference·internal"·href="#set-hash"·id="toc-entry-8">set_hash()</a></li>
43 <li><a·class="reference·internal"·href="#set-hash2"·id="toc-entry-9">set_hash2()</a></li>43 <li><a·class="reference·internal"·href="#set-hash2"·id="toc-entry-9">set_hash2()</a></li>
44 <li><a·class="reference·internal"·href="#add-http-seed-add-url-seed"·id="toc-entry-10">add_http_seed()·add_url_seed()</a></li>44 <li><a·class="reference·internal"·href="#add-url-seed-add-http-seed"·id="toc-entry-10">add_url_seed()·add_http_seed()</a></li>
45 <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-11">add_node()</a></li>45 <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-11">add_node()</a></li>
46 <li><a·class="reference·internal"·href="#add-tracker"·id="toc-entry-12">add_tracker()</a></li>46 <li><a·class="reference·internal"·href="#add-tracker"·id="toc-entry-12">add_tracker()</a></li>
47 <li><a·class="reference·internal"·href="#set-root-cert"·id="toc-entry-13">set_root_cert()</a></li>47 <li><a·class="reference·internal"·href="#set-root-cert"·id="toc-entry-13">set_root_cert()</a></li>
48 <li><a·class="reference·internal"·href="#priv-set-priv"·id="toc-entry-14">priv()·set_priv()</a></li>48 <li><a·class="reference·internal"·href="#priv-set-priv"·id="toc-entry-14">priv()·set_priv()</a></li>
49 <li><a·class="reference·internal"·href="#num-pieces"·id="toc-entry-15">num_pieces()</a></li>49 <li><a·class="reference·internal"·href="#num-pieces"·id="toc-entry-15">num_pieces()</a></li>
50 <li><a·class="reference·internal"·href="#piece-range"·id="toc-entry-16">piece_range()</a></li>50 <li><a·class="reference·internal"·href="#piece-range"·id="toc-entry-16">piece_range()</a></li>
51 <li><a·class="reference·internal"·href="#file-range"·id="toc-entry-17">file_range()</a></li>51 <li><a·class="reference·internal"·href="#file-range"·id="toc-entry-17">file_range()</a></li>
52 <li><a·class="reference·internal"·href="#file-piece-range"·id="toc-entry-18">file_piece_range()</a></li>52 <li><a·class="reference·internal"·href="#file-piece-range"·id="toc-entry-18">file_piece_range()</a></li>
53 <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-19">total_size()</a></li>53 <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-19">total_size()</a></li>
54 <li><a·class="reference·internal"·href="#piece-size-piece-length"·id="toc-entry-20">piece_size()·piece_length()</a></li>54 <li><a·class="reference·internal"·href="#piece-length-piece-size"·id="toc-entry-20">piece_length()·piece_size()</a></li>
55 <li><a·class="reference·internal"·href="#add-similar-torrent-add-collection"·id="toc-entry-21">add_similar_torrent()·add_collection()</a></li>55 <li><a·class="reference·internal"·href="#add-similar-torrent-add-collection"·id="toc-entry-21">add_similar_torrent()·add_collection()</a></li>
56 </ul>56 </ul>
57 </li>57 </li>
58 <li><a·class="reference·internal"·href="#add-files"·id="toc-entry-22">add_files()</a></li>58 <li><a·class="reference·internal"·href="#add-files"·id="toc-entry-22">add_files()</a></li>
59 <li><a·class="reference·internal"·href="#set-piece-hashes"·id="toc-entry-23">set_piece_hashes()</a></li>59 <li><a·class="reference·internal"·href="#set-piece-hashes"·id="toc-entry-23">set_piece_hashes()</a></li>
60 </ul>60 </ul>
61 </div>61 </div>
Offset 108, 42 lines modifiedOffset 108, 42 lines modified
108 .torrent·file·using·<a·class="reference·external"·href="reference-Bencoding.html#bencode()">bencode()</a>.</p>108 .torrent·file·using·<a·class="reference·external"·href="reference-Bencoding.html#bencode()">bencode()</a>.</p>
109 <pre·class="literal-block">109 <pre·class="literal-block">
110 struct·create_torrent110 struct·create_torrent
111 {111 {
112 ···explicit·<strong>create_torrent</strong>·(file_storage&amp;·fs,·int·piece_size·=·0112 ···explicit·<strong>create_torrent</strong>·(file_storage&amp;·fs,·int·piece_size·=·0
113 ······,·create_flags_t·flags·=·{});113 ······,·create_flags_t·flags·=·{});
114 ···explicit·<strong>create_torrent</strong>·(torrent_info·const&amp;·ti);114 ···explicit·<strong>create_torrent</strong>·(torrent_info·const&amp;·ti);
115 ···entry·<strong>generate</strong>·()·const; 
116 ···std::vector&lt;char&gt;·<strong>generate_buf</strong>·()·const;115 ···std::vector&lt;char&gt;·<strong>generate_buf</strong>·()·const;
 116 ···entry·<strong>generate</strong>·()·const;
117 ···file_storage·const&amp;·<strong>files</strong>·()·const;117 ···file_storage·const&amp;·<strong>files</strong>·()·const;
118 ···void·<strong>set_comment</strong>·(char·const*·str);118 ···void·<strong>set_comment</strong>·(char·const*·str);
119 ···void·<strong>set_creator</strong>·(char·const*·str);119 ···void·<strong>set_creator</strong>·(char·const*·str);
120 ···void·<strong>set_creation_date</strong>·(std::time_t·timestamp);120 ···void·<strong>set_creation_date</strong>·(std::time_t·timestamp);
121 ···void·<strong>set_hash</strong>·(piece_index_t·index,·sha1_hash·const&amp;·h);121 ···void·<strong>set_hash</strong>·(piece_index_t·index,·sha1_hash·const&amp;·h);
122 ···void·<strong>set_hash2</strong>·(file_index_t·file,·piece_index_t::diff_type·piece,·sha256_hash·const&amp;·h);122 ···void·<strong>set_hash2</strong>·(file_index_t·file,·piece_index_t::diff_type·piece,·sha256_hash·const&amp;·h);
123 ···void·<strong>add_url_seed</strong>·(string_view·url); 
124 ···void·<strong>add_http_seed</strong>·(string_view·url);123 ···void·<strong>add_http_seed</strong>·(string_view·url);
 124 ···void·<strong>add_url_seed</strong>·(string_view·url);
125 ···void·<strong>add_node</strong>·(std::pair&lt;std::string,·int&gt;·node);125 ···void·<strong>add_node</strong>·(std::pair&lt;std::string,·int&gt;·node);
126 ···void·<strong>add_tracker</strong>·(string_view·url,·int·tier·=·0);126 ···void·<strong>add_tracker</strong>·(string_view·url,·int·tier·=·0);
127 ···void·<strong>set_root_cert</strong>·(string_view·cert);127 ···void·<strong>set_root_cert</strong>·(string_view·cert);
128 ···bool·<strong>priv</strong>·()·const; 
129 ···void·<strong>set_priv</strong>·(bool·p);128 ···void·<strong>set_priv</strong>·(bool·p);
 129 ···bool·<strong>priv</strong>·()·const;
130 ···bool·<strong>is_v1_only</strong>·()·const;130 ···bool·<strong>is_v1_only</strong>·()·const;
131 ···bool·<strong>is_v2_only</strong>·()·const;131 ···bool·<strong>is_v2_only</strong>·()·const;
132 ···int·<strong>num_pieces</strong>·()·const;132 ···int·<strong>num_pieces</strong>·()·const;
133 ···piece_index_t·<strong>end_piece</strong>·()·const;133 ···piece_index_t·<strong>end_piece</strong>·()·const;
134 ···index_range&lt;piece_index_t&gt;·<strong>piece_range</strong>·()·const·noexcept;134 ···index_range&lt;piece_index_t&gt;·<strong>piece_range</strong>·()·const·noexcept;
135 ···file_index_t·<strong>end_file</strong>·()·const;135 ···file_index_t·<strong>end_file</strong>·()·const;
136 ···index_range&lt;file_index_t&gt;·<strong>file_range</strong>·()·const·noexcept;136 ···index_range&lt;file_index_t&gt;·<strong>file_range</strong>·()·const·noexcept;
137 ···index_range&lt;piece_index_t::diff_type&gt;·<strong>file_piece_range</strong>·(file_index_t·f);137 ···index_range&lt;piece_index_t::diff_type&gt;·<strong>file_piece_range</strong>·(file_index_t·f);
138 ···std::int64_t·<strong>total_size</strong>·()·const;138 ···std::int64_t·<strong>total_size</strong>·()·const;
139 ···int·<strong>piece_length</strong>·()·const; 
140 ···int·<strong>piece_size</strong>·(piece_index_t·i)·const;139 ···int·<strong>piece_size</strong>·(piece_index_t·i)·const;
141 ···void·<strong>add_collection</strong>·(string_view·c);140 ···int·<strong>piece_length</strong>·()·const;
142 ···void·<strong>add_similar_torrent</strong>·(sha1_hash·ih);141 ···void·<strong>add_similar_torrent</strong>·(sha1_hash·ih);
 142 ···void·<strong>add_collection</strong>·(string_view·c);
  
143 ···static·constexpr·create_flags_t·<strong>modification_time</strong>··=·2_bit;143 ···static·constexpr·create_flags_t·<strong>modification_time</strong>··=·2_bit;
144 ···static·constexpr·create_flags_t·<strong>symlinks</strong>··=·3_bit;144 ···static·constexpr·create_flags_t·<strong>symlinks</strong>··=·3_bit;
145 ···static·constexpr·create_flags_t·<strong>v2_only</strong>··=·5_bit;145 ···static·constexpr·create_flags_t·<strong>v2_only</strong>··=·5_bit;
146 ···static·constexpr·create_flags_t·<strong>v1_only</strong>··=·6_bit;146 ···static·constexpr·create_flags_t·<strong>v1_only</strong>··=·6_bit;
147 ···static·constexpr·create_flags_t·<strong>canonical_files</strong>··=·7_bit;147 ···static·constexpr·create_flags_t·<strong>canonical_files</strong>··=·7_bit;
148 ···static·constexpr·create_flags_t·<strong>no_attributes</strong>··=·8_bit;148 ···static·constexpr·create_flags_t·<strong>no_attributes</strong>··=·8_bit;
Offset 180, 16 lines modifiedOffset 180, 16 lines modified
180 entire·duration·of·the·<a·class="reference·external"·href="reference-Create_Torrents.html#create_torrent">create_torrent</a>·object.</p>180 entire·duration·of·the·<a·class="reference·external"·href="reference-Create_Torrents.html#create_torrent">create_torrent</a>·object.</p>
181 </div>181 </div>
182 <a·name="generate_buf()"></a>182 <a·name="generate_buf()"></a>
183 <a·name="generate()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Bgenerate_buf%28%29+generate%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5Bgenerate_buf%28%29+generate%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>183 <a·name="generate()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Bgenerate_buf%28%29+generate%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5Bgenerate_buf%28%29+generate%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
184 <div·class="section"·id="generate-buf-generate">184 <div·class="section"·id="generate-buf-generate">
185 <h2>generate_buf()·generate()</h2>185 <h2>generate_buf()·generate()</h2>
186 <pre·class="literal-block">186 <pre·class="literal-block">
187 entry·<strong>generate</strong>·()·const; 
188 std::vector&lt;char&gt;·<strong>generate_buf</strong>·()·const;187 std::vector&lt;char&gt;·<strong>generate_buf</strong>·()·const;
 188 entry·<strong>generate</strong>·()·const;
189 </pre>189 </pre>
190 <p>This·function·will·generate·the·.torrent·file·as·a·bencode·tree,·or·a190 <p>This·function·will·generate·the·.torrent·file·as·a·bencode·tree,·or·a
191 bencoded·into·a·buffer.191 bencoded·into·a·buffer.
192 In·order·to·encode·the·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>·into·a·flat·file,·use·the·<a·class="reference·external"·href="reference-Bencoding.html#bencode()">bencode()</a>·function.</p>192 In·order·to·encode·the·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>·into·a·flat·file,·use·the·<a·class="reference·external"·href="reference-Bencoding.html#bencode()">bencode()</a>·function.</p>
193 <p>The·function·returning·an·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>·may·be·useful·to·add·custom·entries193 <p>The·function·returning·an·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>·may·be·useful·to·add·custom·entries
194 to·the·torrent·file·before·bencoding·it·and·saving·it·to·disk.</p>194 to·the·torrent·file·before·bencoding·it·and·saving·it·to·disk.</p>
195 <p>Whether·the·resulting·torrent·object·is·v1,·v2·or·hybrid·depends·on195 <p>Whether·the·resulting·torrent·object·is·v1,·v2·or·hybrid·depends·on
Offset 272, 21 lines modifiedOffset 272, 21 lines modified
272 16·kiB·blocks.·Note·that·piece·sizes·must·be·powers-of-2,·so·all272 16·kiB·blocks.·Note·that·piece·sizes·must·be·powers-of-2,·so·all
273 per-piece·merkle·trees·are·complete.273 per-piece·merkle·trees·are·complete.
274 A·SHA-256·hash·of·all·zeros·is·internally·used·to·indicate·a·hash274 A·SHA-256·hash·of·all·zeros·is·internally·used·to·indicate·a·hash
275 that·has·not·been·set.·Setting·such·hash·will·not·be·considered·set275 that·has·not·been·set.·Setting·such·hash·will·not·be·considered·set
276 when·calling·<a·class="reference·external"·href="reference-Create_Torrents.html#generate()">generate()</a>.276 when·calling·<a·class="reference·external"·href="reference-Create_Torrents.html#generate()">generate()</a>.
277 This·function·will·throw·<tt·class="docutils·literal"><span·class="pre">std::system_error</span></tt>·if·it·is·called·on·an277 This·function·will·throw·<tt·class="docutils·literal"><span·class="pre">std::system_error</span></tt>·if·it·is·called·on·an
278 object·constructed·with·the·v1_only·flag.</p>278 object·constructed·with·the·v1_only·flag.</p>
279 <a·name="add_http_seed()"></a>279 <a·name="add_url_seed()"></a>
280 <a·name="add_url_seed()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Badd_http_seed%28%29+add_url_seed%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5B[·...·truncated·by·diffoscope;·len:·27,·SHA:·c2f6ab073ec583a3e638139795b02ee07974718cbc77ec52778b80d1fb7b0ee9·...·]_seed%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>280 <a·name="add_http_seed()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Badd_url_seed%28%29+add_http_seed%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5[·...·truncated·by·diffoscope;·len:·28,·SHA:·64810a812abf0c9adbace5f235d637c4c4ef755b6b659976ac48125498d909a3·...·]_seed%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
281 <div·class="section"·id="add-http-seed-add-url-seed">281 <div·class="section"·id="add-url-seed-add-http-seed">
282 <h2>add_http_seed()·add_url_seed()</h2>282 <h2>add_url_seed()·add_http_seed()</h2>
283 <pre·class="literal-block">283 <pre·class="literal-block">
284 void·<strong>add_url_seed</strong>·(string_view·url); 
285 void·<strong>add_http_seed</strong>·(string_view·url);284 void·<strong>add_http_seed</strong>·(string_view·url);
 285 void·<strong>add_url_seed</strong>·(string_view·url);
286 </pre>286 </pre>
287 <p>This·adds·a·url·seed·to·the·torrent.·You·can·have·any·number·of·url·seeds.·For·a287 <p>This·adds·a·url·seed·to·the·torrent.·You·can·have·any·number·of·url·seeds.·For·a
288 single·file·torrent,·this·should·be·an·HTTP·url,·pointing·to·a·file·with·identical288 single·file·torrent,·this·should·be·an·HTTP·url,·pointing·to·a·file·with·identical
289 content·as·the·file·of·the·torrent.·For·a·multi-file·torrent,·it·should·point·to289 content·as·the·file·of·the·torrent.·For·a·multi-file·torrent,·it·should·point·to
290 a·directory·containing·a·directory·with·the·same·name·as·this·torrent,·and·all·the290 a·directory·containing·a·directory·with·the·same·name·as·this·torrent,·and·all·the
291 files·of·the·torrent·in·it.</p>291 files·of·the·torrent·in·it.</p>
292 <p>The·second·function,·<tt·class="docutils·literal">add_http_seed()</tt>·adds·an·HTTP·seed·instead.</p>292 <p>The·second·function,·<tt·class="docutils·literal">add_http_seed()</tt>·adds·an·HTTP·seed·instead.</p>
Offset 325, 16 lines modifiedOffset 325, 16 lines modified
325 <p>The·string·is·not·the·path·to·the·cert,·it's·the·actual·content·of·the325 <p>The·string·is·not·the·path·to·the·cert,·it's·the·actual·content·of·the
326 certificate.</p>326 certificate.</p>
327 <a·name="priv()"></a>327 <a·name="priv()"></a>
328 <a·name="set_priv()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Bpriv%28%29+set_priv%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5Bpriv%28%29+set_priv%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>328 <a·name="set_priv()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Bpriv%28%29+set_priv%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5Bpriv%28%29+set_priv%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
329 <div·class="section"·id="priv-set-priv">329 <div·class="section"·id="priv-set-priv">
330 <h2>priv()·set_priv()</h2>330 <h2>priv()·set_priv()</h2>
331 <pre·class="literal-block">331 <pre·class="literal-block">
332 bool·<strong>priv</strong>·()·const; 
333 void·<strong>set_priv</strong>·(bool·p);332 void·<strong>set_priv</strong>·(bool·p);
 333 bool·<strong>priv</strong>·()·const;
334 </pre>334 </pre>
335 <p>Sets·and·queries·the·private·flag·of·the·torrent.335 <p>Sets·and·queries·the·private·flag·of·the·torrent.
336 Torrents·with·the·private·flag·set·ask·the·client·to·not·use·any·other336 Torrents·with·the·private·flag·set·ask·the·client·to·not·use·any·other
Max diff block lines reached; 8351/18200 bytes (45.88%) of diff not shown.
10.1 KB
html2text {}
    
Offset 7, 25 lines modifiedOffset 7, 25 lines modified
7 ··········o·generate_buf()_generate()7 ··········o·generate_buf()_generate()
8 ··········o·files()8 ··········o·files()
9 ··········o·set_comment()9 ··········o·set_comment()
10 ··········o·set_creator()10 ··········o·set_creator()
11 ··········o·set_creation_date()11 ··········o·set_creation_date()
12 ··········o·set_hash()12 ··········o·set_hash()
13 ··········o·set_hash2()13 ··········o·set_hash2()
14 ··········o·add_http_seed()_add_url_seed()14 ··········o·add_url_seed()_add_http_seed()
15 ··········o·add_node()15 ··········o·add_node()
16 ··········o·add_tracker()16 ··········o·add_tracker()
17 ··········o·set_root_cert()17 ··········o·set_root_cert()
18 ··········o·priv()_set_priv()18 ··········o·priv()_set_priv()
19 ··········o·num_pieces()19 ··········o·num_pieces()
20 ··········o·piece_range()20 ··········o·piece_range()
21 ··········o·file_range()21 ··········o·file_range()
22 ··········o·file_piece_range()22 ··········o·file_piece_range()
23 ··········o·total_size()23 ··········o·total_size()
24 ··········o·piece_size()_piece_length()24 ··········o·piece_length()_piece_size()
25 ··········o·add_similar_torrent()_add_collection()25 ··········o·add_similar_torrent()_add_collection()
26 ····*·add_files()26 ····*·add_files()
27 ····*·set_piece_hashes()27 ····*·set_piece_hashes()
28 This·section·describes·the·functions·and·classes·that·are·used·to·create28 This·section·describes·the·functions·and·classes·that·are·used·to·create
29 torrent·files.·It·is·a·layered·API·with·low·level·classes·and·higher·level29 torrent·files.·It·is·a·layered·API·with·low·level·classes·and·higher·level
30 convenience·functions.·A·torrent·is·created·in·4·steps:30 convenience·functions.·A·torrent·is·created·in·4·steps:
31 ···1.·first·the·files·that·will·be·part·of·the·torrent·are·determined.31 ···1.·first·the·files·that·will·be·part·of·the·torrent·are·determined.
Offset 68, 43 lines modifiedOffset 68, 43 lines modified
68 entry·that's·returned·can·then·be·bencoded·into·a·.torrent·file·using·bencode68 entry·that's·returned·can·then·be·bencoded·into·a·.torrent·file·using·bencode
69 ().69 ().
70 struct·create_torrent70 struct·create_torrent
71 {71 {
72 ···explicit·create_torrent·(file_storage&·fs,·int·piece_size·=·072 ···explicit·create_torrent·(file_storage&·fs,·int·piece_size·=·0
73 ······,·create_flags_t·flags·=·{});73 ······,·create_flags_t·flags·=·{});
74 ···explicit·create_torrent·(torrent_info·const&·ti);74 ···explicit·create_torrent·(torrent_info·const&·ti);
75 ···entry·generate·()·const; 
76 ···std::vector<char>·generate_buf·()·const;75 ···std::vector<char>·generate_buf·()·const;
 76 ···entry·generate·()·const;
77 ···file_storage·const&·files·()·const;77 ···file_storage·const&·files·()·const;
78 ···void·set_comment·(char·const*·str);78 ···void·set_comment·(char·const*·str);
79 ···void·set_creator·(char·const*·str);79 ···void·set_creator·(char·const*·str);
80 ···void·set_creation_date·(std::time_t·timestamp);80 ···void·set_creation_date·(std::time_t·timestamp);
81 ···void·set_hash·(piece_index_t·index,·sha1_hash·const&·h);81 ···void·set_hash·(piece_index_t·index,·sha1_hash·const&·h);
82 ···void·set_hash2·(file_index_t·file,·piece_index_t::diff_type·piece,·sha256_82 ···void·set_hash2·(file_index_t·file,·piece_index_t::diff_type·piece,·sha256_
83 hash·const&·h);83 hash·const&·h);
84 ···void·add_url_seed·(string_view·url); 
85 ···void·add_http_seed·(string_view·url);84 ···void·add_http_seed·(string_view·url);
 85 ···void·add_url_seed·(string_view·url);
86 ···void·add_node·(std::pair<std::string,·int>·node);86 ···void·add_node·(std::pair<std::string,·int>·node);
87 ···void·add_tracker·(string_view·url,·int·tier·=·0);87 ···void·add_tracker·(string_view·url,·int·tier·=·0);
88 ···void·set_root_cert·(string_view·cert);88 ···void·set_root_cert·(string_view·cert);
89 ···bool·priv·()·const; 
90 ···void·set_priv·(bool·p);89 ···void·set_priv·(bool·p);
 90 ···bool·priv·()·const;
91 ···bool·is_v1_only·()·const;91 ···bool·is_v1_only·()·const;
92 ···bool·is_v2_only·()·const;92 ···bool·is_v2_only·()·const;
93 ···int·num_pieces·()·const;93 ···int·num_pieces·()·const;
94 ···piece_index_t·end_piece·()·const;94 ···piece_index_t·end_piece·()·const;
95 ···index_range<piece_index_t>·piece_range·()·const·noexcept;95 ···index_range<piece_index_t>·piece_range·()·const·noexcept;
96 ···file_index_t·end_file·()·const;96 ···file_index_t·end_file·()·const;
97 ···index_range<file_index_t>·file_range·()·const·noexcept;97 ···index_range<file_index_t>·file_range·()·const·noexcept;
98 ···index_range<piece_index_t::diff_type>·file_piece_range·(file_index_t·f);98 ···index_range<piece_index_t::diff_type>·file_piece_range·(file_index_t·f);
99 ···std::int64_t·total_size·()·const;99 ···std::int64_t·total_size·()·const;
100 ···int·piece_length·()·const; 
101 ···int·piece_size·(piece_index_t·i)·const;100 ···int·piece_size·(piece_index_t·i)·const;
102 ···void·add_collection·(string_view·c);101 ···int·piece_length·()·const;
103 ···void·add_similar_torrent·(sha1_hash·ih);102 ···void·add_similar_torrent·(sha1_hash·ih);
 103 ···void·add_collection·(string_view·c);
  
104 ···static·constexpr·create_flags_t·modification_time··=·2_bit;104 ···static·constexpr·create_flags_t·modification_time··=·2_bit;
105 ···static·constexpr·create_flags_t·symlinks··=·3_bit;105 ···static·constexpr·create_flags_t·symlinks··=·3_bit;
106 ···static·constexpr·create_flags_t·v2_only··=·5_bit;106 ···static·constexpr·create_flags_t·v2_only··=·5_bit;
107 ···static·constexpr·create_flags_t·v1_only··=·6_bit;107 ···static·constexpr·create_flags_t·v1_only··=·6_bit;
108 ···static·constexpr·create_flags_t·canonical_files··=·7_bit;108 ···static·constexpr·create_flags_t·canonical_files··=·7_bit;
109 ···static·constexpr·create_flags_t·no_attributes··=·8_bit;109 ···static·constexpr·create_flags_t·no_attributes··=·8_bit;
Offset 131, 16 lines modifiedOffset 131, 16 lines modified
131 (such·as·set_hash()),·will·have·any·affect.·Instead·of·using·this·overload,131 (such·as·set_hash()),·will·have·any·affect.·Instead·of·using·this·overload,
132 consider·using·write_torrent_file()·instead.132 consider·using·write_torrent_file()·instead.
133 Warning133 Warning
134 The·file_storage·and·torrent_info·objects·must·stay·alive·for·the·entire134 The·file_storage·and·torrent_info·objects·must·stay·alive·for·the·entire
135 duration·of·the·create_torrent·object.135 duration·of·the·create_torrent·object.
136 [report_issue]136 [report_issue]
137 *****·generate_buf()·generate()·*****137 *****·generate_buf()·generate()·*****
138 entry·generate·()·const; 
139 std::vector<char>·generate_buf·()·const;138 std::vector<char>·generate_buf·()·const;
 139 entry·generate·()·const;
140 This·function·will·generate·the·.torrent·file·as·a·bencode·tree,·or·a·bencoded140 This·function·will·generate·the·.torrent·file·as·a·bencode·tree,·or·a·bencoded
141 into·a·buffer.·In·order·to·encode·the·entry·into·a·flat·file,·use·the·bencode()141 into·a·buffer.·In·order·to·encode·the·entry·into·a·flat·file,·use·the·bencode()
142 function.142 function.
143 The·function·returning·an·entry·may·be·useful·to·add·custom·entries·to·the143 The·function·returning·an·entry·may·be·useful·to·add·custom·entries·to·the
144 torrent·file·before·bencoding·it·and·saving·it·to·disk.144 torrent·file·before·bencoding·it·and·saving·it·to·disk.
145 Whether·the·resulting·torrent·object·is·v1,·v2·or·hybrid·depends·on·whether·any145 Whether·the·resulting·torrent·object·is·v1,·v2·or·hybrid·depends·on·whether·any
146 of·the·v1_only·or·v2_only·flags·were·set·on·the·constructor.·If·neither·were146 of·the·v1_only·or·v2_only·flags·were·set·on·the·constructor.·If·neither·were
Offset 197, 17 lines modifiedOffset 197, 17 lines modified
197 the·merkle·tree·formed·by·the·piece's·16·kiB·blocks.·Note·that·piece·sizes·must197 the·merkle·tree·formed·by·the·piece's·16·kiB·blocks.·Note·that·piece·sizes·must
198 be·powers-of-2,·so·all·per-piece·merkle·trees·are·complete.·A·SHA-256·hash·of198 be·powers-of-2,·so·all·per-piece·merkle·trees·are·complete.·A·SHA-256·hash·of
199 all·zeros·is·internally·used·to·indicate·a·hash·that·has·not·been·set.·Setting199 all·zeros·is·internally·used·to·indicate·a·hash·that·has·not·been·set.·Setting
200 such·hash·will·not·be·considered·set·when·calling·generate().·This·function200 such·hash·will·not·be·considered·set·when·calling·generate().·This·function
201 will·throw·std::system_error·if·it·is·called·on·an·object·constructed·with·the201 will·throw·std::system_error·if·it·is·called·on·an·object·constructed·with·the
202 v1_only·flag.202 v1_only·flag.
203 [report_issue]203 [report_issue]
 204 *****·add_url_seed()·add_http_seed()·*****
204 *****·add_http_seed()·add_url_seed()·***** 
205 void·add_url_seed·(string_view·url); 
206 void·add_http_seed·(string_view·url);205 void·add_http_seed·(string_view·url);
 206 void·add_url_seed·(string_view·url);
207 This·adds·a·url·seed·to·the·torrent.·You·can·have·any·number·of·url·seeds.·For207 This·adds·a·url·seed·to·the·torrent.·You·can·have·any·number·of·url·seeds.·For
208 a·single·file·torrent,·this·should·be·an·HTTP·url,·pointing·to·a·file·with208 a·single·file·torrent,·this·should·be·an·HTTP·url,·pointing·to·a·file·with
209 identical·content·as·the·file·of·the·torrent.·For·a·multi-file·torrent,·it209 identical·content·as·the·file·of·the·torrent.·For·a·multi-file·torrent,·it
210 should·point·to·a·directory·containing·a·directory·with·the·same·name·as·this210 should·point·to·a·directory·containing·a·directory·with·the·same·name·as·this
211 torrent,·and·all·the·files·of·the·torrent·in·it.211 torrent,·and·all·the·files·of·the·torrent·in·it.
212 The·second·function,·add_http_seed()·adds·an·HTTP·seed·instead.212 The·second·function,·add_http_seed()·adds·an·HTTP·seed·instead.
213 [report_issue]213 [report_issue]
Offset 235, 16 lines modifiedOffset 235, 16 lines modified
235 valid·certificate·signed·by·this·root·certificate.·For·SSL·torrents,·all·peers235 valid·certificate·signed·by·this·root·certificate.·For·SSL·torrents,·all·peers
236 are·connecting·over·SSL·connections.·For·more·information,·see·the·section·on236 are·connecting·over·SSL·connections.·For·more·information,·see·the·section·on
237 ssl_torrents.237 ssl_torrents.
238 The·string·is·not·the·path·to·the·cert,·it's·the·actual·content·of·the238 The·string·is·not·the·path·to·the·cert,·it's·the·actual·content·of·the
239 certificate.239 certificate.
240 [report_issue]240 [report_issue]
241 *****·priv()·set_priv()·*****241 *****·priv()·set_priv()·*****
242 bool·priv·()·const; 
243 void·set_priv·(bool·p);242 void·set_priv·(bool·p);
 243 bool·priv·()·const;
244 Sets·and·queries·the·private·flag·of·the·torrent.·Torrents·with·the·private244 Sets·and·queries·the·private·flag·of·the·torrent.·Torrents·with·the·private
245 flag·set·ask·the·client·to·not·use·any·other·sources·than·the·tracker·for245 flag·set·ask·the·client·to·not·use·any·other·sources·than·the·tracker·for
246 peers,·and·to·not·use·DHT·to·advertise·itself·publicly,·only·the·tracker.246 peers,·and·to·not·use·DHT·to·advertise·itself·publicly,·only·the·tracker.
247 [report_issue]247 [report_issue]
248 *****·num_pieces()·*****248 *****·num_pieces()·*****
Max diff block lines reached; 4592/10321 bytes (44.49%) of diff not shown.
142 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Custom_Storage.html
    
Offset 28, 443 lines modifiedOffset 28, 85 lines modified
28 <td>2.0.11</td></tr>28 <td>2.0.11</td></tr>
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#settings-interface"·id="toc-entry-1">settings_interface</a></li> 
36 <li><a·class="reference·internal"·href="#buffer-allocator-interface"·id="toc-entry-2">buffer_allocator_interface</a></li> 
37 <li><a·class="reference·internal"·href="#disk-buffer-holder"·id="toc-entry-3">disk_buffer_holder</a><ul>35 <li><a·class="reference·internal"·href="#disk-observer"·id="toc-entry-1">disk_observer</a><ul>
38 <li><a·class="reference·internal"·href="#disk-buffer-holder-1"·id="toc-entry-4">disk_buffer_holder()</a></li> 
39 <li><a·class="reference·internal"·href="#disk-buffer-holder-2"·id="toc-entry-5">disk_buffer_holder()</a></li> 
40 <li><a·class="reference·internal"·href="#disk-buffer-holder-3"·id="toc-entry-6">~disk_buffer_holder()</a></li> 
41 <li><a·class="reference·internal"·href="#data"·id="toc-entry-7">data()</a></li>36 <li><a·class="reference·internal"·href="#on-disk"·id="toc-entry-2">on_disk()</a></li>
42 <li><a·class="reference·internal"·href="#reset"·id="toc-entry-8">reset()</a></li> 
43 <li><a·class="reference·internal"·href="#swap"·id="toc-entry-9">swap()</a></li> 
44 <li><a·class="reference·internal"·href="#is-mutable"·id="toc-entry-10">is_mutable()</a></li> 
45 <li><a·class="reference·internal"·href="#bool"·id="toc-entry-11">bool()</a></li> 
46 </ul>37 </ul>
47 </li>38 </li>
48 <li><a·class="reference·internal"·href="#open-file-state"·id="toc-entry-12">open_file_state</a></li>39 <li><a·class="reference·internal"·href="#open-file-state"·id="toc-entry-3">open_file_state</a></li>
49 <li><a·class="reference·internal"·href="#disk-interface"·id="toc-entry-13">disk_interface</a><ul>40 <li><a·class="reference·internal"·href="#disk-interface"·id="toc-entry-4">disk_interface</a><ul>
50 <li><a·class="reference·internal"·href="#new-torrent"·id="toc-entry-14">new_torrent()</a></li>41 <li><a·class="reference·internal"·href="#new-torrent"·id="toc-entry-5">new_torrent()</a></li>
51 <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-15">remove_torrent()</a></li>42 <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-6">remove_torrent()</a></li>
52 <li><a·class="reference·internal"·href="#async-write-async-read"·id="toc-entry-16">async_write()·async_read()</a></li>43 <li><a·class="reference·internal"·href="#async-read-async-write"·id="toc-entry-7">async_read()·async_write()</a></li>
53 <li><a·class="reference·internal"·href="#async-hash"·id="toc-entry-17">async_hash()</a></li>44 <li><a·class="reference·internal"·href="#async-hash"·id="toc-entry-8">async_hash()</a></li>
54 <li><a·class="reference·internal"·href="#async-hash2"·id="toc-entry-18">async_hash2()</a></li>45 <li><a·class="reference·internal"·href="#async-hash2"·id="toc-entry-9">async_hash2()</a></li>
55 <li><a·class="reference·internal"·href="#async-move-storage"·id="toc-entry-19">async_move_storage()</a></li>46 <li><a·class="reference·internal"·href="#async-move-storage"·id="toc-entry-10">async_move_storage()</a></li>
56 <li><a·class="reference·internal"·href="#async-release-files"·id="toc-entry-20">async_release_files()</a></li>47 <li><a·class="reference·internal"·href="#async-release-files"·id="toc-entry-11">async_release_files()</a></li>
57 <li><a·class="reference·internal"·href="#async-check-files"·id="toc-entry-21">async_check_files()</a></li>48 <li><a·class="reference·internal"·href="#async-check-files"·id="toc-entry-12">async_check_files()</a></li>
58 <li><a·class="reference·internal"·href="#async-stop-torrent"·id="toc-entry-22">async_stop_torrent()</a></li>49 <li><a·class="reference·internal"·href="#async-stop-torrent"·id="toc-entry-13">async_stop_torrent()</a></li>
59 <li><a·class="reference·internal"·href="#async-rename-file"·id="toc-entry-23">async_rename_file()</a></li>50 <li><a·class="reference·internal"·href="#async-rename-file"·id="toc-entry-14">async_rename_file()</a></li>
60 <li><a·class="reference·internal"·href="#async-delete-files"·id="toc-entry-24">async_delete_files()</a></li>51 <li><a·class="reference·internal"·href="#async-delete-files"·id="toc-entry-15">async_delete_files()</a></li>
61 <li><a·class="reference·internal"·href="#async-set-file-priority"·id="toc-entry-25">async_set_file_priority()</a></li>52 <li><a·class="reference·internal"·href="#async-set-file-priority"·id="toc-entry-16">async_set_file_priority()</a></li>
62 <li><a·class="reference·internal"·href="#async-clear-piece"·id="toc-entry-26">async_clear_piece()</a></li>53 <li><a·class="reference·internal"·href="#async-clear-piece"·id="toc-entry-17">async_clear_piece()</a></li>
63 <li><a·class="reference·internal"·href="#update-stats-counters"·id="toc-entry-27">update_stats_counters()</a></li>54 <li><a·class="reference·internal"·href="#update-stats-counters"·id="toc-entry-18">update_stats_counters()</a></li>
64 <li><a·class="reference·internal"·href="#get-status"·id="toc-entry-28">get_status()</a></li>55 <li><a·class="reference·internal"·href="#get-status"·id="toc-entry-19">get_status()</a></li>
65 <li><a·class="reference·internal"·href="#abort"·id="toc-entry-29">abort()</a></li>56 <li><a·class="reference·internal"·href="#abort"·id="toc-entry-20">abort()</a></li>
66 <li><a·class="reference·internal"·href="#submit-jobs"·id="toc-entry-30">submit_jobs()</a></li>57 <li><a·class="reference·internal"·href="#submit-jobs"·id="toc-entry-21">submit_jobs()</a></li>
67 <li><a·class="reference·internal"·href="#settings-updated"·id="toc-entry-31">settings_updated()</a></li>58 <li><a·class="reference·internal"·href="#settings-updated"·id="toc-entry-22">settings_updated()</a></li>
68 </ul>59 </ul>
69 </li>60 </li>
70 <li><a·class="reference·internal"·href="#storage-holder"·id="toc-entry-32">storage_holder</a></li>61 <li><a·class="reference·internal"·href="#storage-holder"·id="toc-entry-23">storage_holder</a></li>
 62 <li><a·class="reference·internal"·href="#settings-interface"·id="toc-entry-24">settings_interface</a></li>
 63 <li><a·class="reference·internal"·href="#buffer-allocator-interface"·id="toc-entry-25">buffer_allocator_interface</a></li>
71 <li><a·class="reference·internal"·href="#disk-observer"·id="toc-entry-33">disk_observer</a><ul>64 <li><a·class="reference·internal"·href="#disk-buffer-holder"·id="toc-entry-26">disk_buffer_holder</a><ul>
 65 <li><a·class="reference·internal"·href="#disk-buffer-holder-1"·id="toc-entry-27">disk_buffer_holder()</a></li>
 66 <li><a·class="reference·internal"·href="#disk-buffer-holder-2"·id="toc-entry-28">disk_buffer_holder()</a></li>
 67 <li><a·class="reference·internal"·href="#disk-buffer-holder-3"·id="toc-entry-29">~disk_buffer_holder()</a></li>
 68 <li><a·class="reference·internal"·href="#data"·id="toc-entry-30">data()</a></li>
 69 <li><a·class="reference·internal"·href="#reset"·id="toc-entry-31">reset()</a></li>
 70 <li><a·class="reference·internal"·href="#swap"·id="toc-entry-32">swap()</a></li>
 71 <li><a·class="reference·internal"·href="#is-mutable"·id="toc-entry-33">is_mutable()</a></li>
72 <li><a·class="reference·internal"·href="#on-disk"·id="toc-entry-34">on_disk()</a></li>72 <li><a·class="reference·internal"·href="#bool"·id="toc-entry-34">bool()</a></li>
73 </ul>73 </ul>
74 </li>74 </li>
75 <li><a·class="reference·internal"·href="#file-open-mode-t"·id="toc-entry-35">file_open_mode_t</a></li>75 <li><a·class="reference·internal"·href="#file-open-mode-t"·id="toc-entry-35">file_open_mode_t</a></li>
76 </ul>76 </ul>
77 </div>77 </div>
 78 <p>You·have·some·control·over·<a·class="reference·external"·href="reference-Session.html#session">session</a>·configuration·through·the·session::apply_settings()
 79 member·function.·To·change·one·or·more·configuration·options,·create·a·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>
 80 object·and·fill·it·with·the·settings·to·be·set·and·pass·it·in·to·session::apply_settings().</p>
 81 <p>The·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>·object·is·a·collection·of·settings·updates·that·are·applied
 82 to·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·when·passed·to·session::apply_settings().·It's·empty·when
 83 constructed.</p>
 84 <p>You·have·control·over·proxy·and·authorization·settings·and·also·the·user-agent
 85 that·will·be·sent·to·the·tracker.·The·user-agent·will·also·be·used·to·identify·the
 86 client·with·other·peers.</p>
 87 <p>Each·configuration·option·is·named·with·an·enum·value·inside·the
 88 <a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>·class.·These·are·the·available·settings:</p>
78 <p>The·disk·I/O·can·be·customized·in·libtorrent.·In·previous·versions,·the 
79 customization·was·at·the·level·of·each·torrent.·Now,·the·customization·point 
80 is·at·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·level.·All·torrents·added·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>·will·use·the·same 
81 disk·I/O·subsystem,·as·determined·by·the·disk_io_constructor·(in 
82 <a·class="reference·external"·href="reference-Session.html#session_params">session_params</a>).</p> 
83 <p>This·allows·the·disk·subsystem·to·also·customize·threading·and·disk·job 
84 management.</p> 
85 <p>To·customize·the·disk·subsystem,·implement·<a·class="reference·external"·href="reference-Custom_Storage.html#disk_interface">disk_interface</a>·and·provide·a 
86 factory·function·to·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·constructor·(via·<a·class="reference·external"·href="reference-Session.html#session_params">session_params</a>).</p> 
87 <p>Example·use:</p> 
88 <pre·class="code·c++·literal-block"> 
89 <span·class="keyword">struct</span><span·class="whitespace">·</span><span·class="name·class">temp_storage</span><span·class="whitespace"> 
90 </span><span·class="punctuation">{</span><span·class="whitespace"> 
91 ··</span><span·class="keyword">explicit</span><span·class="whitespace">·</span><span·class="name">temp_storage</span><span·class="punctuation">(</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">file_storage</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="operator">&amp;</span><span·class="whitespace">·</span><span·class="name">fs</span><span·class="punctuation">)</span><span·class="whitespace">·</span><span·class="operator">:</span><span·class="whitespace">·</span><span·class="name">m_files</span><span·class="punctuation">(</span><span·class="name">fs</span><span·class="punctuation">)</span><span·class="whitespace">·</span><span·class="punctuation">{}</span><span·class="whitespace"> 
  
92 ··</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">span</span><span·class="operator">&lt;</span><span·class="keyword·type">char</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="operator">&gt;</span><span·class="whitespace">·</span><span·class="name">readv</span><span·class="punctuation">(</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">peer_request</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">r</span><span·class="punctuation">,</span><span·class="whitespace">·</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">storage_error</span><span·class="operator">&amp;</span><span·class="whitespace">·</span><span·class="name">ec</span><span·class="punctuation">)</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace"> 
93 ··</span><span·class="punctuation">{</span><span·class="whitespace"> 
94 ····</span><span·class="keyword">auto</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">i</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">m_file_data</span><span·class="punctuation">.</span><span·class="name">find</span><span·class="punctuation">(</span><span·class="name">r</span><span·class="punctuation">.</span><span·class="name">piece</span><span·class="punctuation">);</span><span·class="whitespace"> 
95 ····</span><span·class="keyword">if</span><span·class="whitespace">·</span><span·class="punctuation">(</span><span·class="name">i</span><span·class="whitespace">·</span><span·class="operator">==</span><span·class="whitespace">·</span><span·class="name">m_file_data</span><span·class="punctuation">.</span><span·class="name">end</span><span·class="punctuation">())</span><span·class="whitespace"> 
96 ····</span><span·class="punctuation">{</span><span·class="whitespace"> 
97 ······</span><span·class="name">ec</span><span·class="punctuation">.</span><span·class="name">operation</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">operation_t</span><span·class="operator">::</span><span·class="name">file_read</span><span·class="punctuation">;</span><span·class="whitespace"> 
98 ······</span><span·class="name">ec</span><span·class="punctuation">.</span><span·class="name">ec</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">boost</span><span·class="operator">::</span><span·class="name">asio</span><span·class="operator">::</span><span·class="name">error</span><span·class="operator">::</span><span·class="name">eof</span><span·class="punctuation">;</span><span·class="whitespace"> 
99 ······</span><span·class="keyword">return</span><span·class="whitespace">·</span><span·class="punctuation">{};</span><span·class="whitespace"> 
100 ····</span><span·class="punctuation">}</span><span·class="whitespace"> 
101 ····</span><span·class="keyword">if</span><span·class="whitespace">·</span><span·class="punctuation">(</span><span·class="keyword·type">int</span><span·class="punctuation">(</span><span·class="name">i</span><span·class="operator">-&gt;</span><span·class="name">second</span><span·class="punctuation">.</span><span·class="name">size</span><span·class="punctuation">())</span><span·class="whitespace">·</span><span·class="operator">&lt;=</span><span·class="whitespace">·</span><span·class="name">r</span><span·class="punctuation">.</span><span·class="name">start</span><span·class="punctuation">)</span><span·class="whitespace"> 
102 ····</span><span·class="punctuation">{</span><span·class="whitespace"> 
103 ······</span><span·class="name">ec</span><span·class="punctuation">.</span><span·class="name">operation</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">operation_t</span><span·class="operator">::</span><span·class="name">file_read</span><span·class="punctuation">;</span><span·class="whitespace"> 
104 ······</span><span·class="name">ec</span><span·class="punctuation">.</span><span·class="name">ec</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">boost</span><span·class="operator">::</span><span·class="name">asio</span><span·class="operator">::</span><span·class="name">error</span><span·class="operator">::</span><span·class="name">eof</span><span·class="punctuation">;</span><span·class="whitespace"> 
105 ······</span><span·class="keyword">return</span><span·class="whitespace">·</span><span·class="punctuation">{};</span><span·class="whitespace"> 
106 ····</span><span·class="punctuation">}</span><span·class="whitespace"> 
107 ····</span><span·class="keyword">return</span><span·class="whitespace">·</span><span·class="punctuation">{</span><span·class="whitespace">·</span><span·class="name">i</span><span·class="operator">-&gt;</span><span·class="name">second</span><span·class="punctuation">.</span><span·class="name">data</span><span·class="punctuation">()</span><span·class="whitespace">·</span><span·class="operator">+</span><span·class="whitespace">·</span><span·class="name">r</span><span·class="punctuation">.</span><span·class="name">start</span><span·class="punctuation">,</span><span·class="whitespace">·</span><span·class="name">std</span><span·class="operator">::</span><span·class="name">min</span><span·class="punctuation">(</span><span·class="name">r</span><span·class="punctuation">.</span><span·class="name">length</span><span·class="punctuation">,</span><span·class="whitespace">·</span><span·class="keyword·type">int</span><span·class="punctuation">(</span><span·class="name">i</span><span·class="operator">-&gt;</span><span·class="name">second</span><span·class="punctuation">.</span><span·class="name">size</span><span·class="punctuation">())</span><span·class="whitespace">·</span><span·class="operator">-</span><span·class="whitespace">·</span><span·class="name">r</span><span·class="punctuation">.</span><span·class="name">start</span><span·class="punctuation">)</span><span·class="whitespace">·</span><span·class="punctuation">};</span><span·class="whitespace"> 
108 ··</span><span·class="punctuation">}</span><span·class="whitespace"> 
109 ··</span><span·class="keyword·type">void</span><span·class="whitespace">·</span><span·class="name">writev</span><span·class="punctuation">(</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">span</span><span·class="operator">&lt;</span><span·class="keyword·type">char</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="operator">&gt;</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">b</span><span·class="punctuation">,</span><span·class="whitespace">·</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">piece_index_t</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">piece</span><span·class="punctuation">,</span><span·class="whitespace">·</span><span·class="keyword·type">int</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">offset</span><span·class="punctuation">)</span><span·class="whitespace"> 
110 ··</span><span·class="punctuation">{</span><span·class="whitespace"> 
111 ····</span><span·class="keyword">auto</span><span·class="operator">&amp;</span><span·class="whitespace">·</span><span·class="name">data</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">m_file_data</span><span·class="punctuation">[</span><span·class="name">piece</span><span·class="punctuation">];</span><span·class="whitespace"> 
112 ····</span><span·class="keyword">if</span><span·class="whitespace">·</span><span·class="punctuation">(</span><span·class="name">data</span><span·class="punctuation">.</span><span·class="name">empty</span><span·class="punctuation">())</span><span·class="whitespace"> 
113 ····</span><span·class="punctuation">{</span><span·class="whitespace"> 
114 ······</span><span·class="comment·single">//·allocate·the·whole·piece,·otherwise·we'll·invalidate·the·pointers 
115 </span><span·class="whitespace">······</span><span·class="comment·single">//·we·have·returned·back·to·libtorrent 
116 </span><span·class="whitespace">······</span><span·class="keyword·type">int</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">size</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">piece_size</span><span·class="punctuation">(</span><span·class="name">piece</span><span·class="punctuation">);</span><span·class="whitespace"> 
117 ······</span><span·class="name">data</span><span·class="punctuation">.</span><span·class="name">resize</span><span·class="punctuation">(</span><span·class="name">std</span><span·class="operator">::</span><span·class="keyword·type">size_t</span><span·class="punctuation">(</span><span·class="name">size</span><span·class="punctuation">));</span><span·class="whitespace"> 
118 ····</span><span·class="punctuation">}</span><span·class="whitespace"> 
119 ····</span><span·class="name">TORRENT_ASSERT</span><span·class="punctuation">(</span><span·class="name">offset</span><span·class="whitespace">·</span><span·class="operator">+</span><span·class="whitespace">·</span><span·class="name">b</span><span·class="punctuation">.</span><span·class="name">size</span><span·class="punctuation">()</span><span·class="whitespace">·</span><span·class="operator">&lt;=</span><span·class="whitespace">·</span><span·class="keyword·type">int</span><span·class="punctuation">(</span><span·class="name">data</span><span·class="punctuation">.</span><span·class="name">size</span><span·class="punctuation">()));</span><span·class="whitespace"> 
120 ····</span><span·class="name">std</span><span·class="operator">::</span><span·class="name">memcpy</span><span·class="punctuation">(</span><span·class="name">data</span><span·class="punctuation">.</span><span·class="name">data</span><span·class="punctuation">()</span><span·class="whitespace">·</span><span·class="operator">+</span><span·class="whitespace">·</span><span·class="name">offset</span><span·class="punctuation">,</span><span·class="whitespace">·</span><span·class="name">b</span><span·class="punctuation">.</span><span·class="name">data</span><span·class="punctuation">(),</span><span·class="whitespace">·</span><span·class="name">std</span><span·class="operator">::</span><span·class="keyword·type">size_t</span><span·class="punctuation">(</span><span·class="name">b</span><span·class="punctuation">.</span><span·class="name">size</span><span·class="punctuation">()));</span><span·class="whitespace"> 
121 ··</span><span·class="punctuation">}</span><span·class="whitespace"> 
122 ··</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">sha1_hash</span><span·class="whitespace">·</span><span·class="name">hash</span><span·class="punctuation">(</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">piece_index_t</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">piece</span><span·class="whitespace"> 
123 ····</span><span·class="punctuation">,</span><span·class="whitespace">·</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">span</span><span·class="operator">&lt;</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">sha256_hash</span><span·class="operator">&gt;</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">block_hashes</span><span·class="punctuation">,</span><span·class="whitespace">·</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">storage_error</span><span·class="operator">&amp;</span><span·class="whitespace">·</span><span·class="name">ec</span><span·class="punctuation">)</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace"> 
124 ··</span><span·class="punctuation">{</span><span·class="whitespace"> 
125 ····</span><span·class="keyword">auto</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="whitespace">·</span><span·class="name">i</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">m_file_data</span><span·class="punctuation">.</span><span·class="name">find</span><span·class="punctuation">(</span><span·class="name">piece</span><span·class="punctuation">);</span><span·class="whitespace"> 
126 ····</span><span·class="keyword">if</span><span·class="whitespace">·</span><span·class="punctuation">(</span><span·class="name">i</span><span·class="whitespace">·</span><span·class="operator">==</span><span·class="whitespace">·</span><span·class="name">m_file_data</span><span·class="punctuation">.</span><span·class="name">end</span><span·class="punctuation">())</span><span·class="whitespace"> 
127 ····</span><span·class="punctuation">{</span><span·class="whitespace"> 
128 ······</span><span·class="name">ec</span><span·class="punctuation">.</span><span·class="name">operation</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">operation_t</span><span·class="operator">::</span><span·class="name">file_read</span><span·class="punctuation">;</span><span·class="whitespace"> 
129 ······</span><span·class="name">ec</span><span·class="punctuation">.</span><span·class="name">ec</span><span·class="whitespace">·</span><span·class="operator">=</span><span·class="whitespace">·</span><span·class="name">boost</span><span·class="operator">::</span><span·class="name">asio</span><span·class="operator">::</span><span·class="name">error</span><span·class="operator">::</span><span·class="name">eof</span><span·class="punctuation">;</span><span·class="whitespace"> 
130 ······</span><span·class="keyword">return</span><span·class="whitespace">·</span><span·class="punctuation">{};</span><span·class="whitespace"> 
131 ····</span><span·class="punctuation">}</span><span·class="whitespace"> 
132 ····</span><span·class="keyword">if</span><span·class="whitespace">·</span><span·class="punctuation">(</span><span·class="operator">!</span><span·class="name">block_hashes</span><span·class="punctuation">.</span><span·class="name">empty</span><span·class="punctuation">())</span><span·class="whitespace"> 
133 ····</span><span·class="punctuation">{</span><span·class="whitespace"> 
Max diff block lines reached; 22808/122398 bytes (18.63%) of diff not shown.
22.6 KB
html2text {}
    
Offset 1, 27 lines modifiedOffset 1, 18 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
 5 ····*·disk_observer
5 ····*·settings_interface 
6 ····*·buffer_allocator_interface 
7 ····*·disk_buffer_holder 
8 ··········o·disk_buffer_holder() 
9 ··········o·disk_buffer_holder() 
10 ··········o·~disk_buffer_holder() 
11 ··········o·data()6 ··········o·on_disk()
12 ··········o·reset() 
13 ··········o·swap() 
14 ··········o·is_mutable() 
15 ··········o·bool() 
16 ····*·open_file_state7 ····*·open_file_state
17 ····*·disk_interface8 ····*·disk_interface
18 ··········o·new_torrent()9 ··········o·new_torrent()
19 ··········o·remove_torrent()10 ··········o·remove_torrent()
20 ··········o·async_write()_async_read()11 ··········o·async_read()_async_write()
21 ··········o·async_hash()12 ··········o·async_hash()
22 ··········o·async_hash2()13 ··········o·async_hash2()
23 ··········o·async_move_storage()14 ··········o·async_move_storage()
24 ··········o·async_release_files()15 ··········o·async_release_files()
25 ··········o·async_check_files()16 ··········o·async_check_files()
26 ··········o·async_stop_torrent()17 ··········o·async_stop_torrent()
27 ··········o·async_rename_file()18 ··········o·async_rename_file()
Offset 30, 393 lines modifiedOffset 21, 50 lines modified
30 ··········o·async_clear_piece()21 ··········o·async_clear_piece()
31 ··········o·update_stats_counters()22 ··········o·update_stats_counters()
32 ··········o·get_status()23 ··········o·get_status()
33 ··········o·abort()24 ··········o·abort()
34 ··········o·submit_jobs()25 ··········o·submit_jobs()
35 ··········o·settings_updated()26 ··········o·settings_updated()
36 ····*·storage_holder27 ····*·storage_holder
37 ····*·disk_observer28 ····*·settings_interface
 29 ····*·buffer_allocator_interface
 30 ····*·disk_buffer_holder
 31 ··········o·disk_buffer_holder()
 32 ··········o·disk_buffer_holder()
 33 ··········o·~disk_buffer_holder()
38 ··········o·on_disk()34 ··········o·data()
 35 ··········o·reset()
 36 ··········o·swap()
 37 ··········o·is_mutable()
 38 ··········o·bool()
39 ····*·file_open_mode_t39 ····*·file_open_mode_t
 40 You·have·some·control·over·session·configuration·through·the·session::apply_
 41 settings()·member·function.·To·change·one·or·more·configuration·options,·create
 42 a·settings_pack·object·and·fill·it·with·the·settings·to·be·set·and·pass·it·in
 43 to·session::apply_settings().
 44 The·settings_pack·object·is·a·collection·of·settings·updates·that·are·applied
 45 to·the·session·when·passed·to·session::apply_settings().·It's·empty·when
 46 constructed.
 47 You·have·control·over·proxy·and·authorization·settings·and·also·the·user-agent
 48 that·will·be·sent·to·the·tracker.·The·user-agent·will·also·be·used·to·identify
 49 the·client·with·other·peers.
 50 Each·configuration·option·is·named·with·an·enum·value·inside·the·settings_pack
 51 class.·These·are·the·available·settings:
40 The·disk·I/O·can·be·customized·in·libtorrent.·In·previous·versions,·the 
41 customization·was·at·the·level·of·each·torrent.·Now,·the·customization·point·is 
42 at·the·session·level.·All·torrents·added·to·a·session·will·use·the·same·disk·I/ 
43 O·subsystem,·as·determined·by·the·disk_io_constructor·(in·session_params). 
44 This·allows·the·disk·subsystem·to·also·customize·threading·and·disk·job 
45 management. 
46 To·customize·the·disk·subsystem,·implement·disk_interface·and·provide·a·factory 
47 function·to·the·session·constructor·(via·session_params). 
48 Example·use: 
49 struct·temp_storage 
50 { 
51 ··explicit·temp_storage(lt::file_storage·const&·fs)·:·m_files(fs)·{} 
  
52 ··lt::span<char·const>·readv(lt::peer_request·const·r,·lt::storage_error&·ec) 
53 const 
54 ··{ 
55 ····auto·const·i·=·m_file_data.find(r.piece); 
56 ····if·(i·==·m_file_data.end()) 
57 ····{ 
58 ······ec.operation·=·lt::operation_t::file_read; 
59 ······ec.ec·=·boost::asio::error::eof; 
60 ······return·{}; 
61 ····} 
62 ····if·(int(i->second.size())·<=·r.start) 
63 ····{ 
64 ······ec.operation·=·lt::operation_t::file_read; 
65 ······ec.ec·=·boost::asio::error::eof; 
66 ······return·{}; 
67 ····} 
68 ····return·{·i->second.data()·+·r.start,·std::min(r.length,·int(i->second.size 
69 ())·-·r.start)·}; 
70 ··} 
71 ··void·writev(lt::span<char·const>·const·b,·lt::piece_index_t·const·piece,·int 
72 const·offset) 
73 ··{ 
74 ····auto&·data·=·m_file_data[piece]; 
75 ····if·(data.empty()) 
76 ····{ 
77 ······//·allocate·the·whole·piece,·otherwise·we'll·invalidate·the·pointers 
78 ······//·we·have·returned·back·to·libtorrent 
79 ······int·const·size·=·piece_size(piece); 
80 ······data.resize(std::size_t(size)); 
81 ····} 
82 ····TORRENT_ASSERT(offset·+·b.size()·<=·int(data.size())); 
83 ····std::memcpy(data.data()·+·offset,·b.data(),·std::size_t(b.size())); 
84 ··} 
85 ··lt::sha1_hash·hash(lt::piece_index_t·const·piece 
86 ····,·lt::span<lt::sha256_hash>·const·block_hashes,·lt::storage_error&·ec) 
87 const 
88 ··{ 
89 ····auto·const·i·=·m_file_data.find(piece); 
90 ····if·(i·==·m_file_data.end()) 
91 ····{ 
92 ······ec.operation·=·lt::operation_t::file_read; 
93 ······ec.ec·=·boost::asio::error::eof; 
94 ······return·{}; 
95 ····} 
96 ····if·(!block_hashes.empty()) 
97 ····{ 
98 ······int·const·piece_size2·=·m_files.piece_size2(piece); 
99 ······int·const·blocks_in_piece2·=·m_files.blocks_in_piece2(piece); 
100 ······char·const*·buf·=·i->second.data(); 
101 ······std::int64_t·offset·=·0; 
102 ······for·(int·k·=·0;·k·<·blocks_in_piece2;·++k) 
103 ······{ 
104 ········lt::hasher256·h2; 
105 ········std::ptrdiff_t·const·len2·=·std::min(lt::default_block_size,·int(piece_ 
Max diff block lines reached; 10723/23096 bytes (46.43%) of diff not shown.
12.4 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-DHT.html
    
Offset 28, 65 lines modifiedOffset 28, 39 lines modified
28 <td>2.0.11</td></tr>28 <td>2.0.11</td></tr>
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#dht-state"·id="toc-entry-1">dht_state</a></li> 
36 <li><a·class="reference·internal"·href="#dht-storage-counters"·id="toc-entry-2">dht_storage_counters</a><ul>35 <li><a·class="reference·internal"·href="#dht-storage-counters"·id="toc-entry-1">dht_storage_counters</a><ul>
37 <li><a·class="reference·internal"·href="#reset"·id="toc-entry-3">reset()</a></li>36 <li><a·class="reference·internal"·href="#reset"·id="toc-entry-2">reset()</a></li>
38 </ul>37 </ul>
39 </li>38 </li>
40 <li><a·class="reference·internal"·href="#dht-storage-interface"·id="toc-entry-4">dht_storage_interface</a><ul>39 <li><a·class="reference·internal"·href="#dht-storage-interface"·id="toc-entry-3">dht_storage_interface</a><ul>
41 <li><a·class="reference·internal"·href="#update-node-ids"·id="toc-entry-5">update_node_ids()</a></li>40 <li><a·class="reference·internal"·href="#update-node-ids"·id="toc-entry-4">update_node_ids()</a></li>
42 <li><a·class="reference·internal"·href="#get-peers"·id="toc-entry-6">get_peers()</a></li>41 <li><a·class="reference·internal"·href="#get-peers"·id="toc-entry-5">get_peers()</a></li>
43 <li><a·class="reference·internal"·href="#announce-peer"·id="toc-entry-7">announce_peer()</a></li>42 <li><a·class="reference·internal"·href="#announce-peer"·id="toc-entry-6">announce_peer()</a></li>
44 <li><a·class="reference·internal"·href="#get-immutable-item"·id="toc-entry-8">get_immutable_item()</a></li>43 <li><a·class="reference·internal"·href="#get-immutable-item"·id="toc-entry-7">get_immutable_item()</a></li>
45 <li><a·class="reference·internal"·href="#put-immutable-item"·id="toc-entry-9">put_immutable_item()</a></li>44 <li><a·class="reference·internal"·href="#put-immutable-item"·id="toc-entry-8">put_immutable_item()</a></li>
46 <li><a·class="reference·internal"·href="#get-mutable-item-seq"·id="toc-entry-10">get_mutable_item_seq()</a></li>45 <li><a·class="reference·internal"·href="#get-mutable-item-seq"·id="toc-entry-9">get_mutable_item_seq()</a></li>
47 <li><a·class="reference·internal"·href="#get-mutable-item"·id="toc-entry-11">get_mutable_item()</a></li>46 <li><a·class="reference·internal"·href="#get-mutable-item"·id="toc-entry-10">get_mutable_item()</a></li>
48 <li><a·class="reference·internal"·href="#put-mutable-item"·id="toc-entry-12">put_mutable_item()</a></li>47 <li><a·class="reference·internal"·href="#put-mutable-item"·id="toc-entry-11">put_mutable_item()</a></li>
49 <li><a·class="reference·internal"·href="#get-infohashes-sample"·id="toc-entry-13">get_infohashes_sample()</a></li>48 <li><a·class="reference·internal"·href="#get-infohashes-sample"·id="toc-entry-12">get_infohashes_sample()</a></li>
50 <li><a·class="reference·internal"·href="#tick"·id="toc-entry-14">tick()</a></li>49 <li><a·class="reference·internal"·href="#tick"·id="toc-entry-13">tick()</a></li>
51 <li><a·class="reference·internal"·href="#counters"·id="toc-entry-15">counters()</a></li>50 <li><a·class="reference·internal"·href="#counters"·id="toc-entry-14">counters()</a></li>
52 </ul>51 </ul>
53 </li>52 </li>
 53 <li><a·class="reference·internal"·href="#dht-state"·id="toc-entry-15">dht_state</a></li>
54 <li><a·class="reference·internal"·href="#dht-default-storage-constructor"·id="toc-entry-16">dht_default_storage_constructor()</a></li>54 <li><a·class="reference·internal"·href="#dht-default-storage-constructor"·id="toc-entry-16">dht_default_storage_constructor()</a></li>
55 <li><a·class="reference·internal"·href="#sign-mutable-item"·id="toc-entry-17">sign_mutable_item()</a></li>55 <li><a·class="reference·internal"·href="#sign-mutable-item"·id="toc-entry-17">sign_mutable_item()</a></li>
56 <li><a·class="reference·internal"·href="#announce-flags-t"·id="toc-entry-18">announce_flags_t</a></li>56 <li><a·class="reference·internal"·href="#announce-flags-t"·id="toc-entry-18">announce_flags_t</a></li>
57 </ul>57 </ul>
58 </div>58 </div>
59 <a·name="dht_state"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+dht_state&labels=documentation&body=Documentation+under+heading+%22class+dht_state%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="dht-state"> 
60 <h1>dht_state</h1> 
61 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/kademlia/dht_state.hpp">libtorrent/kademlia/dht_state.hpp</a>&quot;</p> 
62 <p>This·structure·helps·to·store·and·load·the·state 
63 of·the·<tt·class="docutils·literal">dht_tracker</tt>. 
64 At·this·moment·the·library·is·only·a·dual·stack 
65 implementation·of·the·DHT.·See·<a·class="reference·external"·href="https://www.bittorrent.org/beps/bep_0032.html">BEP·32</a></p> 
66 <pre·class="literal-block"> 
67 struct·dht_state 
68 { 
69 ···void·<strong>clear</strong>·(); 
  
70 ···node_ids_t·nids; 
71 ···std::vector&lt;udp::endpoint&gt;·nodes; 
72 ···std::vector&lt;udp::endpoint&gt;·nodes6; 
73 }; 
74 </pre> 
75 <a·name="nodes"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_state%3A%3A%5Bnodes%5D&labels=documentation&body=Documentation+under+heading+%22dht_state%3A%3A%5Bnodes%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> 
76 <dt>nodes</dt> 
77 <dd>the·bootstrap·nodes·saved·from·the·buckets·node</dd> 
78 </dl> 
79 <a·name="nodes6"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_state%3A%3A%5Bnodes6%5D&labels=documentation&body=Documentation+under+heading+%22dht_state%3A%3A%5Bnodes6%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> 
80 <dt>nodes6</dt> 
81 <dd>the·bootstrap·nodes·saved·from·the·IPv6·buckets·node</dd> 
82 </dl> 
83 <a·name="dht_storage_counters"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+dht_storage_counters&labels=documentation&body=Documentation+under+heading+%22class+dht_storage_counters%22+could+be+improved">report·issue</a>]</span></div>59 <a·name="dht_storage_counters"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+dht_storage_counters&labels=documentation&body=Documentation+under+heading+%22class+dht_storage_counters%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="dht-storage-counters">
84 <div·class="section"·id="dht-storage-counters"> 
85 <h1>dht_storage_counters</h1>60 <h1>dht_storage_counters</h1>
86 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/kademlia/dht_storage.hpp">libtorrent/kademlia/dht_storage.hpp</a>&quot;</p>61 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/kademlia/dht_storage.hpp">libtorrent/kademlia/dht_storage.hpp</a>&quot;</p>
87 <p>This·structure·hold·the·relevant·<a·class="reference·external"·href="reference-Stats.html#counters">counters</a>·for·the·storage</p>62 <p>This·structure·hold·the·relevant·<a·class="reference·external"·href="reference-Stats.html#counters">counters</a>·for·the·storage</p>
88 <pre·class="literal-block">63 <pre·class="literal-block">
89 struct·dht_storage_counters64 struct·dht_storage_counters
90 {65 {
91 ···void·<strong>reset</strong>·();66 ···void·<strong>reset</strong>·();
Offset 308, 16 lines modifiedOffset 282, 42 lines modified
308 <a·name="counters()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_storage_interface%3A%3A%5Bcounters%28%29%5D&labels=documentation&body=Documentation+under+heading+%22dht_storage_interface%3A%3A%5Bcounters%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>282 <a·name="counters()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_storage_interface%3A%3A%5Bcounters%28%29%5D&labels=documentation&body=Documentation+under+heading+%22dht_storage_interface%3A%3A%5Bcounters%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
309 <div·class="section"·id="counters">283 <div·class="section"·id="counters">
310 <h2>counters()</h2>284 <h2>counters()</h2>
311 <pre·class="literal-block">285 <pre·class="literal-block">
312 virtual·dht_storage_counters·<strong>counters</strong>·()·const·=·0;286 virtual·dht_storage_counters·<strong>counters</strong>·()·const·=·0;
313 </pre>287 </pre>
314 <p>return·stats·<a·class="reference·external"·href="reference-Stats.html#counters">counters</a>·for·the·store</p>288 <p>return·stats·<a·class="reference·external"·href="reference-Stats.html#counters">counters</a>·for·the·store</p>
315 <a·name="dht_default_storage_constructor()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_default_storage_constructor%28%29&labels=documentation&body=Documentation+under+heading+%22dht_default_storage_constructor[·...·truncated·by·diffoscope;·len:·6,·SHA:·675f9db516feb02adbd7870312c7cd49fa8ca95f8748c6646ab0fe53776c531c·...·]%22+could+be+improved">report·issue</a>]</span></div>289 <a·name="dht_state"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+dht_state&labels=documentation&body=Documentation+under+heading+%22class+dht_state%22+could+be+improved">report·issue</a>]</span></div>
316 </div>290 </div>
 291 <div·class="section"·id="dht-state">
 292 <h1>dht_state</h1>
 293 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/kademlia/dht_state.hpp">libtorrent/kademlia/dht_state.hpp</a>&quot;</p>
 294 <p>This·structure·helps·to·store·and·load·the·state
 295 of·the·<tt·class="docutils·literal">dht_tracker</tt>.
 296 At·this·moment·the·library·is·only·a·dual·stack
 297 implementation·of·the·DHT.·See·<a·class="reference·external"·href="https://www.bittorrent.org/beps/bep_0032.html">BEP·32</a></p>
 298 <pre·class="literal-block">
 299 struct·dht_state
 300 {
 301 ···void·<strong>clear</strong>·();
  
 302 ···node_ids_t·nids;
 303 ···std::vector&lt;udp::endpoint&gt;·nodes;
 304 ···std::vector&lt;udp::endpoint&gt;·nodes6;
 305 };
 306 </pre>
 307 <a·name="nodes"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_state%3A%3A%5Bnodes%5D&labels=documentation&body=Documentation+under+heading+%22dht_state%3A%3A%5Bnodes%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">
 308 <dt>nodes</dt>
 309 <dd>the·bootstrap·nodes·saved·from·the·buckets·node</dd>
 310 </dl>
 311 <a·name="nodes6"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_state%3A%3A%5Bnodes6%5D&labels=documentation&body=Documentation+under+heading+%22dht_state%3A%3A%5Bnodes6%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">
 312 <dt>nodes6</dt>
 313 <dd>the·bootstrap·nodes·saved·from·the·IPv6·buckets·node</dd>
 314 </dl>
 315 <a·name="dht_default_storage_constructor()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_default_storage_constructor%28%29&labels=documentation&body=Documentation+under+heading+%22dht_default_storage_constructor%28%29%22+could+be+improved">report·issue</a>]</span></div>
317 <div·class="section"·id="dht-default-storage-constructor">316 <div·class="section"·id="dht-default-storage-constructor">
318 <h1>dht_default_storage_constructor()</h1>317 <h1>dht_default_storage_constructor()</h1>
319 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/kademlia/dht_storage.hpp">libtorrent/kademlia/dht_storage.hpp</a>&quot;</p>318 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/kademlia/dht_storage.hpp">libtorrent/kademlia/dht_storage.hpp</a>&quot;</p>
320 <pre·class="literal-block">319 <pre·class="literal-block">
321 std::unique_ptr&lt;dht_storage_interface&gt;·<strong>dht_default_storage_constructor</strong>·(320 std::unique_ptr&lt;dht_storage_interface&gt;·<strong>dht_default_storage_constructor</strong>·(
322 ···settings_interface·const&amp;·settings);321 ···settings_interface·const&amp;·settings);
323 </pre>322 </pre>
2.56 KB
html2text {}
    
Offset 1, 49 lines modifiedOffset 1, 30 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·dht_state 
6 ····*·dht_storage_counters5 ····*·dht_storage_counters
7 ··········o·reset()6 ··········o·reset()
8 ····*·dht_storage_interface7 ····*·dht_storage_interface
9 ··········o·update_node_ids()8 ··········o·update_node_ids()
10 ··········o·get_peers()9 ··········o·get_peers()
11 ··········o·announce_peer()10 ··········o·announce_peer()
12 ··········o·get_immutable_item()11 ··········o·get_immutable_item()
13 ··········o·put_immutable_item()12 ··········o·put_immutable_item()
14 ··········o·get_mutable_item_seq()13 ··········o·get_mutable_item_seq()
15 ··········o·get_mutable_item()14 ··········o·get_mutable_item()
16 ··········o·put_mutable_item()15 ··········o·put_mutable_item()
17 ··········o·get_infohashes_sample()16 ··········o·get_infohashes_sample()
18 ··········o·tick()17 ··········o·tick()
19 ··········o·counters()18 ··········o·counters()
 19 ····*·dht_state
20 ····*·dht_default_storage_constructor()20 ····*·dht_default_storage_constructor()
21 ····*·sign_mutable_item()21 ····*·sign_mutable_item()
22 ····*·announce_flags_t22 ····*·announce_flags_t
23 [report_issue]23 [report_issue]
24 ******·dht_state·****** 
25 Declared·in·"libtorrent/kademlia/dht_state.hpp" 
26 This·structure·helps·to·store·and·load·the·state·of·the·dht_tracker.·At·this 
27 moment·the·library·is·only·a·dual·stack·implementation·of·the·DHT.·See·BEP_32 
28 struct·dht_state 
29 { 
30 ···void·clear·(); 
  
31 ···node_ids_t·nids; 
32 ···std::vector<udp::endpoint>·nodes; 
33 ···std::vector<udp::endpoint>·nodes6; 
34 }; 
35 [report_issue] 
36 ··nodes 
37 ······the·bootstrap·nodes·saved·from·the·buckets·node 
38 [report_issue] 
39 ··nodes6 
40 ······the·bootstrap·nodes·saved·from·the·IPv6·buckets·node 
41 [report_issue] 
42 ******·dht_storage_counters·******24 ******·dht_storage_counters·******
43 Declared·in·"libtorrent/kademlia/dht_storage.hpp"25 Declared·in·"libtorrent/kademlia/dht_storage.hpp"
44 This·structure·hold·the·relevant·counters·for·the·storage26 This·structure·hold·the·relevant·counters·for·the·storage
45 struct·dht_storage_counters27 struct·dht_storage_counters
46 {28 {
47 ···void·reset·();29 ···void·reset·();
  
Offset 209, 14 lines modifiedOffset 190, 33 lines modified
209 For·implementers:·Use·this·functions·for·expire·peers·or·items·or·any·other190 For·implementers:·Use·this·functions·for·expire·peers·or·items·or·any·other
210 storage·cleanup.191 storage·cleanup.
211 [report_issue]192 [report_issue]
212 *****·counters()·*****193 *****·counters()·*****
213 virtual·dht_storage_counters·counters·()·const·=·0;194 virtual·dht_storage_counters·counters·()·const·=·0;
214 return·stats·counters·for·the·store195 return·stats·counters·for·the·store
215 [report_issue]196 [report_issue]
 197 ******·dht_state·******
 198 Declared·in·"libtorrent/kademlia/dht_state.hpp"
 199 This·structure·helps·to·store·and·load·the·state·of·the·dht_tracker.·At·this
 200 moment·the·library·is·only·a·dual·stack·implementation·of·the·DHT.·See·BEP_32
 201 struct·dht_state
 202 {
 203 ···void·clear·();
  
 204 ···node_ids_t·nids;
 205 ···std::vector<udp::endpoint>·nodes;
 206 ···std::vector<udp::endpoint>·nodes6;
 207 };
 208 [report_issue]
 209 ··nodes
 210 ······the·bootstrap·nodes·saved·from·the·buckets·node
 211 [report_issue]
 212 ··nodes6
 213 ······the·bootstrap·nodes·saved·from·the·IPv6·buckets·node
 214 [report_issue]
216 ******·dht_default_storage_constructor()·******215 ******·dht_default_storage_constructor()·******
217 Declared·in·"libtorrent/kademlia/dht_storage.hpp"216 Declared·in·"libtorrent/kademlia/dht_storage.hpp"
218 std::unique_ptr<dht_storage_interface>·dht_default_storage_constructor·(217 std::unique_ptr<dht_storage_interface>·dht_default_storage_constructor·(
219 ···settings_interface·const&·settings);218 ···settings_interface·const&·settings);
220 constructor·for·the·default·DHT·storage.·The·DHT·storage·is·responsible·for219 constructor·for·the·default·DHT·storage.·The·DHT·storage·is·responsible·for
221 maintaining·peers·and·mutable·and·immutable·items·announced·and·stored/put·to220 maintaining·peers·and·mutable·and·immutable·items·announced·and·stored/put·to
222 the·DHT·node.221 the·DHT·node.
52.9 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Error_Codes.html
    
Offset 33, 30 lines modifiedOffset 33, 30 lines modified
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#storage-error"·id="toc-entry-1">storage_error</a><ul>35 <li><a·class="reference·internal"·href="#storage-error"·id="toc-entry-1">storage_error</a><ul>
36 <li><a·class="reference·internal"·href="#bool"·id="toc-entry-2">bool()</a></li>36 <li><a·class="reference·internal"·href="#bool"·id="toc-entry-2">bool()</a></li>
37 <li><a·class="reference·internal"·href="#file"·id="toc-entry-3">file()</a></li>37 <li><a·class="reference·internal"·href="#file"·id="toc-entry-3">file()</a></li>
38 </ul>38 </ul>
39 </li>39 </li>
40 <li><a·class="reference·internal"·href="#gzip-category"·id="toc-entry-4">gzip_category()</a></li> 
41 <li><a·class="reference·internal"·href="#upnp-category"·id="toc-entry-5">upnp_category()</a></li> 
42 <li><a·class="reference·internal"·href="#bdecode-category"·id="toc-entry-6">bdecode_category()</a></li> 
43 <li><a·class="reference·internal"·href="#pcp-category"·id="toc-entry-7">pcp_category()</a></li> 
44 <li><a·class="reference·internal"·href="#i2p-category"·id="toc-entry-8">i2p_category()</a></li> 
45 <li><a·class="reference·internal"·href="#libtorrent-category"·id="toc-entry-9">libtorrent_category()</a></li>40 <li><a·class="reference·internal"·href="#libtorrent-category"·id="toc-entry-4">libtorrent_category()</a></li>
46 <li><a·class="reference·internal"·href="#http-category"·id="toc-entry-10">http_category()</a></li>41 <li><a·class="reference·internal"·href="#http-category"·id="toc-entry-5">http_category()</a></li>
 42 <li><a·class="reference·internal"·href="#i2p-category"·id="toc-entry-6">i2p_category()</a></li>
 43 <li><a·class="reference·internal"·href="#bdecode-category"·id="toc-entry-7">bdecode_category()</a></li>
 44 <li><a·class="reference·internal"·href="#pcp-category"·id="toc-entry-8">pcp_category()</a></li>
47 <li><a·class="reference·internal"·href="#socks-category"·id="toc-entry-11">socks_category()</a></li>45 <li><a·class="reference·internal"·href="#socks-category"·id="toc-entry-9">socks_category()</a></li>
 46 <li><a·class="reference·internal"·href="#gzip-category"·id="toc-entry-10">gzip_category()</a></li>
 47 <li><a·class="reference·internal"·href="#upnp-category"·id="toc-entry-11">upnp_category()</a></li>
48 <li><a·class="reference·internal"·href="#enum-error-code-enum"·id="toc-entry-12">enum·error_code_enum</a></li>48 <li><a·class="reference·internal"·href="#enum-error-code-enum"·id="toc-entry-12">enum·error_code_enum</a></li>
 49 <li><a·class="reference·internal"·href="#enum-http-errors"·id="toc-entry-13">enum·http_errors</a></li>
 50 <li><a·class="reference·internal"·href="#enum-i2p-error-code"·id="toc-entry-14">enum·i2p_error_code</a></li>
49 <li><a·class="reference·internal"·href="#enum-error-code-enum-1"·id="toc-entry-13">enum·error_code_enum</a></li>51 <li><a·class="reference·internal"·href="#enum-error-code-enum-1"·id="toc-entry-15">enum·error_code_enum</a></li>
50 <li><a·class="reference·internal"·href="#enum-error-code-enum-2"·id="toc-entry-14">enum·error_code_enum</a></li> 
51 <li><a·class="reference·internal"·href="#enum-pcp-errors"·id="toc-entry-15">enum·pcp_errors</a></li>52 <li><a·class="reference·internal"·href="#enum-pcp-errors"·id="toc-entry-16">enum·pcp_errors</a></li>
52 <li><a·class="reference·internal"·href="#enum-i2p-error-code"·id="toc-entry-16">enum·i2p_error_code</a></li> 
53 <li><a·class="reference·internal"·href="#enum-error-code-enum-3"·id="toc-entry-17">enum·error_code_enum</a></li> 
54 <li><a·class="reference·internal"·href="#enum-http-errors"·id="toc-entry-18">enum·http_errors</a></li> 
55 <li><a·class="reference·internal"·href="#enum-socks-error-code"·id="toc-entry-19">enum·socks_error_code</a></li>53 <li><a·class="reference·internal"·href="#enum-socks-error-code"·id="toc-entry-17">enum·socks_error_code</a></li>
 54 <li><a·class="reference·internal"·href="#enum-error-code-enum-2"·id="toc-entry-18">enum·error_code_enum</a></li>
 55 <li><a·class="reference·internal"·href="#enum-error-code-enum-3"·id="toc-entry-19">enum·error_code_enum</a></li>
56 </ul>56 </ul>
57 </div>57 </div>
58 <a·name="storage_error"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+storage_error&labels=documentation&body=Documentation+under+heading+%22class+storage_error%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="storage-error">58 <a·name="storage_error"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+storage_error&labels=documentation&body=Documentation+under+heading+%22class+storage_error%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="storage-error">
59 <h1>storage_error</h1>59 <h1>storage_error</h1>
60 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>&quot;</p>60 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>&quot;</p>
61 <p>used·by·storage·to·return·errors61 <p>used·by·storage·to·return·errors
62 also·includes·which·underlying·file·the62 also·includes·which·underlying·file·the
Offset 94, 426 lines modifiedOffset 94, 80 lines modified
94 <dd>the·error·that·occurred</dd>94 <dd>the·error·that·occurred</dd>
95 </dl>95 </dl>
96 <a·name="operation"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:storage_error%3A%3A%5Boperation%5D&labels=documentation&body=Documentation+under+heading+%22storage_error%3A%3A%5Boperation%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">96 <a·name="operation"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:storage_error%3A%3A%5Boperation%5D&labels=documentation&body=Documentation+under+heading+%22storage_error%3A%3A%5Boperation%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">
97 <dt>operation</dt>97 <dt>operation</dt>
98 <dd>A·code·from·<a·class="reference·external"·href="reference-Alerts.html#operation_t">operation_t</a>·enum,·indicating·what98 <dd>A·code·from·<a·class="reference·external"·href="reference-Alerts.html#operation_t">operation_t</a>·enum,·indicating·what
99 kind·of·operation·failed.</dd>99 kind·of·operation·failed.</dd>
100 </dl>100 </dl>
101 <a·name="gzip_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:gzip_category%28%29&labels=documentation&body=Documentation+under+heading+%22gzip_category%28%29%22+could+be+improved">report·issue</a>]</span></div>101 <a·name="libtorrent_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:libtorrent_category%28%29&labels=documentation&body=Documentation+under+heading+%22libtorrent_category%28%29%22+could+be+improved">report·issue</a>]</span></div>
102 </div>102 </div>
103 <div·class="section"·id="gzip-category">103 <div·class="section"·id="libtorrent-category">
104 <h1>gzip_category()</h1>104 <h1>libtorrent_category()</h1>
105 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/gzip.hpp">libtorrent/gzip.hpp</a>&quot;</p>105 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>&quot;</p>
106 <pre·class="literal-block">106 <pre·class="literal-block">
107 boost::system::error_category&amp;·<strong>gzip_category</strong>·();107 boost::system::error_category&amp;·<strong>libtorrent_category</strong>·();
108 </pre>108 </pre>
109 <p>get·the·<tt·class="docutils·literal">error_category</tt>·for·zip·errors</p>109 <p>return·the·instance·of·the·libtorrent_error_category·which
 110 maps·libtorrent·error·codes·to·human·readable·error·messages.</p>
110 <a·name="upnp_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:upnp_category%28%29&labels=documentation&body=Documentation+under+heading+%22upnp_category%28%29%22+could+be+improved">report·issue</a>]</span></div>111 <a·name="http_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:http_category%28%29&labels=documentation&body=Documentation+under+heading+%22http_category%28%29%22+could+be+improved">report·issue</a>]</span></div>
111 <div·class="section"·id="upnp-category">112 <div·class="section"·id="http-category">
112 <h1>upnp_category()</h1>113 <h1>http_category()</h1>
113 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/upnp.hpp">libtorrent/upnp.hpp</a>&quot;</p>114 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>&quot;</p>
114 <pre·class="literal-block">115 <pre·class="literal-block">
115 boost::system::error_category&amp;·<strong>upnp_category</strong>·();116 boost::system::error_category&amp;·<strong>http_category</strong>·();
116 </pre>117 </pre>
117 <p>the·boost.system·error·category·for·UPnP·errors</p>118 <p>returns·the·error_category·for·HTTP·errors</p>
 119 <a·name="i2p_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:i2p_category%28%29&labels=documentation&body=Documentation+under+heading+%22i2p_category%28%29%22+could+be+improved">report·issue</a>]</span></div>
 120 <div·class="section"·id="i2p-category">
 121 <h1>i2p_category()</h1>
 122 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/i2p_stream.hpp">libtorrent/i2p_stream.hpp</a>&quot;</p>
 123 <pre·class="literal-block">
 124 boost::system::error_category&amp;·<strong>i2p_category</strong>·();
 125 </pre>
 126 <p>returns·the·error·category·for·I2P·errors</p>
118 <a·name="bdecode_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_category%28%29&labels=documentation&body=Documentation+under+heading+%22bdecode_category%28%29%22+could+be+improved">report·issue</a>]</span></div>127 <a·name="bdecode_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_category%28%29&labels=documentation&body=Documentation+under+heading+%22bdecode_category%28%29%22+could+be+improved">report·issue</a>]</span></div>
119 <div·class="section"·id="bdecode-category">128 <div·class="section"·id="bdecode-category">
120 <h1>bdecode_category()</h1>129 <h1>bdecode_category()</h1>
121 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/bdecode.hpp">libtorrent/bdecode.hpp</a>&quot;</p>130 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/bdecode.hpp">libtorrent/bdecode.hpp</a>&quot;</p>
122 <pre·class="literal-block">131 <pre·class="literal-block">
123 boost::system::error_category&amp;·<strong>bdecode_category</strong>·();132 boost::system::error_category&amp;·<strong>bdecode_category</strong>·();
124 </pre>133 </pre>
125 <a·name="pcp_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:pcp_category%28%29&labels=documentation&body=Documentation+under+heading+%22pcp_category%28%29%22+could+be+improved">report·issue</a>]</span></div>134 <a·name="pcp_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:pcp_category%28%29&labels=documentation&body=Documentation+under+heading+%22pcp_category%28%29%22+could+be+improved">report·issue</a>]</span></div>
126 <div·class="section"·id="pcp-category">135 <div·class="section"·id="pcp-category">
127 <h1>pcp_category()</h1>136 <h1>pcp_category()</h1>
128 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/natpmp.hpp">libtorrent/natpmp.hpp</a>&quot;</p>137 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/natpmp.hpp">libtorrent/natpmp.hpp</a>&quot;</p>
129 <pre·class="literal-block">138 <pre·class="literal-block">
130 boost::system::error_category&amp;·<strong>pcp_category</strong>·();139 boost::system::error_category&amp;·<strong>pcp_category</strong>·();
131 </pre>140 </pre>
132 <a·name="i2p_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:i2p_category%28%29&labels=documentation&body=Documentation+under+heading+%22i2p_category%28%29%22+could+be+improved">report·issue</a>]</span></div> 
133 <div·class="section"·id="i2p-category"> 
134 <h1>i2p_category()</h1> 
135 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/i2p_stream.hpp">libtorrent/i2p_stream.hpp</a>&quot;</p> 
136 <pre·class="literal-block"> 
137 boost::system::error_category&amp;·<strong>i2p_category</strong>·(); 
138 </pre> 
139 <p>returns·the·error·category·for·I2P·errors</p> 
140 <a·name="libtorrent_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:libtorrent_category%28%29&labels=documentation&body=Documentation+under+heading+%22libtorrent_category%28%29%22+could+be+improved">report·issue</a>]</span></div> 
141 <div·class="section"·id="libtorrent-category"> 
142 <h1>libtorrent_category()</h1> 
143 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>&quot;</p> 
144 <pre·class="literal-block"> 
145 boost::system::error_category&amp;·<strong>libtorrent_category</strong>·(); 
146 </pre> 
147 <p>return·the·instance·of·the·libtorrent_error_category·which 
148 maps·libtorrent·error·codes·to·human·readable·error·messages.</p> 
149 <a·name="http_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:http_category%28%29&labels=documentation&body=Documentation+under+heading+%22http_category%28%29%22+could+be+improved">report·issue</a>]</span></div> 
150 <div·class="section"·id="http-category"> 
151 <h1>http_category()</h1> 
152 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>&quot;</p> 
153 <pre·class="literal-block"> 
154 boost::system::error_category&amp;·<strong>http_category</strong>·(); 
155 </pre> 
156 <p>returns·the·error_category·for·HTTP·errors</p> 
157 <a·name="socks_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:socks_category%28%29&labels=documentation&body=Documentation+under+heading+%22socks_category%28%29%22+could+be+improved">report·issue</a>]</span></div>141 <a·name="socks_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:socks_category%28%29&labels=documentation&body=Documentation+under+heading+%22socks_category%28%29%22+could+be+improved">report·issue</a>]</span></div>
158 <div·class="section"·id="socks-category">142 <div·class="section"·id="socks-category">
159 <h1>socks_category()</h1>143 <h1>socks_category()</h1>
160 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/socks5_stream.hpp">libtorrent/socks5_stream.hpp</a>&quot;</p>144 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/socks5_stream.hpp">libtorrent/socks5_stream.hpp</a>&quot;</p>
161 <pre·class="literal-block">145 <pre·class="literal-block">
162 boost::system::error_category&amp;·<strong>socks_category</strong>·();146 boost::system::error_category&amp;·<strong>socks_category</strong>·();
163 </pre>147 </pre>
164 <p>returns·the·error_category·for·SOCKS5·errors</p>148 <p>returns·the·error_category·for·SOCKS5·errors</p>
165 <a·name="error_code_enum"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:enum+error_code_enum&labels=documentation&body=Documentation+under+heading+%22enum+error_code_enum%22+could+be+improved">report·issue</a>]</span></div> 
166 <div·class="section"·id="enum-error-code-enum"> 
167 <h1>enum·error_code_enum</h1>149 <a·name="gzip_category()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:gzip_category%28%29&labels=documentation&body=Documentation+under+heading+%22gzip_category%28%29%22+could+be+improved">report·issue<[·...·truncated·by·diffoscope;·len:·16,·SHA:·35bd256b38f169caefd69e837f46257b19da8f2e5adef2a2b725bcd3ec1128c4·...·]>
 150 <div·class="section"·id="gzip-category">
 151 <h1>gzip_category()</h1>
168 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/gzip.hpp">libtorrent/gzip.hpp</a>&quot;</p>152 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/gzip.hpp">libtorrent/gzip.hpp</a>&quot;</p>
 153 <pre·class="literal-block">
Max diff block lines reached; 18271/34314 bytes (53.25%) of diff not shown.
19.3 KB
html2text {}
    
Offset 1, 30 lines modifiedOffset 1, 30 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·storage_error5 ····*·storage_error
6 ··········o·bool()6 ··········o·bool()
7 ··········o·file()7 ··········o·file()
8 ····*·gzip_category() 
9 ····*·upnp_category() 
10 ····*·bdecode_category() 
11 ····*·pcp_category() 
12 ····*·i2p_category() 
13 ····*·libtorrent_category()8 ····*·libtorrent_category()
14 ····*·http_category()9 ····*·http_category()
 10 ····*·i2p_category()
 11 ····*·bdecode_category()
 12 ····*·pcp_category()
15 ····*·socks_category()13 ····*·socks_category()
 14 ····*·gzip_category()
 15 ····*·upnp_category()
16 ····*·enum_error_code_enum16 ····*·enum_error_code_enum
17 ····*·enum_error_code_enum 
18 ····*·enum_error_code_enum 
19 ····*·enum_pcp_errors17 ····*·enum_http_errors
20 ····*·enum_i2p_error_code18 ····*·enum_i2p_error_code
21 ····*·enum_error_code_enum19 ····*·enum_error_code_enum
22 ····*·enum_http_errors20 ····*·enum_pcp_errors
23 ····*·enum_socks_error_code21 ····*·enum_socks_error_code
 22 ····*·enum_error_code_enum
 23 ····*·enum_error_code_enum
24 [report_issue]24 [report_issue]
25 ******·storage_error·******25 ******·storage_error·******
26 Declared·in·"libtorrent/error_code.hpp"26 Declared·in·"libtorrent/error_code.hpp"
27 used·by·storage·to·return·errors·also·includes·which·underlying·file·the·error27 used·by·storage·to·return·errors·also·includes·which·underlying·file·the·error
28 happened·on28 happened·on
29 struct·storage_error29 struct·storage_error
30 {30 {
Offset 49, 166 lines modifiedOffset 49, 52 lines modified
49 [report_issue]49 [report_issue]
50 ··ec50 ··ec
51 ······the·error·that·occurred51 ······the·error·that·occurred
52 [report_issue]52 [report_issue]
53 ··operation53 ··operation
54 ······A·code·from·operation_t·enum,·indicating·what·kind·of·operation·failed.54 ······A·code·from·operation_t·enum,·indicating·what·kind·of·operation·failed.
55 [report_issue]55 [report_issue]
56 ******·gzip_category()·****** 
57 Declared·in·"libtorrent/gzip.hpp" 
58 boost::system::error_category&·gzip_category·(); 
59 get·the·error_category·for·zip·errors 
60 [report_issue] 
61 ******·upnp_category()·****** 
62 Declared·in·"libtorrent/upnp.hpp" 
63 boost::system::error_category&·upnp_category·(); 
64 the·boost.system·error·category·for·UPnP·errors 
65 [report_issue] 
66 ******·bdecode_category()·****** 
67 Declared·in·"libtorrent/bdecode.hpp" 
68 boost::system::error_category&·bdecode_category·(); 
69 [report_issue] 
70 ******·pcp_category()·****** 
71 Declared·in·"libtorrent/natpmp.hpp" 
72 boost::system::error_category&·pcp_category·(); 
73 [report_issue] 
74 ******·i2p_category()·****** 
75 Declared·in·"libtorrent/i2p_stream.hpp" 
76 boost::system::error_category&·i2p_category·(); 
77 returns·the·error·category·for·I2P·errors 
78 [report_issue] 
79 ******·libtorrent_category()·******56 ******·libtorrent_category()·******
80 Declared·in·"libtorrent/error_code.hpp"57 Declared·in·"libtorrent/error_code.hpp"
81 boost::system::error_category&·libtorrent_category·();58 boost::system::error_category&·libtorrent_category·();
82 return·the·instance·of·the·libtorrent_error_category·which·maps·libtorrent59 return·the·instance·of·the·libtorrent_error_category·which·maps·libtorrent
83 error·codes·to·human·readable·error·messages.60 error·codes·to·human·readable·error·messages.
84 [report_issue]61 [report_issue]
85 ******·http_category()·******62 ******·http_category()·******
86 Declared·in·"libtorrent/error_code.hpp"63 Declared·in·"libtorrent/error_code.hpp"
87 boost::system::error_category&·http_category·();64 boost::system::error_category&·http_category·();
88 returns·the·error_category·for·HTTP·errors65 returns·the·error_category·for·HTTP·errors
89 [report_issue]66 [report_issue]
 67 ******·i2p_category()·******
 68 Declared·in·"libtorrent/i2p_stream.hpp"
 69 boost::system::error_category&·i2p_category·();
 70 returns·the·error·category·for·I2P·errors
 71 [report_issue]
 72 ******·bdecode_category()·******
 73 Declared·in·"libtorrent/bdecode.hpp"
 74 boost::system::error_category&·bdecode_category·();
 75 [report_issue]
 76 ******·pcp_category()·******
 77 Declared·in·"libtorrent/natpmp.hpp"
 78 boost::system::error_category&·pcp_category·();
 79 [report_issue]
90 ******·socks_category()·******80 ******·socks_category()·******
91 Declared·in·"libtorrent/socks5_stream.hpp"81 Declared·in·"libtorrent/socks5_stream.hpp"
92 boost::system::error_category&·socks_category·();82 boost::system::error_category&·socks_category·();
93 returns·the·error_category·for·SOCKS5·errors83 returns·the·error_category·for·SOCKS5·errors
94 [report_issue]84 [report_issue]
95 ******·enum·error_code_enum·******85 ******·gzip_category()·******
96 Declared·in·"libtorrent/gzip.hpp"86 Declared·in·"libtorrent/gzip.hpp"
 87 boost::system::error_category&·gzip_category·();
 88 get·the·error_category·for·zip·errors
97 ·_____________________________________________________________________________ 
98 |name______________________________|value|description_________________________| 
99 |no_error__________________________|0____|Not_an_error________________________| 
100 |invalid_gzip_header···············|1····|the·supplied·gzip·buffer·has·invalid| 
101 |__________________________________|_____|header______________________________| 
102 |··································|·····|the·gzip·buffer·would·inflate·to····| 
103 |inflated_data_too_large···········|2····|more·bytes·than·the·specified·······| 
104 |__________________________________|_____|maximum_size,_and_was_rejected._____| 
105 |data_did_not_terminate············|3····|available·inflate·data·did·not······| 
106 |__________________________________|_____|terminate___________________________| 
107 |space_exhausted···················|4····|output·space·exhausted·before·······| 
108 |__________________________________|_____|completing_inflate__________________| 
109 |invalid_block_type________________|5____|invalid_block_type_(type_==_3)______| 
110 |invalid_stored_block_length·······|6····|stored·block·length·did·not·match···| 
111 |__________________________________|_____|one's_complement____________________| 
112 |too_many_length_or_distance_codes·|7····|dynamic·block·code·description:·too·| 
113 |__________________________________|_____|many_length_or_distance_codes_______| 
114 |code_lengths_codes_incomplete·····|8····|dynamic·block·code·description:·code| 
115 |__________________________________|_____|lengths_codes_incomplete____________| 
116 |repeat_lengths_with_no_first_·····|9····|dynamic·block·code·description:·····| 
117 |length____________________________|_____|repeat_lengths_with_no_first_length_| 
118 |repeat_more_than_specified_lengths|10···|dynamic·block·code·description:·····| 
119 |__________________________________|_____|repeat_more_than_specified_lengths__| 
120 |invalid_literal_length_code_······|11···|dynamic·block·code·description:·····| 
121 |lengths___________________________|_____|invalid_literal/length_code_lengths_| 
122 |invalid_distance_code_lengths·····|12···|dynamic·block·code·description:·····| 
Max diff block lines reached; 13666/19694 bytes (69.39%) of diff not shown.
4.19 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Filter.html
Ordering differences only
    
Offset 56, 20 lines modifiedOffset 56, 20 lines modified
56 a·single·rule·that·allows·all·addresses·(0.0.0.0·-·255.255.255.255·for56 a·single·rule·that·allows·all·addresses·(0.0.0.0·-·255.255.255.255·for
57 the·IPv4·range,·and·the·equivalent·range·covering·all·addresses·for·the57 the·IPv4·range,·and·the·equivalent·range·covering·all·addresses·for·the
58 IPv6·range).</p>58 IPv6·range).</p>
59 <p>A·default·constructed·<a·class="reference·external"·href="reference-Filter.html#ip_filter">ip_filter</a>·does·not·filter·any·address.</p>59 <p>A·default·constructed·<a·class="reference·external"·href="reference-Filter.html#ip_filter">ip_filter</a>·does·not·filter·any·address.</p>
60 <pre·class="literal-block">60 <pre·class="literal-block">
61 struct·ip_filter61 struct·ip_filter
62 {62 {
63 ···ip_filter&amp;·<strong>operator=</strong>·(ip_filter&amp;&amp;);63 ···ip_filter&amp;·<strong>operator=</strong>·(ip_filter·const&amp;);
64 ···<strong>ip_filter</strong>·(ip_filter&amp;&amp;); 
65 ···<strong>ip_filter</strong>·();64 ···<strong>ip_filter</strong>·();
66 ···<strong>~ip_filter</strong>·();65 ···<strong>~ip_filter</strong>·();
 66 ···ip_filter&amp;·<strong>operator=</strong>·(ip_filter&amp;&amp;);
 67 ···<strong>ip_filter</strong>·(ip_filter&amp;&amp;);
67 ···<strong>ip_filter</strong>·(ip_filter·const&amp;);68 ···<strong>ip_filter</strong>·(ip_filter·const&amp;);
68 ···ip_filter&amp;·<strong>operator=</strong>·(ip_filter·const&amp;); 
69 ···bool·<strong>empty</strong>·()·const;69 ···bool·<strong>empty</strong>·()·const;
70 ···void·<strong>add_rule</strong>·(address·const&amp;·first,·address·const&amp;·last,·std::uint32_t·flags);70 ···void·<strong>add_rule</strong>·(address·const&amp;·first,·address·const&amp;·last,·std::uint32_t·flags);
71 ···std::uint32_t·<strong>access</strong>·(address·const&amp;·addr)·const;71 ···std::uint32_t·<strong>access</strong>·(address·const&amp;·addr)·const;
72 ···filter_tuple_t·<strong>export_filter</strong>·()·const;72 ···filter_tuple_t·<strong>export_filter</strong>·()·const;
  
73 ···enum·access_flags73 ···enum·access_flags
74 ···{74 ···{
Offset 153, 20 lines modifiedOffset 153, 20 lines modified
153 <p>the·port·filter·maps·non-overlapping·port·ranges·to·flags.·This153 <p>the·port·filter·maps·non-overlapping·port·ranges·to·flags.·This
154 is·primarily·used·to·indicate·whether·a·range·of·ports·should154 is·primarily·used·to·indicate·whether·a·range·of·ports·should
155 be·connected·to·or·not.·The·default·is·to·have·the·full·port155 be·connected·to·or·not.·The·default·is·to·have·the·full·port
156 range·(0-65535)·set·to·flag·0.</p>156 range·(0-65535)·set·to·flag·0.</p>
157 <pre·class="literal-block">157 <pre·class="literal-block">
158 class·port_filter158 class·port_filter
159 {159 {
160 ···port_filter&amp;·<strong>operator=</strong>·(port_filter·const&amp;); 
161 ···<strong>port_filter</strong>·(); 
162 ···<strong>port_filter</strong>·(port_filter&amp;&amp;); 
163 ···<strong>port_filter</strong>·(port_filter·const&amp;);160 ···<strong>port_filter</strong>·(port_filter·const&amp;);
164 ···port_filter&amp;·<strong>operator=</strong>·(port_filter&amp;&amp;); 
165 ···<strong>~port_filter</strong>·();161 ···<strong>~port_filter</strong>·();
 162 ···<strong>port_filter</strong>·();
 163 ···port_filter&amp;·<strong>operator=</strong>·(port_filter&amp;&amp;);
 164 ···port_filter&amp;·<strong>operator=</strong>·(port_filter·const&amp;);
 165 ···<strong>port_filter</strong>·(port_filter&amp;&amp;);
166 ···void·<strong>add_rule</strong>·(std::uint16_t·first,·std::uint16_t·last,·std::uint32_t·flags);166 ···void·<strong>add_rule</strong>·(std::uint16_t·first,·std::uint16_t·last,·std::uint32_t·flags);
167 ···std::uint32_t·<strong>access</strong>·(std::uint16_t·port)·const;167 ···std::uint32_t·<strong>access</strong>·(std::uint16_t·port)·const;
  
168 ···enum·access_flags168 ···enum·access_flags
169 ···{169 ···{
170 ······blocked,170 ······blocked,
171 ···};171 ···};
1.78 KB
html2text {}
    
Offset 18, 20 lines modifiedOffset 18, 20 lines modified
18 The·ip_filter·class·is·a·set·of·rules·that·uniquely·categorizes·all·ip18 The·ip_filter·class·is·a·set·of·rules·that·uniquely·categorizes·all·ip
19 addresses·as·allowed·or·disallowed.·The·default·constructor·creates·a·single19 addresses·as·allowed·or·disallowed.·The·default·constructor·creates·a·single
20 rule·that·allows·all·addresses·(0.0.0.0·-·255.255.255.255·for·the·IPv4·range,20 rule·that·allows·all·addresses·(0.0.0.0·-·255.255.255.255·for·the·IPv4·range,
21 and·the·equivalent·range·covering·all·addresses·for·the·IPv6·range).21 and·the·equivalent·range·covering·all·addresses·for·the·IPv6·range).
22 A·default·constructed·ip_filter·does·not·filter·any·address.22 A·default·constructed·ip_filter·does·not·filter·any·address.
23 struct·ip_filter23 struct·ip_filter
24 {24 {
25 ···ip_filter&·operator=·(ip_filter&&);25 ···ip_filter&·operator=·(ip_filter·const&);
26 ···ip_filter·(ip_filter&&); 
27 ···ip_filter·();26 ···ip_filter·();
28 ···~ip_filter·();27 ···~ip_filter·();
 28 ···ip_filter&·operator=·(ip_filter&&);
 29 ···ip_filter·(ip_filter&&);
29 ···ip_filter·(ip_filter·const&);30 ···ip_filter·(ip_filter·const&);
30 ···ip_filter&·operator=·(ip_filter·const&); 
31 ···bool·empty·()·const;31 ···bool·empty·()·const;
32 ···void·add_rule·(address·const&·first,·address·const&·last,·std::uint32_32 ···void·add_rule·(address·const&·first,·address·const&·last,·std::uint32_
33 t·flags);33 t·flags);
34 ···std::uint32_t·access·(address·const&·addr)·const;34 ···std::uint32_t·access·(address·const&·addr)·const;
35 ···filter_tuple_t·export_filter·()·const;35 ···filter_tuple_t·export_filter·()·const;
  
36 ···enum·access_flags36 ···enum·access_flags
Offset 80, 20 lines modifiedOffset 80, 20 lines modified
80 ******·port_filter·******80 ******·port_filter·******
81 Declared·in·"libtorrent/ip_filter.hpp"81 Declared·in·"libtorrent/ip_filter.hpp"
82 the·port·filter·maps·non-overlapping·port·ranges·to·flags.·This·is·primarily82 the·port·filter·maps·non-overlapping·port·ranges·to·flags.·This·is·primarily
83 used·to·indicate·whether·a·range·of·ports·should·be·connected·to·or·not.·The83 used·to·indicate·whether·a·range·of·ports·should·be·connected·to·or·not.·The
84 default·is·to·have·the·full·port·range·(0-65535)·set·to·flag·0.84 default·is·to·have·the·full·port·range·(0-65535)·set·to·flag·0.
85 class·port_filter85 class·port_filter
86 {86 {
87 ···port_filter&·operator=·(port_filter·const&); 
88 ···port_filter·(); 
89 ···port_filter·(port_filter&&); 
90 ···port_filter·(port_filter·const&);87 ···port_filter·(port_filter·const&);
91 ···port_filter&·operator=·(port_filter&&); 
92 ···~port_filter·();88 ···~port_filter·();
 89 ···port_filter·();
 90 ···port_filter&·operator=·(port_filter&&);
 91 ···port_filter&·operator=·(port_filter·const&);
 92 ···port_filter·(port_filter&&);
93 ···void·add_rule·(std::uint16_t·first,·std::uint16_t·last,·std::uint32_93 ···void·add_rule·(std::uint16_t·first,·std::uint16_t·last,·std::uint32_
94 t·flags);94 t·flags);
95 ···std::uint32_t·access·(std::uint16_t·port)·const;95 ···std::uint32_t·access·(std::uint16_t·port)·const;
  
96 ···enum·access_flags96 ···enum·access_flags
97 ···{97 ···{
98 ······blocked,98 ······blocked,
3.4 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-PeerClass.html
    
Offset 30, 15 lines modifiedOffset 30, 15 lines modified
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#peer-class-info"·id="toc-entry-1">peer_class_info</a></li>35 <li><a·class="reference·internal"·href="#peer-class-info"·id="toc-entry-1">peer_class_info</a></li>
36 <li><a·class="reference·internal"·href="#peer-class-type-filter"·id="toc-entry-2">peer_class_type_filter</a><ul>36 <li><a·class="reference·internal"·href="#peer-class-type-filter"·id="toc-entry-2">peer_class_type_filter</a><ul>
37 <li><a·class="reference·internal"·href="#add-remove"·id="toc-entry-3">add()·remove()</a></li>37 <li><a·class="reference·internal"·href="#remove-add"·id="toc-entry-3">remove()·add()</a></li>
38 <li><a·class="reference·internal"·href="#allow-disallow"·id="toc-entry-4">allow()·disallow()</a></li>38 <li><a·class="reference·internal"·href="#allow-disallow"·id="toc-entry-4">allow()·disallow()</a></li>
39 <li><a·class="reference·internal"·href="#apply"·id="toc-entry-5">apply()</a></li>39 <li><a·class="reference·internal"·href="#apply"·id="toc-entry-5">apply()</a></li>
40 <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-6">enum·socket_type_t</a></li>40 <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-6">enum·socket_type_t</a></li>
41 </ul>41 </ul>
42 </li>42 </li>
43 </ul>43 </ul>
44 </div>44 </div>
Offset 123, 17 lines modifiedOffset 123, 17 lines modified
123 ······ssl_tcp_socket,123 ······ssl_tcp_socket,
124 ······ssl_utp_socket,124 ······ssl_utp_socket,
125 ······i2p_socket,125 ······i2p_socket,
126 ······num_socket_types,126 ······num_socket_types,
127 ···};127 ···};
128 };128 };
129 </pre>129 </pre>
130 <a·name="add()"></a>130 <a·name="remove()"></a>
131 <a·name="remove()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_type_filter%3A%3A%5Badd%28%29+remove%28%29%5D&labels=documentation&body=Documentation+under+heading+%22peer_class_type_filter%3A%3A%5Bad[·...·truncated·by·diffoscope;·len:·105,·SHA:·1eb48dacb7050f27ab7419194f0a8113d2934b13be72ec2050c7e5a32f6cf102·...·]">131 <a·name="add()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_type_filter%3A%3A%5Bremove%28%29+add%28%29%5D&labels=documentation&body=Documentation+under+heading+%22peer_class_type_filter%3A%3A%5Bremov[·...·truncated·by·diffoscope;·len:·102,·SHA:·c40f3b2e2de81d19556aa32d64cbabec58a324f3665cb33e006a18f8dbae0e18·...·]">
132 <h2>add()·remove()</h2>132 <h2>remove()·add()</h2>
133 <pre·class="literal-block">133 <pre·class="literal-block">
134 void·<strong>remove</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class);134 void·<strong>remove</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class);
135 void·<strong>add</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class);135 void·<strong>add</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class);
136 </pre>136 </pre>
137 <p><tt·class="docutils·literal">add()</tt>·and·<tt·class="docutils·literal">remove()</tt>·adds·and·removes·a·peer·class·to·be·added137 <p><tt·class="docutils·literal">add()</tt>·and·<tt·class="docutils·literal">remove()</tt>·adds·and·removes·a·peer·class·to·be·added
138 to·new·peers·based·on·socket·type.</p>138 to·new·peers·based·on·socket·type.</p>
139 <a·name="allow()"></a>139 <a·name="allow()"></a>
1010 B
html2text {}
    
Offset 1, 14 lines modifiedOffset 1, 14 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·peer_class_info5 ····*·peer_class_info
6 ····*·peer_class_type_filter6 ····*·peer_class_type_filter
7 ··········o·add()_remove()7 ··········o·remove()_add()
8 ··········o·allow()_disallow()8 ··········o·allow()_disallow()
9 ··········o·apply()9 ··········o·apply()
10 ··········o·enum_socket_type_t10 ··········o·enum_socket_type_t
11 [report_issue]11 [report_issue]
12 ******·peer_class_info·******12 ******·peer_class_info·******
13 Declared·in·"libtorrent/peer_class.hpp"13 Declared·in·"libtorrent/peer_class.hpp"
14 holds·settings·for·a·peer·class.·Used·in·set_peer_class()·and·get_peer_class()14 holds·settings·for·a·peer·class.·Used·in·set_peer_class()·and·get_peer_class()
Offset 77, 15 lines modifiedOffset 77, 15 lines modified
77 ······ssl_tcp_socket,77 ······ssl_tcp_socket,
78 ······ssl_utp_socket,78 ······ssl_utp_socket,
79 ······i2p_socket,79 ······i2p_socket,
80 ······num_socket_types,80 ······num_socket_types,
81 ···};81 ···};
82 };82 };
83 [report_issue]83 [report_issue]
84 *****·add()·remove()·*****84 *****·remove()·add()·*****
85 void·remove·(socket_type_t·const·st,·peer_class_t·const·peer_class);85 void·remove·(socket_type_t·const·st,·peer_class_t·const·peer_class);
86 void·add·(socket_type_t·const·st,·peer_class_t·const·peer_class);86 void·add·(socket_type_t·const·st,·peer_class_t·const·peer_class);
87 add()·and·remove()·adds·and·removes·a·peer·class·to·be·added·to·new·peers·based87 add()·and·remove()·adds·and·removes·a·peer·class·to·be·added·to·new·peers·based
88 on·socket·type.88 on·socket·type.
89 [report_issue]89 [report_issue]
90 *****·allow()·disallow()·*****90 *****·allow()·disallow()·*****
91 void·disallow·(socket_type_t·const·st,·peer_class_t·const·peer_class);91 void·disallow·(socket_type_t·const·st,·peer_class_t·const·peer_class);
38.2 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Plugins.html
    
Offset 63, 32 lines modifiedOffset 63, 32 lines modified
63 <li><a·class="reference·internal"·href="#peer-plugin"·id="toc-entry-25">peer_plugin</a><ul>63 <li><a·class="reference·internal"·href="#peer-plugin"·id="toc-entry-25">peer_plugin</a><ul>
64 <li><a·class="reference·internal"·href="#type"·id="toc-entry-26">type()</a></li>64 <li><a·class="reference·internal"·href="#type"·id="toc-entry-26">type()</a></li>
65 <li><a·class="reference·internal"·href="#add-handshake"·id="toc-entry-27">add_handshake()</a></li>65 <li><a·class="reference·internal"·href="#add-handshake"·id="toc-entry-27">add_handshake()</a></li>
66 <li><a·class="reference·internal"·href="#on-disconnect"·id="toc-entry-28">on_disconnect()</a></li>66 <li><a·class="reference·internal"·href="#on-disconnect"·id="toc-entry-28">on_disconnect()</a></li>
67 <li><a·class="reference·internal"·href="#on-connected"·id="toc-entry-29">on_connected()</a></li>67 <li><a·class="reference·internal"·href="#on-connected"·id="toc-entry-29">on_connected()</a></li>
68 <li><a·class="reference·internal"·href="#on-handshake"·id="toc-entry-30">on_handshake()</a></li>68 <li><a·class="reference·internal"·href="#on-handshake"·id="toc-entry-30">on_handshake()</a></li>
69 <li><a·class="reference·internal"·href="#on-extension-handshake"·id="toc-entry-31">on_extension_handshake()</a></li>69 <li><a·class="reference·internal"·href="#on-extension-handshake"·id="toc-entry-31">on_extension_handshake()</a></li>
70 <li><a·class="reference·internal"·href="#on-have-none-on-not-interested-on-dont-have-on-have-all-on-unchoke-on-choke-on-allowed-fast-on-have-on-bitfield-on-request-on-interested"·id="toc-entry-32">on_have_none()·on_not_interested()·on_dont_have()·on_have_all()·on_unchoke()·on_choke()·on_allowed_fast[·...·truncated·by·diffoscope;·len:·42,·SHA:·e604157c54ae69cf22061c3692ff3710fa311dcf606f1f1340029773145cdf08·...·]_interested()</a></li>70 <li><a·class="reference·internal"·href="#on-choke-on-allowed-fast-on-have-on-unchoke-on-have-none-on-dont-have-on-have-all-on-interested-on-request-on-bitfield-on-not-interested"·id="toc-entry-32">on_choke()·on_allowed_fast()·on_have()·on_unchoke()·on_have_none()·on_dont_have()·on_have_all()·on_inte[·...·truncated·by·diffoscope;·len:·42,·SHA:·c302a6c666a8dd8cc25f05e897118c9e6db0223ea2351c1c72afe2fb1123aceb·...·]_interested()</a></li>
71 <li><a·class="reference·internal"·href="#on-piece"·id="toc-entry-33">on_piece()</a></li>71 <li><a·class="reference·internal"·href="#on-piece"·id="toc-entry-33">on_piece()</a></li>
72 <li><a·class="reference·internal"·href="#sent-unchoke-sent-have-sent-not-interested-sent-piece-sent-interested"·id="toc-entry-34">sent_unchoke()·sent_have()·sent_not_interested()·sent_piece()·sent_interested()</a></li>72 <li><a·class="reference·internal"·href="#sent-have-sent-interested-sent-unchoke-sent-not-interested-sent-piece"·id="toc-entry-34">sent_have()·sent_interested()·sent_unchoke()·sent_not_interested()·sent_piece()</a></li>
73 <li><a·class="reference·internal"·href="#sent-payload"·id="toc-entry-35">sent_payload()</a></li>73 <li><a·class="reference·internal"·href="#sent-payload"·id="toc-entry-35">sent_payload()</a></li>
74 <li><a·class="reference·internal"·href="#can-disconnect"·id="toc-entry-36">can_disconnect()</a></li>74 <li><a·class="reference·internal"·href="#can-disconnect"·id="toc-entry-36">can_disconnect()</a></li>
75 <li><a·class="reference·internal"·href="#on-extended"·id="toc-entry-37">on_extended()</a></li>75 <li><a·class="reference·internal"·href="#on-extended"·id="toc-entry-37">on_extended()</a></li>
76 <li><a·class="reference·internal"·href="#on-unknown-message"·id="toc-entry-38">on_unknown_message()</a></li>76 <li><a·class="reference·internal"·href="#on-unknown-message"·id="toc-entry-38">on_unknown_message()</a></li>
77 <li><a·class="reference·internal"·href="#on-piece-pass-on-piece-failed-1"·id="toc-entry-39">on_piece_pass()·on_piece_failed()</a></li>77 <li><a·class="reference·internal"·href="#on-piece-pass-on-piece-failed-1"·id="toc-entry-39">on_piece_pass()·on_piece_failed()</a></li>
78 <li><a·class="reference·internal"·href="#tick-1"·id="toc-entry-40">tick()</a></li>78 <li><a·class="reference·internal"·href="#tick-1"·id="toc-entry-40">tick()</a></li>
79 <li><a·class="reference·internal"·href="#write-request"·id="toc-entry-41">write_request()</a></li>79 <li><a·class="reference·internal"·href="#write-request"·id="toc-entry-41">write_request()</a></li>
80 </ul>80 </ul>
81 </li>81 </li>
82 <li><a·class="reference·internal"·href="#crypto-plugin"·id="toc-entry-42">crypto_plugin</a><ul>82 <li><a·class="reference·internal"·href="#crypto-plugin"·id="toc-entry-42">crypto_plugin</a><ul>
83 <li><a·class="reference·internal"·href="#decrypt"·id="toc-entry-43">decrypt()</a></li>83 <li><a·class="reference·internal"·href="#decrypt"·id="toc-entry-43">decrypt()</a></li>
84 </ul>84 </ul>
85 </li>85 </li>
86 <li><a·class="reference·internal"·href="#create-ut-pex-plugin"·id="toc-entry-44">create_ut_pex_plugin()</a></li> 
87 <li><a·class="reference·internal"·href="#create-smart-ban-plugin"·id="toc-entry-45">create_smart_ban_plugin()</a></li>86 <li><a·class="reference·internal"·href="#create-smart-ban-plugin"·id="toc-entry-44">create_smart_ban_plugin()</a></li>
 87 <li><a·class="reference·internal"·href="#create-ut-pex-plugin"·id="toc-entry-45">create_ut_pex_plugin()</a></li>
88 <li><a·class="reference·internal"·href="#create-ut-metadata-plugin"·id="toc-entry-46">create_ut_metadata_plugin()</a></li>88 <li><a·class="reference·internal"·href="#create-ut-metadata-plugin"·id="toc-entry-46">create_ut_metadata_plugin()</a></li>
89 </ul>89 </ul>
90 </div>90 </div>
91 <p>libtorrent·has·a·<a·class="reference·external"·href="reference-Plugins.html#plugin">plugin</a>·interface·for·implementing·extensions·to·the·protocol.91 <p>libtorrent·has·a·<a·class="reference·external"·href="reference-Plugins.html#plugin">plugin</a>·interface·for·implementing·extensions·to·the·protocol.
92 These·can·be·general·extensions·for·transferring·metadata·or·peer·exchange92 These·can·be·general·extensions·for·transferring·metadata·or·peer·exchange
93 extensions,·or·it·could·be·used·to·provide·a·way·to·customize·the·protocol93 extensions,·or·it·could·be·used·to·provide·a·way·to·customize·the·protocol
94 to·fit·a·particular·(closed)·network.</p>94 to·fit·a·particular·(closed)·network.</p>
Offset 190, 69 lines modifiedOffset 190, 69 lines modified
190 connection·object,·to·be·used·by·plugins.·This·is·a·low·level·interface·that190 connection·object,·to·be·used·by·plugins.·This·is·a·low·level·interface·that
191 may·not·be·stable·across·libtorrent·versions</p>191 may·not·be·stable·across·libtorrent·versions</p>
192 <pre·class="literal-block">192 <pre·class="literal-block">
193 struct·peer_connection_handle193 struct·peer_connection_handle
194 {194 {
195 ···explicit·<strong>peer_connection_handle</strong>·(std::weak_ptr&lt;peer_connection&gt;·impl);195 ···explicit·<strong>peer_connection_handle</strong>·(std::weak_ptr&lt;peer_connection&gt;·impl);
196 ···connection_type·<strong>type</strong>·()·const;196 ···connection_type·<strong>type</strong>·()·const;
197 ···peer_plugin·const*·<strong>find_plugin</strong>·(string_view·type)·const; 
198 ···void·<strong>add_extension</strong>·(std::shared_ptr&lt;peer_plugin&gt;);197 ···void·<strong>add_extension</strong>·(std::shared_ptr&lt;peer_plugin&gt;);
 198 ···peer_plugin·const*·<strong>find_plugin</strong>·(string_view·type)·const;
199 ···bool·<strong>is_seed</strong>·()·const;199 ···bool·<strong>is_seed</strong>·()·const;
200 ···bool·<strong>upload_only</strong>·()·const;200 ···bool·<strong>upload_only</strong>·()·const;
201 ···bool·<strong>has_piece</strong>·(piece_index_t·i)·const; 
202 ···peer_id·const&amp;·<strong>pid</strong>·()·const;201 ···peer_id·const&amp;·<strong>pid</strong>·()·const;
 202 ···bool·<strong>has_piece</strong>·(piece_index_t·i)·const;
203 ···bool·<strong>is_interesting</strong>·()·const;203 ···bool·<strong>is_interesting</strong>·()·const;
204 ···bool·<strong>is_choked</strong>·()·const;204 ···bool·<strong>is_choked</strong>·()·const;
205 ···bool·<strong>has_peer_choked</strong>·()·const;205 ···bool·<strong>has_peer_choked</strong>·()·const;
206 ···bool·<strong>is_peer_interested</strong>·()·const;206 ···bool·<strong>is_peer_interested</strong>·()·const;
207 ···void·<strong>choke_this_peer</strong>·();207 ···void·<strong>choke_this_peer</strong>·();
208 ···void·<strong>maybe_unchoke_this_peer</strong>·();208 ···void·<strong>maybe_unchoke_this_peer</strong>·();
209 ···void·<strong>get_peer_info</strong>·(peer_info&amp;·p)·const;209 ···void·<strong>get_peer_info</strong>·(peer_info&amp;·p)·const;
210 ···torrent_handle·<strong>associated_torrent</strong>·()·const;210 ···torrent_handle·<strong>associated_torrent</strong>·()·const;
211 ···<a·class="reference·external"·href="tcp::endpoint">tcp::endpoint</a>·const&amp;·<strong>remote</strong>·()·const;211 ···<a·class="reference·external"·href="tcp::endpoint">tcp::endpoint</a>·const&amp;·<strong>remote</strong>·()·const;
212 ···<a·class="reference·external"·href="tcp::endpoint">tcp::endpoint</a>·<strong>local_endpoint</strong>·()·const;212 ···<a·class="reference·external"·href="tcp::endpoint">tcp::endpoint</a>·<strong>local_endpoint</strong>·()·const;
213 ···bool·<strong>is_outgoing</strong>·()·const; 
214 ···bool·<strong>is_disconnecting</strong>·()·const;213 ···bool·<strong>is_connecting</strong>·()·const;
215 ···void·<strong>disconnect</strong>·(error_code·const&amp;·ec,·operation_t·op214 ···void·<strong>disconnect</strong>·(error_code·const&amp;·ec,·operation_t·op
216 ······,·disconnect_severity_t·=·peer_connection_interface::normal);215 ······,·disconnect_severity_t·=·peer_connection_interface::normal);
217 ···bool·<strong>is_connecting</strong>·()·const;216 ···bool·<strong>is_disconnecting</strong>·()·const;
218 ···bool·<strong>on_local_network</strong>·()·const;217 ···bool·<strong>is_outgoing</strong>·()·const;
219 ···bool·<strong>ignore_unchoke_slots</strong>·()·const;218 ···bool·<strong>ignore_unchoke_slots</strong>·()·const;
 219 ···bool·<strong>on_local_network</strong>·()·const;
220 ···bool·<strong>failed</strong>·()·const;220 ···bool·<strong>failed</strong>·()·const;
221 ···void·<strong>peer_log</strong>·(peer_log_alert::direction_t·direction221 ···void·<strong>peer_log</strong>·(peer_log_alert::direction_t·direction
222 ······,·char·const*·event,·char·const*·fmt·=·&quot;&quot;,·...)·const·TORRENT_FORMAT(4,5);222 ······,·char·const*·event,·char·const*·fmt·=·&quot;&quot;,·...)·const·TORRENT_FORMAT(4,5);
223 ···bool·<strong>should_log</strong>·(peer_log_alert::direction_t·direction)·const;223 ···bool·<strong>should_log</strong>·(peer_log_alert::direction_t·direction)·const;
224 ···bool·<strong>can_disconnect</strong>·(error_code·const&amp;·ec)·const;224 ···bool·<strong>can_disconnect</strong>·(error_code·const&amp;·ec)·const;
225 ···bool·<strong>has_metadata</strong>·()·const;225 ···bool·<strong>has_metadata</strong>·()·const;
226 ···bool·<strong>in_handshake</strong>·()·const;226 ···bool·<strong>in_handshake</strong>·()·const;
227 ···void·<strong>send_buffer</strong>·(char·const*·begin,·int·size);227 ···void·<strong>send_buffer</strong>·(char·const*·begin,·int·size);
228 ···std::time_t·<strong>last_seen_complete</strong>·()·const;228 ···std::time_t·<strong>last_seen_complete</strong>·()·const;
229 ···time_point·<strong>time_of_last_unchoke</strong>·()·const;229 ···time_point·<strong>time_of_last_unchoke</strong>·()·const;
230 ···bool·<strong>operator&lt;</strong>·(peer_connection_handle·const&amp;·o)·const; 
231 ···bool·<strong>operator!=</strong>·(peer_connection_handle·const&amp;·o)·const;230 ···bool·<strong>operator!=</strong>·(peer_connection_handle·const&amp;·o)·const;
232 ···bool·<strong>operator==</strong>·(peer_connection_handle·const&amp;·o)·const;231 ···bool·<strong>operator==</strong>·(peer_connection_handle·const&amp;·o)·const;
 232 ···bool·<strong>operator&lt;</strong>·(peer_connection_handle·const&amp;·o)·const;
233 ···std::shared_ptr&lt;peer_connection&gt;·<strong>native_handle</strong>·()·const;233 ···std::shared_ptr&lt;peer_connection&gt;·<strong>native_handle</strong>·()·const;
234 };234 };
235 </pre>235 </pre>
236 <a·name="bt_peer_connection_handle"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+bt_peer_connection_handle&labels=documentation&body=Documentation+under+heading+%22class+bt_peer_connection_handle%22+could+be+improved">report·issue</a>]</span></div>236 <a·name="bt_peer_connection_handle"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+bt_peer_connection_handle&labels=documentation&body=Documentation+under+heading+%22class+bt_peer_connection_handle%22+could+be+improved">report·issue</a>]</span></div>
237 <div·class="section"·id="bt-peer-connection-handle">237 <div·class="section"·id="bt-peer-connection-handle">
238 <h1>bt_peer_connection_handle</h1>238 <h1>bt_peer_connection_handle</h1>
239 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/peer_connection_handle.hpp">libtorrent/peer_connection_handle.hpp</a>&quot;</p>239 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/peer_connection_handle.hpp">libtorrent/peer_connection_handle.hpp</a>&quot;</p>
240 <p>The·<a·class="reference·external"·href="reference-Plugins.html#bt_peer_connection_handle">bt_peer_connection_handle</a>·provides·a·handle·to·the·internal·bittorrent240 <p>The·<a·class="reference·external"·href="reference-Plugins.html#bt_peer_connection_handle">bt_peer_connection_handle</a>·provides·a·handle·to·the·internal·bittorrent
241 peer·connection·object·to·plugins.·It's·low·level·and·may·not·be·a·stable·API241 peer·connection·object·to·plugins.·It's·low·level·and·may·not·be·a·stable·API
242 across·libtorrent·versions.</p>242 across·libtorrent·versions.</p>
243 <pre·class="literal-block">243 <pre·class="literal-block">
244 struct·bt_peer_connection_handle·:·peer_connection_handle244 struct·bt_peer_connection_handle·:·peer_connection_handle
245 {245 {
246 ···explicit·<strong>bt_peer_connection_handle</strong>·(peer_connection_handle·pc);246 ···explicit·<strong>bt_peer_connection_handle</strong>·(peer_connection_handle·pc);
247 ···bool·<strong>support_extensions</strong>·()·const; 
248 ···bool·<strong>packet_finished</strong>·()·const;247 ···bool·<strong>packet_finished</strong>·()·const;
 248 ···bool·<strong>support_extensions</strong>·()·const;
249 ···bool·<strong>supports_encryption</strong>·()·const;249 ···bool·<strong>supports_encryption</strong>·()·const;
250 ···void·<strong>switch_send_crypto</strong>·(std::shared_ptr&lt;crypto_plugin&gt;·crypto); 
251 ···void·<strong>switch_recv_crypto</strong>·(std::shared_ptr&lt;crypto_plugin&gt;·crypto);250 ···void·<strong>switch_recv_crypto</strong>·(std::shared_ptr&lt;crypto_plugin&gt;·crypto);
 251 ···void·<strong>switch_send_crypto</strong>·(std::shared_ptr&lt;crypto_plugin&gt;·crypto);
252 ···std::shared_ptr&lt;bt_peer_connection&gt;·<strong>native_handle</strong>·()·const;252 ···std::shared_ptr&lt;bt_peer_connection&gt;·<strong>native_handle</strong>·()·const;
253 };253 };
254 </pre>254 </pre>
255 <a·name="plugin"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+plugin&labels=documentation&body=Documentation+under+heading+%22class+plugin%22+could+be+improved">report·issue</a>]</span></div>255 <a·name="plugin"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+plugin&labels=documentation&body=Documentation+under+heading+%22class+plugin%22+could+be+improved">report·issue</a>]</span></div>
256 <div·class="section"·id="plugin">256 <div·class="section"·id="plugin">
257 <h1>plugin</h1>257 <h1>plugin</h1>
258 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/extensions.hpp">libtorrent/extensions.hpp</a>&quot;</p>258 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/extensions.hpp">libtorrent/extensions.hpp</a>&quot;</p>
Offset 545, 43 lines modifiedOffset 545, 43 lines modified
545 {545 {
546 ···virtual·string_view·<strong>type</strong>·()·const;546 ···virtual·string_view·<strong>type</strong>·()·const;
547 ···virtual·void·<strong>add_handshake</strong>·(entry&amp;);547 ···virtual·void·<strong>add_handshake</strong>·(entry&amp;);
548 ···virtual·void·<strong>on_disconnect</strong>·(error_code·const&amp;);548 ···virtual·void·<strong>on_disconnect</strong>·(error_code·const&amp;);
549 ···virtual·void·<strong>on_connected</strong>·();549 ···virtual·void·<strong>on_connected</strong>·();
550 ···virtual·bool·<strong>on_handshake</strong>·(span&lt;char·const&gt;);550 ···virtual·bool·<strong>on_handshake</strong>·(span&lt;char·const&gt;);
551 ···virtual·bool·<strong>on_extension_handshake</strong>·(bdecode_node·const&amp;);551 ···virtual·bool·<strong>on_extension_handshake</strong>·(bdecode_node·const&amp;);
552 ···virtual·bool·<strong>on_allowed_fast</strong>·(piece_index_t);552 ···virtual·bool·<strong>on_dont_have</strong>·(piece_index_t);
553 ···virtual·bool·<strong>on_unchoke</strong>·(); 
554 ···virtual·bool·<strong>on_interested</strong>·(); 
555 ···virtual·bool·<strong>on_have_all</strong>·();553 ···virtual·bool·<strong>on_have_all</strong>·();
556 ···virtual·bool·<strong>on_have</strong>·(piece_index_t);554 ···virtual·bool·<strong>on_request</strong>·(peer_request·const&amp;);
557 ···virtual·bool·<strong>on_choke</strong>·();555 ···virtual·bool·<strong>on_choke</strong>·();
 556 ···virtual·bool·<strong>on_interested</strong>·();
 557 ···virtual·bool·<strong>on_allowed_fast</strong>·(piece_index_t);
558 ···virtual·bool·<strong>on_have_none</strong>·();558 ···virtual·bool·<strong>on_have_none</strong>·();
559 ···virtual·bool·<strong>on_not_interested</strong>·(); 
Max diff block lines reached; 15408/25754 bytes (59.83%) of diff not shown.
12.9 KB
html2text {}
    
Offset 29, 31 lines modifiedOffset 29, 31 lines modified
29 ····*·peer_plugin29 ····*·peer_plugin
30 ··········o·type()30 ··········o·type()
31 ··········o·add_handshake()31 ··········o·add_handshake()
32 ··········o·on_disconnect()32 ··········o·on_disconnect()
33 ··········o·on_connected()33 ··········o·on_connected()
34 ··········o·on_handshake()34 ··········o·on_handshake()
35 ··········o·on_extension_handshake()35 ··········o·on_extension_handshake()
36 ··········o·on_have_none()_on_not_interested()_on_dont_have()_on_have_all()_on_ 
37 ············unchoke()_on_choke()_on_allowed_fast()_on_have()_on_bitfield()_on_36 ··········o·on_choke()_on_allowed_fast()_on_have()_on_unchoke()_on_have_none()
 37 ············on_dont_have()_on_have_all()_on_interested()_on_request()_on_
38 ············request()_on_interested()38 ············bitfield()_on_not_interested()
39 ··········o·on_piece()39 ··········o·on_piece()
40 ··········o·sent_unchoke()_sent_have()_sent_not_interested()_sent_piece()_sent_40 ··········o·sent_have()_sent_interested()_sent_unchoke()_sent_not_interested()
41 ············interested()41 ············sent_piece()
42 ··········o·sent_payload()42 ··········o·sent_payload()
43 ··········o·can_disconnect()43 ··········o·can_disconnect()
44 ··········o·on_extended()44 ··········o·on_extended()
45 ··········o·on_unknown_message()45 ··········o·on_unknown_message()
46 ··········o·on_piece_pass()_on_piece_failed()46 ··········o·on_piece_pass()_on_piece_failed()
47 ··········o·tick()47 ··········o·tick()
48 ··········o·write_request()48 ··········o·write_request()
49 ····*·crypto_plugin49 ····*·crypto_plugin
50 ··········o·decrypt()50 ··········o·decrypt()
51 ····*·create_ut_pex_plugin() 
52 ····*·create_smart_ban_plugin()51 ····*·create_smart_ban_plugin()
 52 ····*·create_ut_pex_plugin()
53 ····*·create_ut_metadata_plugin()53 ····*·create_ut_metadata_plugin()
54 libtorrent·has·a·plugin·interface·for·implementing·extensions·to·the·protocol.54 libtorrent·has·a·plugin·interface·for·implementing·extensions·to·the·protocol.
55 These·can·be·general·extensions·for·transferring·metadata·or·peer·exchange55 These·can·be·general·extensions·for·transferring·metadata·or·peer·exchange
56 extensions,·or·it·could·be·used·to·provide·a·way·to·customize·the·protocol·to56 extensions,·or·it·could·be·used·to·provide·a·way·to·customize·the·protocol·to
57 fit·a·particular·(closed)·network.57 fit·a·particular·(closed)·network.
58 In·short,·the·plugin·interface·makes·it·possible·to:58 In·short,·the·plugin·interface·makes·it·possible·to:
59 ····*·register·extension·messages·(sent·in·the·extension·handshake),·see59 ····*·register·extension·messages·(sent·in·the·extension·handshake),·see
Offset 139, 67 lines modifiedOffset 139, 67 lines modified
139 the·peer_connection_handle·class·provides·a·handle·to·the·internal·peer139 the·peer_connection_handle·class·provides·a·handle·to·the·internal·peer
140 connection·object,·to·be·used·by·plugins.·This·is·a·low·level·interface·that140 connection·object,·to·be·used·by·plugins.·This·is·a·low·level·interface·that
141 may·not·be·stable·across·libtorrent·versions141 may·not·be·stable·across·libtorrent·versions
142 struct·peer_connection_handle142 struct·peer_connection_handle
143 {143 {
144 ···explicit·peer_connection_handle·(std::weak_ptr<peer_connection>·impl);144 ···explicit·peer_connection_handle·(std::weak_ptr<peer_connection>·impl);
145 ···connection_type·type·()·const;145 ···connection_type·type·()·const;
146 ···peer_plugin·const*·find_plugin·(string_view·type)·const; 
147 ···void·add_extension·(std::shared_ptr<peer_plugin>);146 ···void·add_extension·(std::shared_ptr<peer_plugin>);
 147 ···peer_plugin·const*·find_plugin·(string_view·type)·const;
148 ···bool·is_seed·()·const;148 ···bool·is_seed·()·const;
149 ···bool·upload_only·()·const;149 ···bool·upload_only·()·const;
150 ···bool·has_piece·(piece_index_t·i)·const; 
151 ···peer_id·const&·pid·()·const;150 ···peer_id·const&·pid·()·const;
 151 ···bool·has_piece·(piece_index_t·i)·const;
152 ···bool·is_interesting·()·const;152 ···bool·is_interesting·()·const;
153 ···bool·is_choked·()·const;153 ···bool·is_choked·()·const;
154 ···bool·has_peer_choked·()·const;154 ···bool·has_peer_choked·()·const;
155 ···bool·is_peer_interested·()·const;155 ···bool·is_peer_interested·()·const;
156 ···void·choke_this_peer·();156 ···void·choke_this_peer·();
157 ···void·maybe_unchoke_this_peer·();157 ···void·maybe_unchoke_this_peer·();
158 ···void·get_peer_info·(peer_info&·p)·const;158 ···void·get_peer_info·(peer_info&·p)·const;
159 ···torrent_handle·associated_torrent·()·const;159 ···torrent_handle·associated_torrent·()·const;
160 ···tcp::endpoint·const&·remote·()·const;160 ···tcp::endpoint·const&·remote·()·const;
161 ···tcp::endpoint·local_endpoint·()·const;161 ···tcp::endpoint·local_endpoint·()·const;
162 ···bool·is_outgoing·()·const; 
163 ···bool·is_disconnecting·()·const;162 ···bool·is_connecting·()·const;
164 ···void·disconnect·(error_code·const&·ec,·operation_t·op163 ···void·disconnect·(error_code·const&·ec,·operation_t·op
165 ······,·disconnect_severity_t·=·peer_connection_interface::normal);164 ······,·disconnect_severity_t·=·peer_connection_interface::normal);
166 ···bool·is_connecting·()·const;165 ···bool·is_disconnecting·()·const;
167 ···bool·on_local_network·()·const;166 ···bool·is_outgoing·()·const;
168 ···bool·ignore_unchoke_slots·()·const;167 ···bool·ignore_unchoke_slots·()·const;
 168 ···bool·on_local_network·()·const;
169 ···bool·failed·()·const;169 ···bool·failed·()·const;
170 ···void·peer_log·(peer_log_alert::direction_t·direction170 ···void·peer_log·(peer_log_alert::direction_t·direction
171 ······,·char·const*·event,·char·const*·fmt·=·"",·...)·const·TORRENT_FORMAT171 ······,·char·const*·event,·char·const*·fmt·=·"",·...)·const·TORRENT_FORMAT
172 (4,5);172 (4,5);
173 ···bool·should_log·(peer_log_alert::direction_t·direction)·const;173 ···bool·should_log·(peer_log_alert::direction_t·direction)·const;
174 ···bool·can_disconnect·(error_code·const&·ec)·const;174 ···bool·can_disconnect·(error_code·const&·ec)·const;
175 ···bool·has_metadata·()·const;175 ···bool·has_metadata·()·const;
176 ···bool·in_handshake·()·const;176 ···bool·in_handshake·()·const;
177 ···void·send_buffer·(char·const*·begin,·int·size);177 ···void·send_buffer·(char·const*·begin,·int·size);
178 ···std::time_t·last_seen_complete·()·const;178 ···std::time_t·last_seen_complete·()·const;
179 ···time_point·time_of_last_unchoke·()·const;179 ···time_point·time_of_last_unchoke·()·const;
180 ···bool·operator<·(peer_connection_handle·const&·o)·const; 
181 ···bool·operator!=·(peer_connection_handle·const&·o)·const;180 ···bool·operator!=·(peer_connection_handle·const&·o)·const;
182 ···bool·operator==·(peer_connection_handle·const&·o)·const;181 ···bool·operator==·(peer_connection_handle·const&·o)·const;
 182 ···bool·operator<·(peer_connection_handle·const&·o)·const;
183 ···std::shared_ptr<peer_connection>·native_handle·()·const;183 ···std::shared_ptr<peer_connection>·native_handle·()·const;
184 };184 };
185 [report_issue]185 [report_issue]
186 ******·bt_peer_connection_handle·******186 ******·bt_peer_connection_handle·******
187 Declared·in·"libtorrent/peer_connection_handle.hpp"187 Declared·in·"libtorrent/peer_connection_handle.hpp"
188 The·bt_peer_connection_handle·provides·a·handle·to·the·internal·bittorrent·peer188 The·bt_peer_connection_handle·provides·a·handle·to·the·internal·bittorrent·peer
189 connection·object·to·plugins.·It's·low·level·and·may·not·be·a·stable·API·across189 connection·object·to·plugins.·It's·low·level·and·may·not·be·a·stable·API·across
190 libtorrent·versions.190 libtorrent·versions.
191 struct·bt_peer_connection_handle·:·peer_connection_handle191 struct·bt_peer_connection_handle·:·peer_connection_handle
192 {192 {
193 ···explicit·bt_peer_connection_handle·(peer_connection_handle·pc);193 ···explicit·bt_peer_connection_handle·(peer_connection_handle·pc);
194 ···bool·support_extensions·()·const; 
195 ···bool·packet_finished·()·const;194 ···bool·packet_finished·()·const;
 195 ···bool·support_extensions·()·const;
196 ···bool·supports_encryption·()·const;196 ···bool·supports_encryption·()·const;
197 ···void·switch_send_crypto·(std::shared_ptr<crypto_plugin>·crypto); 
198 ···void·switch_recv_crypto·(std::shared_ptr<crypto_plugin>·crypto);197 ···void·switch_recv_crypto·(std::shared_ptr<crypto_plugin>·crypto);
 198 ···void·switch_send_crypto·(std::shared_ptr<crypto_plugin>·crypto);
199 ···std::shared_ptr<bt_peer_connection>·native_handle·()·const;199 ···std::shared_ptr<bt_peer_connection>·native_handle·()·const;
200 };200 };
201 [report_issue]201 [report_issue]
202 ******·plugin·******202 ******·plugin·******
203 Declared·in·"libtorrent/extensions.hpp"203 Declared·in·"libtorrent/extensions.hpp"
204 this·is·the·base·class·for·a·session·plugin.·One·primary·feature·is·that·it·is204 this·is·the·base·class·for·a·session·plugin.·One·primary·feature·is·that·it·is
205 notified·of·all·torrents·that·are·added·to·the·session,·and·can·add·its·own205 notified·of·all·torrents·that·are·added·to·the·session,·and·can·add·its·own
Offset 418, 43 lines modifiedOffset 418, 43 lines modified
418 {418 {
419 ···virtual·string_view·type·()·const;419 ···virtual·string_view·type·()·const;
420 ···virtual·void·add_handshake·(entry&);420 ···virtual·void·add_handshake·(entry&);
421 ···virtual·void·on_disconnect·(error_code·const&);421 ···virtual·void·on_disconnect·(error_code·const&);
422 ···virtual·void·on_connected·();422 ···virtual·void·on_connected·();
423 ···virtual·bool·on_handshake·(span<char·const>);423 ···virtual·bool·on_handshake·(span<char·const>);
424 ···virtual·bool·on_extension_handshake·(bdecode_node·const&);424 ···virtual·bool·on_extension_handshake·(bdecode_node·const&);
425 ···virtual·bool·on_allowed_fast·(piece_index_t);425 ···virtual·bool·on_dont_have·(piece_index_t);
426 ···virtual·bool·on_unchoke·(); 
427 ···virtual·bool·on_interested·(); 
428 ···virtual·bool·on_have_all·();426 ···virtual·bool·on_have_all·();
429 ···virtual·bool·on_have·(piece_index_t);427 ···virtual·bool·on_request·(peer_request·const&);
430 ···virtual·bool·on_choke·();428 ···virtual·bool·on_choke·();
 429 ···virtual·bool·on_interested·();
 430 ···virtual·bool·on_allowed_fast·(piece_index_t);
431 ···virtual·bool·on_have_none·();431 ···virtual·bool·on_have_none·();
432 ···virtual·bool·on_not_interested·(); 
433 ···virtual·bool·on_bitfield·(bitfield·const&·/*bitfield*/);432 ···virtual·bool·on_bitfield·(bitfield·const&·/*bitfield*/);
 433 ···virtual·bool·on_unchoke·();
Max diff block lines reached; 6984/13153 bytes (53.10%) of diff not shown.
7.27 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Resume_Data.html
    
Offset 30, 30 lines modifiedOffset 30, 30 lines modified
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#read-resume-data"·id="toc-entry-1">read_resume_data()</a></li>35 <li><a·class="reference·internal"·href="#read-resume-data"·id="toc-entry-1">read_resume_data()</a></li>
36 <li><a·class="reference·internal"·href="#write-resume-data-write-resume-data-buf"·id="toc-entry-2">write_resume_data()·write_resume_data_buf()</a></li>36 <li><a·class="reference·internal"·href="#write-resume-data-write-resume-data-buf"·id="toc-entry-2">write_resume_data()·write_resume_data_buf()</a></li>
37 <li><a·class="reference·internal"·href="#write-torrent-file-buf-write-torrent-file"·id="toc-entry-3">write_torrent_file_buf()·write_torrent_file()</a></li>37 <li><a·class="reference·internal"·href="#write-torrent-file-write-torrent-file-buf"·id="toc-entry-3">write_torrent_file()·write_torrent_file_buf()</a></li>
38 <li><a·class="reference·internal"·href="#write-torrent-flags-t"·id="toc-entry-4">write_torrent_flags_t</a></li>38 <li><a·class="reference·internal"·href="#write-torrent-flags-t"·id="toc-entry-4">write_torrent_flags_t</a></li>
39 </ul>39 </ul>
40 </div>40 </div>
41 <a·name="read_resume_data()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:read_resume_data%28%29&labels=documentation&body=Documentation+under+heading+%22read_resume_data%28%29%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="read-resume-data">41 <a·name="read_resume_data()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:read_resume_data%28%29&labels=documentation&body=Documentation+under+heading+%22read_resume_data%28%29%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="read-resume-data">
42 <h1>read_resume_data()</h1>42 <h1>read_resume_data()</h1>
43 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/read_resume_data.hpp">libtorrent/read_resume_data.hpp</a>&quot;</p>43 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/read_resume_data.hpp">libtorrent/read_resume_data.hpp</a>&quot;</p>
44 <pre·class="literal-block">44 <pre·class="literal-block">
45 add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&amp;·rd 
46 ···,·int·piece_limit·=·0x200000); 
47 add_torrent_params·<strong>read_resume_data</strong>·(span&lt;char·const&gt;·buffer45 add_torrent_params·<strong>read_resume_data</strong>·(span&lt;char·const&gt;·buffer
48 ···,·load_torrent_limits·const&amp;·cfg·=·{});46 ···,·load_torrent_limits·const&amp;·cfg·=·{});
49 add_torrent_params·<strong>read_resume_data</strong>·(span&lt;char·const&gt;·buffer47 add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&amp;·rd
50 ···,·error_code&amp;·ec,·load_torrent_limits·const&amp;·cfg·=·{});48 ···,·int·piece_limit·=·0x200000);
51 add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&amp;·rd49 add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&amp;·rd
52 ···,·error_code&amp;·ec,·int·piece_limit·=·0x200000);50 ···,·error_code&amp;·ec,·int·piece_limit·=·0x200000);
 51 add_torrent_params·<strong>read_resume_data</strong>·(span&lt;char·const&gt;·buffer
 52 ···,·error_code&amp;·ec,·load_torrent_limits·const&amp;·cfg·=·{});
53 </pre>53 </pre>
54 <p>these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate54 <p>these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate
55 fields·in·an·<a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a>·object.·This·object·can·then·be·used·to·add55 fields·in·an·<a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a>·object.·This·object·can·then·be·used·to·add
56 the·actual·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>·object·to·and·pass·to·session::add_torrent()·or56 the·actual·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>·object·to·and·pass·to·session::add_torrent()·or
57 session::async_add_torrent().</p>57 session::async_add_torrent().</p>
58 <p>If·the·client·wants·to·override·any·field·that·was·loaded·from·the·resume58 <p>If·the·client·wants·to·override·any·field·that·was·loaded·from·the·resume
59 data,·e.g.·save_path,·those·fields·must·be·changed·after·loading·resume59 data,·e.g.·save_path,·those·fields·must·be·changed·after·loading·resume
Offset 72, 18 lines modifiedOffset 72, 18 lines modified
72 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>&quot;</p>72 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>&quot;</p>
73 <pre·class="literal-block">73 <pre·class="literal-block">
74 entry·<strong>write_resume_data</strong>·(add_torrent_params·const&amp;·atp);74 entry·<strong>write_resume_data</strong>·(add_torrent_params·const&amp;·atp);
75 std::vector&lt;char&gt;·<strong>write_resume_data_buf</strong>·(add_torrent_params·const&amp;·atp);75 std::vector&lt;char&gt;·<strong>write_resume_data_buf</strong>·(add_torrent_params·const&amp;·atp);
76 </pre>76 </pre>
77 <p>this·function·turns·the·resume·data·in·an·<tt·class="docutils·literal">add_torrent_params</tt>·object77 <p>this·function·turns·the·resume·data·in·an·<tt·class="docutils·literal">add_torrent_params</tt>·object
78 into·a·bencoded·structure</p>78 into·a·bencoded·structure</p>
79 <a·name="write_torrent_file_buf()"></a>79 <a·name="write_torrent_file()"></a>
80 <a·name="write_torrent_file()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:write_torrent_file_buf%28%29+write_torrent_file%28%29&labels=documentation&body=Documentation+under+heading+%22write_torrent_file_buf%28%29+write_torrent[·...·truncated·by·diffoscope;·len:·5,·SHA:·62e9b8e5a4a17a44eb3b2295880859f800a4b4b37c342acc45f1e59c2619a034·...·]%28%29%22+could+be+improved">report·issue</a>]</span></div>80 <a·name="write_torrent_file_buf()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:write_torrent_file%28%29+write_torrent_file_buf%28%29&labels=documentation&body=Documentation+under+heading+%22write_torrent_file%28%29+write_torrent[·...·truncated·by·diffoscope;·len:·9,·SHA:·4afcf98d35baf3ac4f5735cbc60103bb76e194ca93662791d62a5fab7ac8301b·...·]%28%29%22+could+be+improved">report·issue</a>]</span></div>
81 <div·class="section"·id="write-torrent-file-buf-write-torrent-file">81 <div·class="section"·id="write-torrent-file-write-torrent-file-buf">
82 <h1>write_torrent_file_buf()·write_torrent_file()</h1>82 <h1>write_torrent_file()·write_torrent_file_buf()</h1>
83 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>&quot;</p>83 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>&quot;</p>
84 <pre·class="literal-block">84 <pre·class="literal-block">
85 std::vector&lt;char&gt;·<strong>write_torrent_file_buf</strong>·(add_torrent_params·const&amp;·atp85 std::vector&lt;char&gt;·<strong>write_torrent_file_buf</strong>·(add_torrent_params·const&amp;·atp
86 ···,·write_torrent_flags_t·flags);86 ···,·write_torrent_flags_t·flags);
87 entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&amp;·atp,·write_torrent_flags_t·flags);87 entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&amp;·atp,·write_torrent_flags_t·flags);
88 entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&amp;·atp);88 entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&amp;·atp);
89 </pre>89 </pre>
2.33 KB
html2text {}
    
Offset 1, 26 lines modifiedOffset 1, 26 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·read_resume_data()5 ····*·read_resume_data()
6 ····*·write_resume_data()_write_resume_data_buf()6 ····*·write_resume_data()_write_resume_data_buf()
7 ····*·write_torrent_file_buf()_write_torrent_file()7 ····*·write_torrent_file()_write_torrent_file_buf()
8 ····*·write_torrent_flags_t8 ····*·write_torrent_flags_t
9 [report_issue]9 [report_issue]
10 ******·read_resume_data()·******10 ******·read_resume_data()·******
11 Declared·in·"libtorrent/read_resume_data.hpp"11 Declared·in·"libtorrent/read_resume_data.hpp"
12 add_torrent_params·read_resume_data·(bdecode_node·const&·rd 
13 ···,·int·piece_limit·=·0x200000); 
14 add_torrent_params·read_resume_data·(span<char·const>·buffer12 add_torrent_params·read_resume_data·(span<char·const>·buffer
15 ···,·load_torrent_limits·const&·cfg·=·{});13 ···,·load_torrent_limits·const&·cfg·=·{});
16 add_torrent_params·read_resume_data·(span<char·const>·buffer14 add_torrent_params·read_resume_data·(bdecode_node·const&·rd
17 ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{});15 ···,·int·piece_limit·=·0x200000);
18 add_torrent_params·read_resume_data·(bdecode_node·const&·rd16 add_torrent_params·read_resume_data·(bdecode_node·const&·rd
19 ···,·error_code&·ec,·int·piece_limit·=·0x200000);17 ···,·error_code&·ec,·int·piece_limit·=·0x200000);
 18 add_torrent_params·read_resume_data·(span<char·const>·buffer
 19 ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{});
20 these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate20 these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate
21 fields·in·an·add_torrent_params·object.·This·object·can·then·be·used·to·add·the21 fields·in·an·add_torrent_params·object.·This·object·can·then·be·used·to·add·the
22 actual·torrent_info·object·to·and·pass·to·session::add_torrent()·or·session::22 actual·torrent_info·object·to·and·pass·to·session::add_torrent()·or·session::
23 async_add_torrent().23 async_add_torrent().
24 If·the·client·wants·to·override·any·field·that·was·loaded·from·the·resume·data,24 If·the·client·wants·to·override·any·field·that·was·loaded·from·the·resume·data,
25 e.g.·save_path,·those·fields·must·be·changed·after·loading·resume·data·but25 e.g.·save_path,·those·fields·must·be·changed·after·loading·resume·data·but
26 before·adding·the·torrent.26 before·adding·the·torrent.
Offset 35, 15 lines modifiedOffset 35, 15 lines modified
35 ******·write_resume_data()·write_resume_data_buf()·******35 ******·write_resume_data()·write_resume_data_buf()·******
36 Declared·in·"libtorrent/write_resume_data.hpp"36 Declared·in·"libtorrent/write_resume_data.hpp"
37 entry·write_resume_data·(add_torrent_params·const&·atp);37 entry·write_resume_data·(add_torrent_params·const&·atp);
38 std::vector<char>·write_resume_data_buf·(add_torrent_params·const&·atp);38 std::vector<char>·write_resume_data_buf·(add_torrent_params·const&·atp);
39 this·function·turns·the·resume·data·in·an·add_torrent_params·object·into·a39 this·function·turns·the·resume·data·in·an·add_torrent_params·object·into·a
40 bencoded·structure40 bencoded·structure
41 [report_issue]41 [report_issue]
42 ******·write_torrent_file_buf()·write_torrent_file()·******42 ******·write_torrent_file()·write_torrent_file_buf()·******
43 Declared·in·"libtorrent/write_resume_data.hpp"43 Declared·in·"libtorrent/write_resume_data.hpp"
44 std::vector<char>·write_torrent_file_buf·(add_torrent_params·const&·atp44 std::vector<char>·write_torrent_file_buf·(add_torrent_params·const&·atp
45 ···,·write_torrent_flags_t·flags);45 ···,·write_torrent_flags_t·flags);
46 entry·write_torrent_file·(add_torrent_params·const&·atp,·write_torrent_flags_46 entry·write_torrent_file·(add_torrent_params·const&·atp,·write_torrent_flags_
47 t·flags);47 t·flags);
48 entry·write_torrent_file·(add_torrent_params·const&·atp);48 entry·write_torrent_file·(add_torrent_params·const&·atp);
49 writes·only·the·fields·to·create·a·.torrent·file.·This·function·may·fail·with·a49 writes·only·the·fields·to·create·a·.torrent·file.·This·function·may·fail·with·a
88.4 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Session.html
    
Offset 29, 15 lines modifiedOffset 29, 15 lines modified
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#session-proxy"·id="toc-entry-1">session_proxy</a><ul>35 <li><a·class="reference·internal"·href="#session-proxy"·id="toc-entry-1">session_proxy</a><ul>
36 <li><a·class="reference·internal"·href="#session-proxy-session-proxy-operator"·id="toc-entry-2">session_proxy()·~session_proxy()·operator=()</a></li>36 <li><a·class="reference·internal"·href="#session-proxy-operator-session-proxy"·id="toc-entry-2">session_proxy()·operator=()·~session_proxy()</a></li>
37 </ul>37 </ul>
38 </li>38 </li>
39 <li><a·class="reference·internal"·href="#session"·id="toc-entry-3">session</a><ul>39 <li><a·class="reference·internal"·href="#session"·id="toc-entry-3">session</a><ul>
40 <li><a·class="reference·internal"·href="#session-1"·id="toc-entry-4">session()</a></li>40 <li><a·class="reference·internal"·href="#session-1"·id="toc-entry-4">session()</a></li>
41 <li><a·class="reference·internal"·href="#session-2"·id="toc-entry-5">session()</a></li>41 <li><a·class="reference·internal"·href="#session-2"·id="toc-entry-5">session()</a></li>
42 <li><a·class="reference·internal"·href="#session-3"·id="toc-entry-6">~session()</a></li>42 <li><a·class="reference·internal"·href="#session-3"·id="toc-entry-6">~session()</a></li>
43 <li><a·class="reference·internal"·href="#abort"·id="toc-entry-7">abort()</a></li>43 <li><a·class="reference·internal"·href="#abort"·id="toc-entry-7">abort()</a></li>
Offset 47, 51 lines modifiedOffset 47, 51 lines modified
47 <li><a·class="reference·internal"·href="#session-params-1"·id="toc-entry-9">session_params()</a></li>47 <li><a·class="reference·internal"·href="#session-params-1"·id="toc-entry-9">session_params()</a></li>
48 <li><a·class="reference·internal"·href="#session-params-2"·id="toc-entry-10">session_params()</a></li>48 <li><a·class="reference·internal"·href="#session-params-2"·id="toc-entry-10">session_params()</a></li>
49 </ul>49 </ul>
50 </li>50 </li>
51 <li><a·class="reference·internal"·href="#session-handle"·id="toc-entry-11">session_handle</a><ul>51 <li><a·class="reference·internal"·href="#session-handle"·id="toc-entry-11">session_handle</a><ul>
52 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-12">is_valid()</a></li>52 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-12">is_valid()</a></li>
53 <li><a·class="reference·internal"·href="#session-state"·id="toc-entry-13">session_state()</a></li>53 <li><a·class="reference·internal"·href="#session-state"·id="toc-entry-13">session_state()</a></li>
54 <li><a·class="reference·internal"·href="#refresh-torrent-status-get-torrent-status"·id="toc-entry-14">refresh_torrent_status()·get_torrent_status()</a></li>54 <li><a·class="reference·internal"·href="#get-torrent-status-refresh-torrent-status"·id="toc-entry-14">get_torrent_status()·refresh_torrent_status()</a></li>
55 <li><a·class="reference·internal"·href="#post-torrent-updates"·id="toc-entry-15">post_torrent_updates()</a></li>55 <li><a·class="reference·internal"·href="#post-torrent-updates"·id="toc-entry-15">post_torrent_updates()</a></li>
56 <li><a·class="reference·internal"·href="#post-session-stats"·id="toc-entry-16">post_session_stats()</a></li>56 <li><a·class="reference·internal"·href="#post-session-stats"·id="toc-entry-16">post_session_stats()</a></li>
57 <li><a·class="reference·internal"·href="#post-dht-stats"·id="toc-entry-17">post_dht_stats()</a></li>57 <li><a·class="reference·internal"·href="#post-dht-stats"·id="toc-entry-17">post_dht_stats()</a></li>
58 <li><a·class="reference·internal"·href="#set-dht-state"·id="toc-entry-18">set_dht_state()</a></li>58 <li><a·class="reference·internal"·href="#set-dht-state"·id="toc-entry-18">set_dht_state()</a></li>
59 <li><a·class="reference·internal"·href="#find-torrent-get-torrents"·id="toc-entry-19">find_torrent()·get_torrents()</a></li>59 <li><a·class="reference·internal"·href="#get-torrents-find-torrent"·id="toc-entry-19">get_torrents()·find_torrent()</a></li>
60 <li><a·class="reference·internal"·href="#add-torrent-async-add-torrent"·id="toc-entry-20">add_torrent()·async_add_torrent()</a></li>60 <li><a·class="reference·internal"·href="#async-add-torrent-add-torrent"·id="toc-entry-20">async_add_torrent()·add_torrent()</a></li>
61 <li><a·class="reference·internal"·href="#is-paused-resume-pause"·id="toc-entry-21">is_paused()·resume()·pause()</a></li>61 <li><a·class="reference·internal"·href="#resume-pause-is-paused"·id="toc-entry-21">resume()·pause()·is_paused()</a></li>
62 <li><a·class="reference·internal"·href="#is-dht-running"·id="toc-entry-22">is_dht_running()</a></li>62 <li><a·class="reference·internal"·href="#is-dht-running"·id="toc-entry-22">is_dht_running()</a></li>
63 <li><a·class="reference·internal"·href="#set-dht-storage"·id="toc-entry-23">set_dht_storage()</a></li>63 <li><a·class="reference·internal"·href="#set-dht-storage"·id="toc-entry-23">set_dht_storage()</a></li>
64 <li><a·class="reference·internal"·href="#add-dht-node"·id="toc-entry-24">add_dht_node()</a></li>64 <li><a·class="reference·internal"·href="#add-dht-node"·id="toc-entry-24">add_dht_node()</a></li>
65 <li><a·class="reference·internal"·href="#dht-get-item"·id="toc-entry-25">dht_get_item()</a></li>65 <li><a·class="reference·internal"·href="#dht-get-item"·id="toc-entry-25">dht_get_item()</a></li>
66 <li><a·class="reference·internal"·href="#dht-get-item-1"·id="toc-entry-26">dht_get_item()</a></li>66 <li><a·class="reference·internal"·href="#dht-get-item-1"·id="toc-entry-26">dht_get_item()</a></li>
67 <li><a·class="reference·internal"·href="#dht-put-item"·id="toc-entry-27">dht_put_item()</a></li>67 <li><a·class="reference·internal"·href="#dht-put-item"·id="toc-entry-27">dht_put_item()</a></li>
68 <li><a·class="reference·internal"·href="#dht-put-item-1"·id="toc-entry-28">dht_put_item()</a></li>68 <li><a·class="reference·internal"·href="#dht-put-item-1"·id="toc-entry-28">dht_put_item()</a></li>
69 <li><a·class="reference·internal"·href="#dht-get-peers-dht-announce"·id="toc-entry-29">dht_get_peers()·dht_announce()</a></li>69 <li><a·class="reference·internal"·href="#dht-announce-dht-get-peers"·id="toc-entry-29">dht_announce()·dht_get_peers()</a></li>
70 <li><a·class="reference·internal"·href="#dht-live-nodes"·id="toc-entry-30">dht_live_nodes()</a></li>70 <li><a·class="reference·internal"·href="#dht-live-nodes"·id="toc-entry-30">dht_live_nodes()</a></li>
71 <li><a·class="reference·internal"·href="#dht-sample-infohashes"·id="toc-entry-31">dht_sample_infohashes()</a></li>71 <li><a·class="reference·internal"·href="#dht-sample-infohashes"·id="toc-entry-31">dht_sample_infohashes()</a></li>
72 <li><a·class="reference·internal"·href="#dht-direct-request"·id="toc-entry-32">dht_direct_request()</a></li>72 <li><a·class="reference·internal"·href="#dht-direct-request"·id="toc-entry-32">dht_direct_request()</a></li>
73 <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-33">add_extension()</a></li>73 <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-33">add_extension()</a></li>
74 <li><a·class="reference·internal"·href="#get-ip-filter-set-ip-filter"·id="toc-entry-34">get_ip_filter()·set_ip_filter()</a></li>74 <li><a·class="reference·internal"·href="#set-ip-filter-get-ip-filter"·id="toc-entry-34">set_ip_filter()·get_ip_filter()</a></li>
75 <li><a·class="reference·internal"·href="#set-port-filter"·id="toc-entry-35">set_port_filter()</a></li>75 <li><a·class="reference·internal"·href="#set-port-filter"·id="toc-entry-35">set_port_filter()</a></li>
76 <li><a·class="reference·internal"·href="#listen-port-ssl-listen-port-is-listening"·id="toc-entry-36">listen_port()·ssl_listen_port()·is_listening()</a></li>76 <li><a·class="reference·internal"·href="#listen-port-ssl-listen-port-is-listening"·id="toc-entry-36">listen_port()·ssl_listen_port()·is_listening()</a></li>
77 <li><a·class="reference·internal"·href="#get-peer-class-filter-set-peer-class-filter"·id="toc-entry-37">get_peer_class_filter()·set_peer_class_filter()</a></li>77 <li><a·class="reference·internal"·href="#set-peer-class-filter-get-peer-class-filter"·id="toc-entry-37">set_peer_class_filter()·get_peer_class_filter()</a></li>
78 <li><a·class="reference·internal"·href="#set-peer-class-type-filter-get-peer-class-type-filter"·id="toc-entry-38">set_peer_class_type_filter()·get_peer_class_type_filter()</a></li>78 <li><a·class="reference·internal"·href="#set-peer-class-type-filter-get-peer-class-type-filter"·id="toc-entry-38">set_peer_class_type_filter()·get_peer_class_type_filter()</a></li>
79 <li><a·class="reference·internal"·href="#create-peer-class"·id="toc-entry-39">create_peer_class()</a></li>79 <li><a·class="reference·internal"·href="#create-peer-class"·id="toc-entry-39">create_peer_class()</a></li>
80 <li><a·class="reference·internal"·href="#delete-peer-class"·id="toc-entry-40">delete_peer_class()</a></li>80 <li><a·class="reference·internal"·href="#delete-peer-class"·id="toc-entry-40">delete_peer_class()</a></li>
81 <li><a·class="reference·internal"·href="#get-peer-class-set-peer-class"·id="toc-entry-41">get_peer_class()·set_peer_class()</a></li>81 <li><a·class="reference·internal"·href="#get-peer-class-set-peer-class"·id="toc-entry-41">get_peer_class()·set_peer_class()</a></li>
82 <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-42">remove_torrent()</a></li>82 <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-42">remove_torrent()</a></li>
83 <li><a·class="reference·internal"·href="#apply-settings-get-settings"·id="toc-entry-43">apply_settings()·get_settings()</a></li>83 <li><a·class="reference·internal"·href="#apply-settings-get-settings"·id="toc-entry-43">apply_settings()·get_settings()</a></li>
84 <li><a·class="reference·internal"·href="#wait-for-alert-set-alert-notify-pop-alerts"·id="toc-entry-44">wait_for_alert()·set_alert_notify()·pop_alerts()</a></li>84 <li><a·class="reference·internal"·href="#pop-alerts-set-alert-notify-wait-for-alert"·id="toc-entry-44">pop_alerts()·set_alert_notify()·wait_for_alert()</a></li>
85 <li><a·class="reference·internal"·href="#delete-port-mapping-add-port-mapping"·id="toc-entry-45">delete_port_mapping()·add_port_mapping()</a></li>85 <li><a·class="reference·internal"·href="#add-port-mapping-delete-port-mapping"·id="toc-entry-45">add_port_mapping()·delete_port_mapping()</a></li>
86 <li><a·class="reference·internal"·href="#reopen-network-sockets"·id="toc-entry-46">reopen_network_sockets()</a></li>86 <li><a·class="reference·internal"·href="#reopen-network-sockets"·id="toc-entry-46">reopen_network_sockets()</a></li>
87 <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-47">native_handle()</a></li>87 <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-47">native_handle()</a></li>
88 </ul>88 </ul>
89 </li>89 </li>
90 <li><a·class="reference·internal"·href="#read-session-params-write-session-params-write-session-params-buf"·id="toc-entry-48">read_session_params()·write_session_params()·write_session_params_buf()</a></li>90 <li><a·class="reference·internal"·href="#write-session-params-buf-write-session-params-read-session-params"·id="toc-entry-48">write_session_params_buf()·write_session_params()·read_session_params()</a></li>
91 </ul>91 </ul>
92 </div>92 </div>
93 <a·name="session_proxy"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session_proxy&labels=documentation&body=Documentation+under+heading+%22class+session_proxy%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="session-proxy">93 <a·name="session_proxy"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session_proxy&labels=documentation&body=Documentation+under+heading+%22class+session_proxy%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="session-proxy">
94 <h1>session_proxy</h1>94 <h1>session_proxy</h1>
95 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/session.hpp">libtorrent/session.hpp</a>&quot;</p>95 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/session.hpp">libtorrent/session.hpp</a>&quot;</p>
96 <p>this·is·a·holder·for·the·internal·<a·class="reference·external"·href="reference-Session.html#session">session</a>·implementation·object.·Once·the96 <p>this·is·a·holder·for·the·internal·<a·class="reference·external"·href="reference-Session.html#session">session</a>·implementation·object.·Once·the
97 <a·class="reference·external"·href="reference-Session.html#session">session</a>·destruction·is·explicitly·initiated,·this·holder·is·used·to97 <a·class="reference·external"·href="reference-Session.html#session">session</a>·destruction·is·explicitly·initiated,·this·holder·is·used·to
Offset 99, 32 lines modifiedOffset 99, 32 lines modified
99 may·outlive·<a·class="reference·external"·href="reference-Session.html#session">session</a>,·causing·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·destructor·to·not·block.·The99 may·outlive·<a·class="reference·external"·href="reference-Session.html#session">session</a>,·causing·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·destructor·to·not·block.·The
100 <a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a>·destructor·will·block·however,·until·the·underlying·<a·class="reference·external"·href="reference-Session.html#session">session</a>100 <a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a>·destructor·will·block·however,·until·the·underlying·<a·class="reference·external"·href="reference-Session.html#session">session</a>
101 is·done·shutting·down.</p>101 is·done·shutting·down.</p>
102 <pre·class="literal-block">102 <pre·class="literal-block">
103 struct·session_proxy103 struct·session_proxy
104 {104 {
105 ···<strong>session_proxy</strong>·(session_proxy·const&amp;);105 ···<strong>session_proxy</strong>·(session_proxy·const&amp;);
106 ···session_proxy&amp;·<strong>operator=</strong>·(session_proxy&amp;&amp;)·&amp;·noexcept; 
107 ···<strong>session_proxy</strong>·(); 
108 ···<strong>session_proxy</strong>·(session_proxy&amp;&amp;)·noexcept; 
109 ···<strong>~session_proxy</strong>·();106 ···<strong>~session_proxy</strong>·();
110 ···session_proxy&amp;·<strong>operator=</strong>·(session_proxy·const&amp;)·&amp;;107 ···session_proxy&amp;·<strong>operator=</strong>·(session_proxy·const&amp;)·&amp;;
 108 ···<strong>session_proxy</strong>·();
 109 ···<strong>session_proxy</strong>·(session_proxy&amp;&amp;)·noexcept;
 110 ···session_proxy&amp;·<strong>operator=</strong>·(session_proxy&amp;&amp;)·&amp;·noexcept;
111 };111 };
112 </pre>112 </pre>
113 <a·name="session_proxy()"></a>113 <a·name="session_proxy()"></a>
114 <a·name="~session_proxy()"></a>114 <a·name="operator=()"></a>
115 <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:session_proxy%3A%3A%5Bsession_proxy%28%29+~session_proxy%28%29+operator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22ses[·...·truncated·by·diffoscope;·len:·188,·SHA:·cad11499702c03ba1c95723073b88b9baa056b3869416fb9d4d7ae32ecc25365·...·]">115 <a·name="~session_proxy()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:session_proxy%3A%3A%5Bsession_proxy%28%29+operator%3D%28%29+~session_proxy%28%29%5D&labels=documentation&body=Documentation+under+heading+%[·...·truncated·by·diffoscope;·len:·193,·SHA:·c0afdb001cf5149f5399818cfbee0bc6dc130bada0ae6f63ff37edd666e07b98·...·]">
116 <h2>session_proxy()·~session_proxy()·operator=()</h2>116 <h2>session_proxy()·operator=()·~session_proxy()</h2>
117 <pre·class="literal-block">117 <pre·class="literal-block">
118 <strong>session_proxy</strong>·(session_proxy·const&amp;);118 <strong>session_proxy</strong>·(session_proxy·const&amp;);
119 session_proxy&amp;·<strong>operator=</strong>·(session_proxy&amp;&amp;)·&amp;·noexcept; 
120 <strong>session_proxy</strong>·(); 
121 <strong>session_proxy</strong>·(session_proxy&amp;&amp;)·noexcept; 
122 <strong>~session_proxy</strong>·();119 <strong>~session_proxy</strong>·();
123 session_proxy&amp;·<strong>operator=</strong>·(session_proxy·const&amp;)·&amp;;120 session_proxy&amp;·<strong>operator=</strong>·(session_proxy·const&amp;)·&amp;;
 121 <strong>session_proxy</strong>·();
 122 <strong>session_proxy</strong>·(session_proxy&amp;&amp;)·noexcept;
 123 session_proxy&amp;·<strong>operator=</strong>·(session_proxy&amp;&amp;)·&amp;·noexcept;
124 </pre>124 </pre>
125 <p>default·constructor,·does·not·refer·to·any·<a·class="reference·external"·href="reference-Session.html#session">session</a>125 <p>default·constructor,·does·not·refer·to·any·<a·class="reference·external"·href="reference-Session.html#session">session</a>
126 implementation·object.</p>126 implementation·object.</p>
127 <a·name="session"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session&labels=documentation&body=Documentation+under+heading+%22class+session%22+could+be+improved">report·issue</a>]</span></div>127 <a·name="session"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session&labels=documentation&body=Documentation+under+heading+%22class+session%22+could+be+improved">report·issue</a>]</span></div>
128 </div>128 </div>
129 <div·class="section"·id="session">129 <div·class="section"·id="session">
130 <h1>session</h1>130 <h1>session</h1>
Offset 138, 52 lines modifiedOffset 138, 52 lines modified
138 <tt·class="docutils·literal"><span·class="pre">session_handle::apply_settings()</span></tt>·member·function.·To·change·one·or·more138 <tt·class="docutils·literal"><span·class="pre">session_handle::apply_settings()</span></tt>·member·function.·To·change·one·or·more
139 configuration·options,·create·a·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>.·object·and·fill·it·with139 configuration·options,·create·a·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>.·object·and·fill·it·with
140 the·settings·to·be·set·and·pass·it·in·to·<tt·class="docutils·literal"><span·class="pre">session::apply_settings()</span></tt>.</p>140 the·settings·to·be·set·and·pass·it·in·to·<tt·class="docutils·literal"><span·class="pre">session::apply_settings()</span></tt>.</p>
141 <p>see·<a·class="reference·external"·href="reference-Session.html#apply_settings()">apply_settings()</a>.</p>141 <p>see·<a·class="reference·external"·href="reference-Session.html#apply_settings()">apply_settings()</a>.</p>
142 <pre·class="literal-block">142 <pre·class="literal-block">
143 struct·session·:·session_handle143 struct·session·:·session_handle
144 {144 {
 145 ···<strong>session</strong>·(session_params·const&amp;·params,·session_flags_t·flags);
 146 ···<strong>session</strong>·(session_params&amp;&amp;·params,·session_flags_t·flags);
 147 ···<strong>session</strong>·();
145 ···explicit·<strong>session</strong>·(session_params·const&amp;·params);148 ···explicit·<strong>session</strong>·(session_params·const&amp;·params);
146 ···explicit·<strong>session</strong>·(session_params&amp;&amp;·params);149 ···explicit·<strong>session</strong>·(session_params&amp;&amp;·params);
147 ···<strong>session</strong>·(); 
148 ···<strong>session</strong>·(session_params&amp;&amp;·params,·session_flags_t·flags);150 ···<strong>session</strong>·(session_params·const&amp;·params,·io_context&amp;·ios);
149 ···<strong>session</strong>·(session_params·const&amp;·params,·session_flags_t·flags);151 ···<strong>session</strong>·(session_params·const&amp;·params,·io_context&amp;·ios,·session_flags_t);
150 ···<strong>session</strong>·(session_params&amp;&amp;·params,·io_context&amp;·ios);152 ···<strong>session</strong>·(session_params&amp;&amp;·params,·io_context&amp;·ios);
151 ···<strong>session</strong>·(session_params&amp;&amp;·params,·io_context&amp;·ios,·session_flags_t);153 ···<strong>session</strong>·(session_params&amp;&amp;·params,·io_context&amp;·ios,·session_flags_t);
152 ···<strong>session</strong>·(session_params·const&amp;·params,·io_context&amp;·ios,·session_flags_t); 
153 ···<strong>session</strong>·(session_params·const&amp;·params,·io_context&amp;·ios); 
154 ···<strong>~session</strong>·();154 ···<strong>~session</strong>·();
Max diff block lines reached; 48314/61614 bytes (78.41%) of diff not shown.
28.1 KB
html2text {}
    
Offset 1, 85 lines modifiedOffset 1, 85 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·session_proxy5 ····*·session_proxy
6 ··········o·session_proxy()_~session_proxy()_operator=()6 ··········o·session_proxy()_operator=()_~session_proxy()
7 ····*·session7 ····*·session
8 ··········o·session()8 ··········o·session()
9 ··········o·session()9 ··········o·session()
10 ··········o·~session()10 ··········o·~session()
11 ··········o·abort()11 ··········o·abort()
12 ····*·session_params12 ····*·session_params
13 ··········o·session_params()13 ··········o·session_params()
14 ··········o·session_params()14 ··········o·session_params()
15 ····*·session_handle15 ····*·session_handle
16 ··········o·is_valid()16 ··········o·is_valid()
17 ··········o·session_state()17 ··········o·session_state()
18 ··········o·refresh_torrent_status()_get_torrent_status()18 ··········o·get_torrent_status()_refresh_torrent_status()
19 ··········o·post_torrent_updates()19 ··········o·post_torrent_updates()
20 ··········o·post_session_stats()20 ··········o·post_session_stats()
21 ··········o·post_dht_stats()21 ··········o·post_dht_stats()
22 ··········o·set_dht_state()22 ··········o·set_dht_state()
 23 ··········o·get_torrents()_find_torrent()
23 ··········o·find_torrent()_get_torrents()24 ··········o·async_add_torrent()_add_torrent()
 25 ··········o·resume()_pause()_is_paused()
24 ··········o·add_torrent()_async_add_torrent() 
25 ··········o·is_paused()_resume()_pause() 
26 ··········o·is_dht_running()26 ··········o·is_dht_running()
27 ··········o·set_dht_storage()27 ··········o·set_dht_storage()
28 ··········o·add_dht_node()28 ··········o·add_dht_node()
29 ··········o·dht_get_item()29 ··········o·dht_get_item()
30 ··········o·dht_get_item()30 ··········o·dht_get_item()
31 ··········o·dht_put_item()31 ··········o·dht_put_item()
32 ··········o·dht_put_item()32 ··········o·dht_put_item()
33 ··········o·dht_get_peers()_dht_announce()33 ··········o·dht_announce()_dht_get_peers()
34 ··········o·dht_live_nodes()34 ··········o·dht_live_nodes()
35 ··········o·dht_sample_infohashes()35 ··········o·dht_sample_infohashes()
36 ··········o·dht_direct_request()36 ··········o·dht_direct_request()
37 ··········o·add_extension()37 ··········o·add_extension()
38 ··········o·get_ip_filter()_set_ip_filter()38 ··········o·set_ip_filter()_get_ip_filter()
39 ··········o·set_port_filter()39 ··········o·set_port_filter()
40 ··········o·listen_port()_ssl_listen_port()_is_listening()40 ··········o·listen_port()_ssl_listen_port()_is_listening()
41 ··········o·get_peer_class_filter()_set_peer_class_filter()41 ··········o·set_peer_class_filter()_get_peer_class_filter()
42 ··········o·set_peer_class_type_filter()_get_peer_class_type_filter()42 ··········o·set_peer_class_type_filter()_get_peer_class_type_filter()
43 ··········o·create_peer_class()43 ··········o·create_peer_class()
44 ··········o·delete_peer_class()44 ··········o·delete_peer_class()
45 ··········o·get_peer_class()_set_peer_class()45 ··········o·get_peer_class()_set_peer_class()
46 ··········o·remove_torrent()46 ··········o·remove_torrent()
47 ··········o·apply_settings()_get_settings()47 ··········o·apply_settings()_get_settings()
48 ··········o·wait_for_alert()_set_alert_notify()_pop_alerts()48 ··········o·pop_alerts()_set_alert_notify()_wait_for_alert()
49 ··········o·delete_port_mapping()_add_port_mapping()49 ··········o·add_port_mapping()_delete_port_mapping()
50 ··········o·reopen_network_sockets()50 ··········o·reopen_network_sockets()
51 ··········o·native_handle()51 ··········o·native_handle()
52 ····*·read_session_params()_write_session_params()_write_session_params_buf()52 ····*·write_session_params_buf()_write_session_params()_read_session_params()
53 [report_issue]53 [report_issue]
54 ******·session_proxy·******54 ******·session_proxy·******
55 Declared·in·"libtorrent/session.hpp"55 Declared·in·"libtorrent/session.hpp"
56 this·is·a·holder·for·the·internal·session·implementation·object.·Once·the56 this·is·a·holder·for·the·internal·session·implementation·object.·Once·the
57 session·destruction·is·explicitly·initiated,·this·holder·is·used·to·synchronize57 session·destruction·is·explicitly·initiated,·this·holder·is·used·to·synchronize
58 the·completion·of·the·shutdown.·The·lifetime·of·this·object·may·outlive58 the·completion·of·the·shutdown.·The·lifetime·of·this·object·may·outlive
59 session,·causing·the·session·destructor·to·not·block.·The·session_proxy59 session,·causing·the·session·destructor·to·not·block.·The·session_proxy
60 destructor·will·block·however,·until·the·underlying·session·is·done·shutting60 destructor·will·block·however,·until·the·underlying·session·is·done·shutting
61 down.61 down.
62 struct·session_proxy62 struct·session_proxy
63 {63 {
64 ···session_proxy·(session_proxy·const&);64 ···session_proxy·(session_proxy·const&);
65 ···session_proxy&·operator=·(session_proxy&&)·&·noexcept; 
66 ···session_proxy·(); 
67 ···session_proxy·(session_proxy&&)·noexcept; 
68 ···~session_proxy·();65 ···~session_proxy·();
69 ···session_proxy&·operator=·(session_proxy·const&)·&;66 ···session_proxy&·operator=·(session_proxy·const&)·&;
 67 ···session_proxy·();
 68 ···session_proxy·(session_proxy&&)·noexcept;
 69 ···session_proxy&·operator=·(session_proxy&&)·&·noexcept;
70 };70 };
71 [report_issue]71 [report_issue]
72 *****·session_proxy()·~session_proxy()·operator=()·*****72 *****·session_proxy()·operator=()·~session_proxy()·*****
73 session_proxy·(session_proxy·const&);73 session_proxy·(session_proxy·const&);
74 session_proxy&·operator=·(session_proxy&&)·&·noexcept; 
75 session_proxy·(); 
76 session_proxy·(session_proxy&&)·noexcept; 
77 ~session_proxy·();74 ~session_proxy·();
78 session_proxy&·operator=·(session_proxy·const&)·&;75 session_proxy&·operator=·(session_proxy·const&)·&;
 76 session_proxy·();
 77 session_proxy·(session_proxy&&)·noexcept;
 78 session_proxy&·operator=·(session_proxy&&)·&·noexcept;
79 default·constructor,·does·not·refer·to·any·session·implementation·object.79 default·constructor,·does·not·refer·to·any·session·implementation·object.
80 [report_issue]80 [report_issue]
81 ******·session·******81 ******·session·******
82 Declared·in·"libtorrent/session.hpp"82 Declared·in·"libtorrent/session.hpp"
83 The·session·holds·all·state·that·spans·multiple·torrents.·Among·other·things·it83 The·session·holds·all·state·that·spans·multiple·torrents.·Among·other·things·it
84 runs·the·network·loop·and·manages·all·torrents.·Once·it's·created,·the·session84 runs·the·network·loop·and·manages·all·torrents.·Once·it's·created,·the·session
85 object·will·spawn·the·main·thread·that·will·do·all·the·work.·The·main·thread85 object·will·spawn·the·main·thread·that·will·do·all·the·work.·The·main·thread
Offset 87, 47 lines modifiedOffset 87, 47 lines modified
87 You·have·some·control·over·session·configuration·through·the·session_handle::87 You·have·some·control·over·session·configuration·through·the·session_handle::
88 apply_settings()·member·function.·To·change·one·or·more·configuration·options,88 apply_settings()·member·function.·To·change·one·or·more·configuration·options,
89 create·a·settings_pack.·object·and·fill·it·with·the·settings·to·be·set·and·pass89 create·a·settings_pack.·object·and·fill·it·with·the·settings·to·be·set·and·pass
90 it·in·to·session::apply_settings().90 it·in·to·session::apply_settings().
91 see·apply_settings().91 see·apply_settings().
92 struct·session·:·session_handle92 struct·session·:·session_handle
93 {93 {
 94 ···session·(session_params·const&·params,·session_flags_t·flags);
 95 ···session·(session_params&&·params,·session_flags_t·flags);
 96 ···session·();
94 ···explicit·session·(session_params·const&·params);97 ···explicit·session·(session_params·const&·params);
95 ···explicit·session·(session_params&&·params);98 ···explicit·session·(session_params&&·params);
 99 ···session·(session_params·const&·params,·io_context&·ios);
96 ···session·(); 
97 ···session·(session_params&&·params,·session_flags_t·flags); 
98 ···session·(session_params·const&·params,·session_flags_t·flags);100 ···session·(session_params·const&·params,·io_context&·ios,·session_flags_t);
99 ···session·(session_params&&·params,·io_context&·ios);101 ···session·(session_params&&·params,·io_context&·ios);
100 ···session·(session_params&&·params,·io_context&·ios,·session_flags_t);102 ···session·(session_params&&·params,·io_context&·ios,·session_flags_t);
101 ···session·(session_params·const&·params,·io_context&·ios,·session_flags_t); 
102 ···session·(session_params·const&·params,·io_context&·ios); 
103 ···~session·();103 ···~session·();
104 ···session_proxy·abort·();104 ···session_proxy·abort·();
105 };105 };
106 [report_issue]106 [report_issue]
107 *****·session()·*****107 *****·session()·*****
 108 session·(session_params·const&·params,·session_flags_t·flags);
 109 session·(session_params&&·params,·session_flags_t·flags);
 110 session·();
108 explicit·session·(session_params·const&·params);111 explicit·session·(session_params·const&·params);
109 explicit·session·(session_params&&·params);112 explicit·session·(session_params&&·params);
110 session·(); 
111 session·(session_params&&·params,·session_flags_t·flags); 
112 session·(session_params·const&·params,·session_flags_t·flags); 
Max diff block lines reached; 22869/28725 bytes (79.61%) of diff not shown.
20.8 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Settings.html
    
Offset 29, 35 lines modifiedOffset 29, 35 lines modified
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#settings-pack"·id="toc-entry-1">settings_pack</a><ul>35 <li><a·class="reference·internal"·href="#settings-pack"·id="toc-entry-1">settings_pack</a><ul>
36 <li><a·class="reference·internal"·href="#set-bool-set-int-set-str"·id="toc-entry-2">set_bool()·set_int()·set_str()</a></li>36 <li><a·class="reference·internal"·href="#set-str-set-int-set-bool"·id="toc-entry-2">set_str()·set_int()·set_bool()</a></li>
37 <li><a·class="reference·internal"·href="#has-val"·id="toc-entry-3">has_val()</a></li>37 <li><a·class="reference·internal"·href="#has-val"·id="toc-entry-3">has_val()</a></li>
38 <li><a·class="reference·internal"·href="#clear"·id="toc-entry-4">clear()</a></li>38 <li><a·class="reference·internal"·href="#clear"·id="toc-entry-4">clear()</a></li>
39 <li><a·class="reference·internal"·href="#clear-1"·id="toc-entry-5">clear()</a></li>39 <li><a·class="reference·internal"·href="#clear-1"·id="toc-entry-5">clear()</a></li>
40 <li><a·class="reference·internal"·href="#get-int-get-bool-get-str"·id="toc-entry-6">get_int()·get_bool()·get_str()</a></li>40 <li><a·class="reference·internal"·href="#get-bool-get-int-get-str"·id="toc-entry-6">get_bool()·get_int()·get_str()</a></li>
41 <li><a·class="reference·internal"·href="#enum-type-bases"·id="toc-entry-7">enum·type_bases</a></li>41 <li><a·class="reference·internal"·href="#enum-type-bases"·id="toc-entry-7">enum·type_bases</a></li>
42 <li><a·class="reference·internal"·href="#enum-mmap-write-mode-t"·id="toc-entry-8">enum·mmap_write_mode_t</a></li>42 <li><a·class="reference·internal"·href="#enum-mmap-write-mode-t"·id="toc-entry-8">enum·mmap_write_mode_t</a></li>
43 <li><a·class="reference·internal"·href="#enum-suggest-mode-t"·id="toc-entry-9">enum·suggest_mode_t</a></li>43 <li><a·class="reference·internal"·href="#enum-suggest-mode-t"·id="toc-entry-9">enum·suggest_mode_t</a></li>
44 <li><a·class="reference·internal"·href="#enum-choking-algorithm-t"·id="toc-entry-10">enum·choking_algorithm_t</a></li>44 <li><a·class="reference·internal"·href="#enum-choking-algorithm-t"·id="toc-entry-10">enum·choking_algorithm_t</a></li>
45 <li><a·class="reference·internal"·href="#enum-seed-choking-algorithm-t"·id="toc-entry-11">enum·seed_choking_algorithm_t</a></li>45 <li><a·class="reference·internal"·href="#enum-seed-choking-algorithm-t"·id="toc-entry-11">enum·seed_choking_algorithm_t</a></li>
46 <li><a·class="reference·internal"·href="#enum-io-buffer-mode-t"·id="toc-entry-12">enum·io_buffer_mode_t</a></li>46 <li><a·class="reference·internal"·href="#enum-io-buffer-mode-t"·id="toc-entry-12">enum·io_buffer_mode_t</a></li>
47 <li><a·class="reference·internal"·href="#enum-bandwidth-mixed-algo-t"·id="toc-entry-13">enum·bandwidth_mixed_algo_t</a></li>47 <li><a·class="reference·internal"·href="#enum-bandwidth-mixed-algo-t"·id="toc-entry-13">enum·bandwidth_mixed_algo_t</a></li>
48 <li><a·class="reference·internal"·href="#enum-enc-policy"·id="toc-entry-14">enum·enc_policy</a></li>48 <li><a·class="reference·internal"·href="#enum-enc-policy"·id="toc-entry-14">enum·enc_policy</a></li>
49 <li><a·class="reference·internal"·href="#enum-enc-level"·id="toc-entry-15">enum·enc_level</a></li>49 <li><a·class="reference·internal"·href="#enum-enc-level"·id="toc-entry-15">enum·enc_level</a></li>
50 <li><a·class="reference·internal"·href="#enum-proxy-type-t"·id="toc-entry-16">enum·proxy_type_t</a></li>50 <li><a·class="reference·internal"·href="#enum-proxy-type-t"·id="toc-entry-16">enum·proxy_type_t</a></li>
51 </ul>51 </ul>
52 </li>52 </li>
53 <li><a·class="reference·internal"·href="#setting-by-name-name-for-setting"·id="toc-entry-17">setting_by_name()·name_for_setting()</a></li> 
54 <li><a·class="reference·internal"·href="#default-settings"·id="toc-entry-18">default_settings()</a></li> 
55 <li><a·class="reference·internal"·href="#high-performance-seed-min-memory-usage"·id="toc-entry-19">high_performance_seed()·min_memory_usage()</a></li>53 <li><a·class="reference·internal"·href="#high-performance-seed-min-memory-usage"·id="toc-entry-17">high_performance_seed()·min_memory_usage()</a></li>
56 <li><a·class="reference·internal"·href="#generate-fingerprint"·id="toc-entry-20">generate_fingerprint()</a></li>54 <li><a·class="reference·internal"·href="#generate-fingerprint"·id="toc-entry-18">generate_fingerprint()</a></li>
 55 <li><a·class="reference·internal"·href="#name-for-setting-setting-by-name"·id="toc-entry-19">name_for_setting()·setting_by_name()</a></li>
 56 <li><a·class="reference·internal"·href="#default-settings"·id="toc-entry-20">default_settings()</a></li>
57 </ul>57 </ul>
58 </div>58 </div>
59 <p>You·have·some·control·over·<a·class="reference·external"·href="reference-Session.html#session">session</a>·configuration·through·the·session::apply_settings()59 <p>You·have·some·control·over·<a·class="reference·external"·href="reference-Session.html#session">session</a>·configuration·through·the·session::apply_settings()
60 member·function.·To·change·one·or·more·configuration·options,·create·a·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>60 member·function.·To·change·one·or·more·configuration·options,·create·a·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>
61 object·and·fill·it·with·the·settings·to·be·set·and·pass·it·in·to·session::apply_settings().</p>61 object·and·fill·it·with·the·settings·to·be·set·and·pass·it·in·to·session::apply_settings().</p>
62 <p>The·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>·object·is·a·collection·of·settings·updates·that·are·applied62 <p>The·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>·object·is·a·collection·of·settings·updates·that·are·applied
63 to·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·when·passed·to·session::apply_settings().·It's·empty·when63 to·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·when·passed·to·session::apply_settings().·It's·empty·when
Offset 4598, 24 lines modifiedOffset 4598, 24 lines modified
4598 </div>4598 </div>
4599 <pre·class="literal-block">4599 <pre·class="literal-block">
4600 struct·settings_pack·final·:·settings_interface4600 struct·settings_pack·final·:·settings_interface
4601 {4601 {
4602 ···friend··void·<strong>apply_pack_impl</strong>·(settings_pack·const*4602 ···friend··void·<strong>apply_pack_impl</strong>·(settings_pack·const*
4603 ······,·aux::session_settings_single_thread&amp;4603 ······,·aux::session_settings_single_thread&amp;
4604 ······,·std::vector&lt;void(aux::session_impl::*)()&gt;*);4604 ······,·std::vector&lt;void(aux::session_impl::*)()&gt;*);
4605 ···void·<strong>set_int</strong>·(int·name,·flags::bitfield_flag&lt;Type,·Tag&gt;·const·val); 
4606 ···void·<strong>set_str</strong>·(int·name,·std::string·val)·override;4605 ···void·<strong>set_str</strong>·(int·name,·std::string·val)·override;
4607 ···void·<strong>set_int</strong>·(int·name,·int·val)·override;4606 ···void·<strong>set_int</strong>·(int·name,·int·val)·override;
4608 ···void·<strong>set_bool</strong>·(int·name,·bool·val)·override;4607 ···void·<strong>set_bool</strong>·(int·name,·bool·val)·override;
 4608 ···void·<strong>set_int</strong>·(int·name,·flags::bitfield_flag&lt;Type,·Tag&gt;·const·val);
4609 ···bool·<strong>has_val</strong>·(int·name)·const·override;4609 ···bool·<strong>has_val</strong>·(int·name)·const·override;
4610 ···void·<strong>clear</strong>·();4610 ···void·<strong>clear</strong>·();
4611 ···void·<strong>clear</strong>·(int·name);4611 ···void·<strong>clear</strong>·(int·name);
4612 ···std::string·const&amp;·<strong>get_str</strong>·(int·name)·const·override;4612 ···std::string·const&amp;·<strong>get_str</strong>·(int·name)·const·override;
4613 ···int·<strong>get_int</strong>·(int·name)·const·override; 
4614 ···bool·<strong>get_bool</strong>·(int·name)·const·override;4613 ···bool·<strong>get_bool</strong>·(int·name)·const·override;
 4614 ···int·<strong>get_int</strong>·(int·name)·const·override;
4615 ···void·<strong>for_each</strong>·(Fun&amp;&amp;·f)·const;4615 ···void·<strong>for_each</strong>·(Fun&amp;&amp;·f)·const;
  
4616 ···enum·type_bases4616 ···enum·type_bases
4617 ···{4617 ···{
4618 ······string_type_base,4618 ······string_type_base,
4619 ······int_type_base,4619 ······int_type_base,
4620 ······bool_type_base,4620 ······bool_type_base,
Offset 4685, 23 lines modifiedOffset 4685, 23 lines modified
4685 ······socks5,4685 ······socks5,
4686 ······socks5_pw,4686 ······socks5_pw,
4687 ······http,4687 ······http,
4688 ······http_pw,4688 ······http_pw,
4689 ···};4689 ···};
4690 };4690 };
4691 </pre>4691 </pre>
4692 <a·name="set_bool()"></a>4692 <a·name="set_str()"></a>
4693 <a·name="set_int()"></a>4693 <a·name="set_int()"></a>
4694 <a·name="set_str()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bset_bool%28%29+set_int%28%29+set_str%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bset[·...·truncated·by·diffoscope;·len:·138,·SHA:·d6cfb3d8118d18bd8e45fc123d148aac8c4df0bef8d7eee1121ee165dabdf597·...·]">4694 <a·name="set_bool()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bset_str%28%29+set_int%28%29+set_bool%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bse[·...·truncated·by·diffoscope;·len:·139,·SHA:·d11e13841c0d47dbcfab6ac1e8c1001efcb0aa6e53fbccbdf208806b824a003f·...·]">
4695 <h2>set_bool()·set_int()·set_str()</h2>4695 <h2>set_str()·set_int()·set_bool()</h2>
4696 <pre·class="literal-block">4696 <pre·class="literal-block">
4697 void·<strong>set_int</strong>·(int·name,·flags::bitfield_flag&lt;Type,·Tag&gt;·const·val); 
4698 void·<strong>set_str</strong>·(int·name,·std::string·val)·override;4697 void·<strong>set_str</strong>·(int·name,·std::string·val)·override;
4699 void·<strong>set_int</strong>·(int·name,·int·val)·override;4698 void·<strong>set_int</strong>·(int·name,·int·val)·override;
4700 void·<strong>set_bool</strong>·(int·name,·bool·val)·override;4699 void·<strong>set_bool</strong>·(int·name,·bool·val)·override;
 4700 void·<strong>set_int</strong>·(int·name,·flags::bitfield_flag&lt;Type,·Tag&gt;·const·val);
4701 </pre>4701 </pre>
4702 <p>set·a·configuration·option·in·the·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>.·<tt·class="docutils·literal">name</tt>·is·one·of4702 <p>set·a·configuration·option·in·the·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>.·<tt·class="docutils·literal">name</tt>·is·one·of
4703 the·enum·values·from·string_types,·int_types·or·bool_types.·They·must4703 the·enum·values·from·string_types,·int_types·or·bool_types.·They·must
4704 match·the·respective·type·of·the·set_*·function.</p>4704 match·the·respective·type·of·the·set_*·function.</p>
4705 <a·name="has_val()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bhas_val%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bhas_val%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>4705 <a·name="has_val()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bhas_val%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bhas_val%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
4706 <div·class="section"·id="has-val">4706 <div·class="section"·id="has-val">
4707 <h2>has_val()</h2>4707 <h2>has_val()</h2>
Offset 4721, 23 lines modifiedOffset 4721, 23 lines modified
4721 <a·name="clear()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bclear%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bclear%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>4721 <a·name="clear()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bclear%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bclear%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
4722 <div·class="section"·id="clear-1">4722 <div·class="section"·id="clear-1">
4723 <h2>clear()</h2>4723 <h2>clear()</h2>
4724 <pre·class="literal-block">4724 <pre·class="literal-block">
4725 void·<strong>clear</strong>·(int·name);4725 void·<strong>clear</strong>·(int·name);
4726 </pre>4726 </pre>
4727 <p>clear·a·specific·setting·from·the·pack</p>4727 <p>clear·a·specific·setting·from·the·pack</p>
4728 <a·name="get_int()"></a> 
4729 <a·name="get_bool()"></a>4728 <a·name="get_bool()"></a>
 4729 <a·name="get_int()"></a>
4730 <a·name="get_str()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bget_int%28%29+get_bool%28%29+get_str%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bget_int%28%29+get_bool%28%29+get_str%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>4730 <a·name="get_str()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bget_bool%28%29+get_int%28%29+get_str%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bget_bool%28%29+get_int%28%29+get_str%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
4731 <div·class="section"·id="get-int-get-bool-get-str">4731 <div·class="section"·id="get-bool-get-int-get-str">
4732 <h2>get_int()·get_bool()·get_str()</h2>4732 <h2>get_bool()·get_int()·get_str()</h2>
4733 <pre·class="literal-block">4733 <pre·class="literal-block">
4734 std::string·const&amp;·<strong>get_str</strong>·(int·name)·const·override;4734 std::string·const&amp;·<strong>get_str</strong>·(int·name)·const·override;
4735 int·<strong>get_int</strong>·(int·name)·const·override; 
4736 bool·<strong>get_bool</strong>·(int·name)·const·override;4735 bool·<strong>get_bool</strong>·(int·name)·const·override;
 4736 int·<strong>get_int</strong>·(int·name)·const·override;
4737 </pre>4737 </pre>
4738 <p>queries·the·current·configuration·option·from·the·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>.4738 <p>queries·the·current·configuration·option·from·the·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>.
4739 <tt·class="docutils·literal">name</tt>·is·one·of·the·enumeration·values·from·string_types,·int_types4739 <tt·class="docutils·literal">name</tt>·is·one·of·the·enumeration·values·from·string_types,·int_types
4740 or·bool_types.·The·enum·value·must·match·the·type·of·the·get_*4740 or·bool_types.·The·enum·value·must·match·the·type·of·the·get_*
4741 function.·If·the·specified·setting·field·has·not·been·set,·the·default4741 function.·If·the·specified·setting·field·has·not·been·set,·the·default
4742 value·is·returned.</p>4742 value·is·returned.</p>
4743 <a·name="type_bases"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:enum+type_bases&labels=documentation&body=Documentation+under+heading+%22enum+type_bases%22+could+be+improved">report·issue</a>]</span></div>4743 <a·name="type_bases"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:enum+type_bases&labels=documentation&body=Documentation+under+heading+%22enum+type_bases%22+could+be+improved">report·issue</a>]</span></div>
Offset 5096, 36 lines modifiedOffset 5096, 17 lines modified
5096 <tr><td>http_pw</td>5096 <tr><td>http_pw</td>
5097 <td>5</td>5097 <td>5</td>
5098 <td>The·server·is·assumed·to·be·an·HTTP·proxy·that·requires·user5098 <td>The·server·is·assumed·to·be·an·HTTP·proxy·that·requires·user
5099 authorization.·The·username·and·password·will·be·sent·to·the·proxy.</td>5099 authorization.·The·username·and·password·will·be·sent·to·the·proxy.</td>
5100 </tr>5100 </tr>
5101 </tbody>5101 </tbody>
5102 </table>5102 </table>
5103 <a·name="setting_by_name()"></a> 
5104 <a·name="name_for_setting()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:setting_by_name%28%29+name_for_setting%28%29&labels=documentation&body=Documentation+under+heading+%22setting_by_name%28%29+name_for_setting%28%29%22+could+be+improved">report·issue</a>]</span></div> 
5105 </div> 
5106 <div·class="section"·id="setting-by-name-name-for-setting"> 
Max diff block lines reached; 2943/14711 bytes (20.01%) of diff not shown.
6.26 KB
html2text {}
    
Offset 1, 31 lines modifiedOffset 1, 31 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·settings_pack5 ····*·settings_pack
6 ··········o·set_bool()_set_int()_set_str()6 ··········o·set_str()_set_int()_set_bool()
7 ··········o·has_val()7 ··········o·has_val()
8 ··········o·clear()8 ··········o·clear()
9 ··········o·clear()9 ··········o·clear()
10 ··········o·get_int()_get_bool()_get_str()10 ··········o·get_bool()_get_int()_get_str()
11 ··········o·enum_type_bases11 ··········o·enum_type_bases
12 ··········o·enum_mmap_write_mode_t12 ··········o·enum_mmap_write_mode_t
13 ··········o·enum_suggest_mode_t13 ··········o·enum_suggest_mode_t
14 ··········o·enum_choking_algorithm_t14 ··········o·enum_choking_algorithm_t
15 ··········o·enum_seed_choking_algorithm_t15 ··········o·enum_seed_choking_algorithm_t
16 ··········o·enum_io_buffer_mode_t16 ··········o·enum_io_buffer_mode_t
17 ··········o·enum_bandwidth_mixed_algo_t17 ··········o·enum_bandwidth_mixed_algo_t
18 ··········o·enum_enc_policy18 ··········o·enum_enc_policy
19 ··········o·enum_enc_level19 ··········o·enum_enc_level
20 ··········o·enum_proxy_type_t20 ··········o·enum_proxy_type_t
21 ····*·setting_by_name()_name_for_setting() 
22 ····*·default_settings() 
23 ····*·high_performance_seed()_min_memory_usage()21 ····*·high_performance_seed()_min_memory_usage()
24 ····*·generate_fingerprint()22 ····*·generate_fingerprint()
 23 ····*·name_for_setting()_setting_by_name()
 24 ····*·default_settings()
25 You·have·some·control·over·session·configuration·through·the·session::apply_25 You·have·some·control·over·session·configuration·through·the·session::apply_
26 settings()·member·function.·To·change·one·or·more·configuration·options,·create26 settings()·member·function.·To·change·one·or·more·configuration·options,·create
27 a·settings_pack·object·and·fill·it·with·the·settings·to·be·set·and·pass·it·in27 a·settings_pack·object·and·fill·it·with·the·settings·to·be·set·and·pass·it·in
28 to·session::apply_settings().28 to·session::apply_settings().
29 The·settings_pack·object·is·a·collection·of·settings·updates·that·are·applied29 The·settings_pack·object·is·a·collection·of·settings·updates·that·are·applied
30 to·the·session·when·passed·to·session::apply_settings().·It's·empty·when30 to·the·session·when·passed·to·session::apply_settings().·It's·empty·when
31 constructed.31 constructed.
Offset 1433, 24 lines modifiedOffset 1433, 24 lines modified
1433 connect·to·the·external·NAT-PMP·port·(configured·using·announce_port)·instead1433 connect·to·the·external·NAT-PMP·port·(configured·using·announce_port)·instead
1434 of·the·actual·local·listening·port.1434 of·the·actual·local·listening·port.
1435 struct·settings_pack·final·:·settings_interface1435 struct·settings_pack·final·:·settings_interface
1436 {1436 {
1437 ···friend··void·apply_pack_impl·(settings_pack·const*1437 ···friend··void·apply_pack_impl·(settings_pack·const*
1438 ······,·aux::session_settings_single_thread&1438 ······,·aux::session_settings_single_thread&
1439 ······,·std::vector<void(aux::session_impl::*)()>*);1439 ······,·std::vector<void(aux::session_impl::*)()>*);
1440 ···void·set_int·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val); 
1441 ···void·set_str·(int·name,·std::string·val)·override;1440 ···void·set_str·(int·name,·std::string·val)·override;
1442 ···void·set_int·(int·name,·int·val)·override;1441 ···void·set_int·(int·name,·int·val)·override;
1443 ···void·set_bool·(int·name,·bool·val)·override;1442 ···void·set_bool·(int·name,·bool·val)·override;
 1443 ···void·set_int·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val);
1444 ···bool·has_val·(int·name)·const·override;1444 ···bool·has_val·(int·name)·const·override;
1445 ···void·clear·();1445 ···void·clear·();
1446 ···void·clear·(int·name);1446 ···void·clear·(int·name);
1447 ···std::string·const&·get_str·(int·name)·const·override;1447 ···std::string·const&·get_str·(int·name)·const·override;
1448 ···int·get_int·(int·name)·const·override; 
1449 ···bool·get_bool·(int·name)·const·override;1448 ···bool·get_bool·(int·name)·const·override;
 1449 ···int·get_int·(int·name)·const·override;
1450 ···void·for_each·(Fun&&·f)·const;1450 ···void·for_each·(Fun&&·f)·const;
  
1451 ···enum·type_bases1451 ···enum·type_bases
1452 ···{1452 ···{
1453 ······string_type_base,1453 ······string_type_base,
1454 ······int_type_base,1454 ······int_type_base,
1455 ······bool_type_base,1455 ······bool_type_base,
Offset 1520, 19 lines modifiedOffset 1520, 19 lines modified
1520 ······socks5,1520 ······socks5,
1521 ······socks5_pw,1521 ······socks5_pw,
1522 ······http,1522 ······http,
1523 ······http_pw,1523 ······http_pw,
1524 ···};1524 ···};
1525 };1525 };
1526 [report_issue]1526 [report_issue]
1527 *****·set_bool()·set_int()·set_str()·*****1527 *****·set_str()·set_int()·set_bool()·*****
1528 void·set_int·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val); 
1529 void·set_str·(int·name,·std::string·val)·override;1528 void·set_str·(int·name,·std::string·val)·override;
1530 void·set_int·(int·name,·int·val)·override;1529 void·set_int·(int·name,·int·val)·override;
1531 void·set_bool·(int·name,·bool·val)·override;1530 void·set_bool·(int·name,·bool·val)·override;
 1531 void·set_int·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val);
1532 set·a·configuration·option·in·the·settings_pack.·name·is·one·of·the·enum·values1532 set·a·configuration·option·in·the·settings_pack.·name·is·one·of·the·enum·values
1533 from·string_types,·int_types·or·bool_types.·They·must·match·the·respective·type1533 from·string_types,·int_types·or·bool_types.·They·must·match·the·respective·type
1534 of·the·set_*·function.1534 of·the·set_*·function.
1535 [report_issue]1535 [report_issue]
1536 *****·has_val()·*****1536 *****·has_val()·*****
1537 bool·has_val·(int·name)·const·override;1537 bool·has_val·(int·name)·const·override;
1538 queries·whether·the·specified·configuration·option·has·a·value·set·in·this1538 queries·whether·the·specified·configuration·option·has·a·value·set·in·this
Offset 1543, 18 lines modifiedOffset 1543, 18 lines modified
1543 void·clear·();1543 void·clear·();
1544 clear·the·settings·pack·from·all·settings1544 clear·the·settings·pack·from·all·settings
1545 [report_issue]1545 [report_issue]
1546 *****·clear()·*****1546 *****·clear()·*****
1547 void·clear·(int·name);1547 void·clear·(int·name);
1548 clear·a·specific·setting·from·the·pack1548 clear·a·specific·setting·from·the·pack
1549 [report_issue]1549 [report_issue]
1550 *****·get_int()·get_bool()·get_str()·*****1550 *****·get_bool()·get_int()·get_str()·*****
1551 std::string·const&·get_str·(int·name)·const·override;1551 std::string·const&·get_str·(int·name)·const·override;
1552 int·get_int·(int·name)·const·override; 
1553 bool·get_bool·(int·name)·const·override;1552 bool·get_bool·(int·name)·const·override;
 1553 int·get_int·(int·name)·const·override;
1554 queries·the·current·configuration·option·from·the·settings_pack.·name·is·one·of1554 queries·the·current·configuration·option·from·the·settings_pack.·name·is·one·of
1555 the·enumeration·values·from·string_types,·int_types·or·bool_types.·The·enum1555 the·enumeration·values·from·string_types,·int_types·or·bool_types.·The·enum
1556 value·must·match·the·type·of·the·get_*·function.·If·the·specified·setting·field1556 value·must·match·the·type·of·the·get_*·function.·If·the·specified·setting·field
1557 has·not·been·set,·the·default·value·is·returned.1557 has·not·been·set,·the·default·value·is·returned.
1558 [report_issue]1558 [report_issue]
1559 *****·enum·type_bases·*****1559 *****·enum·type_bases·*****
1560 Declared·in·"libtorrent/settings_pack.hpp"1560 Declared·in·"libtorrent/settings_pack.hpp"
Offset 1681, 26 lines modifiedOffset 1681, 14 lines modified
1681 |·········|·····|trackers,·a·plain·proxy·will·suffice.·The·proxy·is·assumed·to|1681 |·········|·····|trackers,·a·plain·proxy·will·suffice.·The·proxy·is·assumed·to|
1682 |·········|·····|not·require·authorization.·The·username·and·password·will·not|1682 |·········|·····|not·require·authorization.·The·username·and·password·will·not|
1683 |_________|_____|be_used._____________________________________________________|1683 |_________|_____|be_used._____________________________________________________|
1684 |·········|·····|The·server·is·assumed·to·be·an·HTTP·proxy·that·requires·user·|1684 |·········|·····|The·server·is·assumed·to·be·an·HTTP·proxy·that·requires·user·|
1685 |http_pw··|5····|authorization.·The·username·and·password·will·be·sent·to·the·|1685 |http_pw··|5····|authorization.·The·username·and·password·will·be·sent·to·the·|
1686 |_________|_____|proxy._______________________________________________________|1686 |_________|_____|proxy._______________________________________________________|
1687 [report_issue]1687 [report_issue]
1688 ******·setting_by_name()·name_for_setting()·****** 
1689 Declared·in·"libtorrent/settings_pack.hpp" 
1690 char·const*·name_for_setting·(int·s); 
1691 int·setting_by_name·(string_view·name); 
1692 converts·a·setting·integer·(from·the·enums·string_types,·int_types·or·bool_ 
1693 types)·to·a·string,·and·vice·versa. 
1694 [report_issue] 
1695 ******·default_settings()·****** 
1696 Declared·in·"libtorrent/settings_pack.hpp" 
1697 settings_pack·default_settings·(); 
1698 returns·a·settings_pack·with·every·setting·set·to·its·default·value 
1699 [report_issue] 
1700 ******·high_performance_seed()·min_memory_usage()·******1688 ******·high_performance_seed()·min_memory_usage()·******
1701 Declared·in·"libtorrent/session.hpp"1689 Declared·in·"libtorrent/session.hpp"
1702 settings_pack·min_memory_usage·();1690 settings_pack·min_memory_usage·();
1703 settings_pack·high_performance_seed·();1691 settings_pack·high_performance_seed·();
1704 The·default·values·of·the·session·settings·are·set·for·a·regular·bittorrent1692 The·default·values·of·the·session·settings·are·set·for·a·regular·bittorrent
1705 client·running·on·a·desktop·system.·There·are·functions·that·can·set·the1693 client·running·on·a·desktop·system.·There·are·functions·that·can·set·the
Max diff block lines reached; 888/6383 bytes (13.91%) of diff not shown.
9.67 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Stats.html
    
Offset 28, 50 lines modifiedOffset 28, 25 lines modified
28 <td>2.0.11</td></tr>28 <td>2.0.11</td></tr>
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
 35 <li><a·class="reference·internal"·href="#stats-metric"·id="toc-entry-1">stats_metric</a></li>
35 <li><a·class="reference·internal"·href="#counters"·id="toc-entry-1">counters</a><ul>36 <li><a·class="reference·internal"·href="#counters"·id="toc-entry-2">counters</a><ul>
36 <li><a·class="reference·internal"·href="#inc-stats-counter-operator"·id="toc-entry-2">inc_stats_counter()·operator[]()</a></li>37 <li><a·class="reference·internal"·href="#inc-stats-counter-operator"·id="toc-entry-3">inc_stats_counter()·operator[]()</a></li>
37 </ul>38 </ul>
38 </li>39 </li>
39 <li><a·class="reference·internal"·href="#stats-metric"·id="toc-entry-3">stats_metric</a></li> 
40 <li><a·class="reference·internal"·href="#session-stats-metrics"·id="toc-entry-4">session_stats_metrics()</a></li>40 <li><a·class="reference·internal"·href="#session-stats-metrics"·id="toc-entry-4">session_stats_metrics()</a></li>
41 <li><a·class="reference·internal"·href="#find-metric-idx"·id="toc-entry-5">find_metric_idx()</a></li>41 <li><a·class="reference·internal"·href="#find-metric-idx"·id="toc-entry-5">find_metric_idx()</a></li>
42 <li><a·class="reference·internal"·href="#enum-metric-type-t"·id="toc-entry-6">enum·metric_type_t</a></li>42 <li><a·class="reference·internal"·href="#enum-metric-type-t"·id="toc-entry-6">enum·metric_type_t</a></li>
43 </ul>43 </ul>
44 </div>44 </div>
45 <a·name="counters"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+counters&labels=documentation&body=Documentation+under+heading+%22class+counters%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="counters"> 
46 <h1>counters</h1> 
47 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/performance_counters.hpp">libtorrent/performance_counters.hpp</a>&quot;</p> 
48 <pre·class="literal-block"> 
49 struct·counters 
50 { 
51 ···<strong>counters</strong>·()·; 
52 ···counters&amp;·<strong>operator=</strong>·(counters·const&amp;)·&amp;·; 
53 ···<strong>counters</strong>·(counters·const&amp;)·; 
54 ···std::int64_t·<strong>inc_stats_counter</strong>·(int·c,·std::int64_t·value·=·1)·; 
55 ···std::int64_t·<strong>operator[]</strong>·(int·i)·const·; 
56 ···void·<strong>set_value</strong>·(int·c,·std::int64_t·value)·; 
57 ···void·<strong>blend_stats_counter</strong>·(int·c,·std::int64_t·value,·int·ratio)·; 
58 }; 
59 </pre> 
60 <a·name="inc_stats_counter()"></a> 
61 <a·name="operator[]()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:counters%3A%3A%5Binc_stats_counter%28%29+operator%5B%5D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22counters%3A%3A%5Binc_stats_counter%28%29+operator%5B%5D%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="inc-stats-counter-operator"> 
62 <h2>inc_stats_counter()·operator[]()</h2> 
63 <pre·class="literal-block"> 
64 std::int64_t·<strong>inc_stats_counter</strong>·(int·c,·std::int64_t·value·=·1)·; 
65 std::int64_t·<strong>operator[]</strong>·(int·i)·const·; 
66 </pre> 
67 <p>returns·the·new·value</p> 
68 <a·name="stats_metric"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+stats_metric&labels=documentation&body=Documentation+under+heading+%22class+stats_metric%22+could+be+improved">report·issue</a>]</span></div>45 <a·name="stats_metric"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+stats_metric&labels=documentation&body=Documentation+under+heading+%22class+stats_metric%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="stats-metric">
69 </div> 
70 <div·class="section"·id="stats-metric"> 
71 <h1>stats_metric</h1>46 <h1>stats_metric</h1>
72 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/session_stats.hpp">libtorrent/session_stats.hpp</a>&quot;</p>47 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/session_stats.hpp">libtorrent/session_stats.hpp</a>&quot;</p>
73 <p>describes·one·statistics·metric·from·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>.·For·more·information,48 <p>describes·one·statistics·metric·from·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>.·For·more·information,
74 see·the·<a·class="reference·external"·href="manual-ref.html#session-statistics">session·statistics</a>·section.</p>49 see·the·<a·class="reference·external"·href="manual-ref.html#session-statistics">session·statistics</a>·section.</p>
75 <pre·class="literal-block">50 <pre·class="literal-block">
76 struct·stats_metric51 struct·stats_metric
77 {52 {
Offset 87, 15 lines modifiedOffset 62, 40 lines modified
87 <a·name="value_index"></a>62 <a·name="value_index"></a>
88 <a·name="type"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:stats_metric%3A%3A%5Bvalue_index+type%5D&labels=documentation&body=Documentation+under+heading+%22stats_metric%3A%3A%5Bvalue_index+type%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">63 <a·name="type"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:stats_metric%3A%3A%5Bvalue_index+type%5D&labels=documentation&body=Documentation+under+heading+%22stats_metric%3A%3A%5Bvalue_index+type%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">
89 <dt>value_index·type</dt>64 <dt>value_index·type</dt>
90 <dd>the·index·into·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·stats·array,·where·the·underlying·value·of65 <dd>the·index·into·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·stats·array,·where·the·underlying·value·of
91 this·counter·or·gauge·is·found.·The·<a·class="reference·external"·href="reference-Session.html#session">session</a>·stats·array·is·part·of·the66 this·counter·or·gauge·is·found.·The·<a·class="reference·external"·href="reference-Session.html#session">session</a>·stats·array·is·part·of·the
92 <a·class="reference·external"·href="reference-Alerts.html#session_stats_alert">session_stats_alert</a>·object.</dd>67 <a·class="reference·external"·href="reference-Alerts.html#session_stats_alert">session_stats_alert</a>·object.</dd>
93 </dl>68 </dl>
 69 <a·name="counters"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+counters&labels=documentation&body=Documentation+under+heading+%22class+counters%22+could+be+improved">report·issue</a>]</span></div>
 70 <div·class="section"·id="counters">
 71 <h1>counters</h1>
 72 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/performance_counters.hpp">libtorrent/performance_counters.hpp</a>&quot;</p>
 73 <pre·class="literal-block">
 74 struct·counters
 75 {
 76 ···<strong>counters</strong>·()·;
 77 ···counters&amp;·<strong>operator=</strong>·(counters·const&amp;)·&amp;·;
 78 ···<strong>counters</strong>·(counters·const&amp;)·;
 79 ···std::int64_t·<strong>operator[]</strong>·(int·i)·const·;
 80 ···std::int64_t·<strong>inc_stats_counter</strong>·(int·c,·std::int64_t·value·=·1)·;
 81 ···void·<strong>blend_stats_counter</strong>·(int·c,·std::int64_t·value,·int·ratio)·;
 82 ···void·<strong>set_value</strong>·(int·c,·std::int64_t·value)·;
 83 };
 84 </pre>
 85 <a·name="inc_stats_counter()"></a>
 86 <a·name="operator[]()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:counters%3A%3A%5Binc_stats_counter%28%29+operator%5B%5D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22counters%3A%3A%5Binc_stats_counter%28%29+operator%5B%5D%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="inc-stats-counter-operator">
 87 <h2>inc_stats_counter()·operator[]()</h2>
 88 <pre·class="literal-block">
 89 std::int64_t·<strong>operator[]</strong>·(int·i)·const·;
 90 std::int64_t·<strong>inc_stats_counter</strong>·(int·c,·std::int64_t·value·=·1)·;
 91 </pre>
 92 <p>returns·the·new·value</p>
94 <a·name="session_stats_metrics()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:session_stats_metrics%28%29&labels=documentation&body=Documentation+under+heading+%22session_stats_metrics%28%29%22+could+be+improved">report·issue</a>]</span></div>93 <a·name="session_stats_metrics()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:session_stats_metrics%28%29&labels=documentation&body=Documentation+under+heading+%22session_stats_metrics%28%29%22+could+be+improved">report·issue</a>]</span></div>
 94 </div>
95 <div·class="section"·id="session-stats-metrics">95 <div·class="section"·id="session-stats-metrics">
96 <h1>session_stats_metrics()</h1>96 <h1>session_stats_metrics()</h1>
97 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/session_stats.hpp">libtorrent/session_stats.hpp</a>&quot;</p>97 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/session_stats.hpp">libtorrent/session_stats.hpp</a>&quot;</p>
98 <pre·class="literal-block">98 <pre·class="literal-block">
99 std::vector&lt;stats_metric&gt;·<strong>session_stats_metrics</strong>·();99 std::vector&lt;stats_metric&gt;·<strong>session_stats_metrics</strong>·();
100 </pre>100 </pre>
101 <p>This·free·function·returns·the·list·of·available·metrics·exposed·by101 <p>This·free·function·returns·the·list·of·available·metrics·exposed·by
2.48 KB
html2text {}
    
Offset 1, 36 lines modifiedOffset 1, 18 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
 5 ····*·stats_metric
5 ····*·counters6 ····*·counters
6 ··········o·inc_stats_counter()_operator[]()7 ··········o·inc_stats_counter()_operator[]()
7 ····*·stats_metric 
8 ····*·session_stats_metrics()8 ····*·session_stats_metrics()
9 ····*·find_metric_idx()9 ····*·find_metric_idx()
10 ····*·enum_metric_type_t10 ····*·enum_metric_type_t
11 [report_issue]11 [report_issue]
12 ******·counters·****** 
13 Declared·in·"libtorrent/performance_counters.hpp" 
14 struct·counters 
15 { 
16 ···counters·()·; 
17 ···counters&·operator=·(counters·const&)·&·; 
18 ···counters·(counters·const&)·; 
19 ···std::int64_t·inc_stats_counter·(int·c,·std::int64_t·value·=·1)·; 
20 ···std::int64_t·operator[]·(int·i)·const·; 
21 ···void·set_value·(int·c,·std::int64_t·value)·; 
22 ···void·blend_stats_counter·(int·c,·std::int64_t·value,·int·ratio)·; 
23 }; 
24 [report_issue] 
25 *****·inc_stats_counter()·operator[]()·***** 
26 std::int64_t·inc_stats_counter·(int·c,·std::int64_t·value·=·1)·; 
27 std::int64_t·operator[]·(int·i)·const·; 
28 returns·the·new·value 
29 [report_issue] 
30 ******·stats_metric·******12 ******·stats_metric·******
31 Declared·in·"libtorrent/session_stats.hpp"13 Declared·in·"libtorrent/session_stats.hpp"
32 describes·one·statistics·metric·from·the·session.·For·more·information,·see·the14 describes·one·statistics·metric·from·the·session.·For·more·information,·see·the
33 session_statistics·section.15 session_statistics·section.
34 struct·stats_metric16 struct·stats_metric
35 {17 {
36 ···char·const*·name;18 ···char·const*·name;
Offset 42, 14 lines modifiedOffset 24, 32 lines modified
42 ······the·name·of·the·counter·or·gauge24 ······the·name·of·the·counter·or·gauge
43 [report_issue]25 [report_issue]
44 ··value_index·type26 ··value_index·type
45 ······the·index·into·the·session·stats·array,·where·the·underlying·value·of27 ······the·index·into·the·session·stats·array,·where·the·underlying·value·of
46 ······this·counter·or·gauge·is·found.·The·session·stats·array·is·part·of·the28 ······this·counter·or·gauge·is·found.·The·session·stats·array·is·part·of·the
47 ······session_stats_alert·object.29 ······session_stats_alert·object.
48 [report_issue]30 [report_issue]
 31 ******·counters·******
 32 Declared·in·"libtorrent/performance_counters.hpp"
 33 struct·counters
 34 {
 35 ···counters·()·;
 36 ···counters&·operator=·(counters·const&)·&·;
 37 ···counters·(counters·const&)·;
 38 ···std::int64_t·operator[]·(int·i)·const·;
 39 ···std::int64_t·inc_stats_counter·(int·c,·std::int64_t·value·=·1)·;
 40 ···void·blend_stats_counter·(int·c,·std::int64_t·value,·int·ratio)·;
 41 ···void·set_value·(int·c,·std::int64_t·value)·;
 42 };
 43 [report_issue]
 44 *****·inc_stats_counter()·operator[]()·*****
 45 std::int64_t·operator[]·(int·i)·const·;
 46 std::int64_t·inc_stats_counter·(int·c,·std::int64_t·value·=·1)·;
 47 returns·the·new·value
 48 [report_issue]
49 ******·session_stats_metrics()·******49 ******·session_stats_metrics()·******
50 Declared·in·"libtorrent/session_stats.hpp"50 Declared·in·"libtorrent/session_stats.hpp"
51 std::vector<stats_metric>·session_stats_metrics·();51 std::vector<stats_metric>·session_stats_metrics·();
52 This·free·function·returns·the·list·of·available·metrics·exposed·by52 This·free·function·returns·the·list·of·available·metrics·exposed·by
53 libtorrent's·statistics·API.·Each·metric·has·a·name·and·a·value·index.·The53 libtorrent's·statistics·API.·Each·metric·has·a·name·and·a·value·index.·The
54 value·index·is·the·index·into·the·array·in·session_stats_alert·where·this54 value·index·is·the·index·into·the·array·in·session_stats_alert·where·this
55 metric's·value·can·be·found·when·the·session·stats·is·sampled·(by·calling·post_55 metric's·value·can·be·found·when·the·session·stats·is·sampled·(by·calling·post_
53.0 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Storage.html
    
Offset 33, 52 lines modifiedOffset 33, 52 lines modified
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#storage-params"·id="toc-entry-1">storage_params</a></li>35 <li><a·class="reference·internal"·href="#storage-params"·id="toc-entry-1">storage_params</a></li>
36 <li><a·class="reference·internal"·href="#file-slice"·id="toc-entry-2">file_slice</a></li>36 <li><a·class="reference·internal"·href="#file-slice"·id="toc-entry-2">file_slice</a></li>
37 <li><a·class="reference·internal"·href="#file-storage"·id="toc-entry-3">file_storage</a><ul>37 <li><a·class="reference·internal"·href="#file-storage"·id="toc-entry-3">file_storage</a><ul>
38 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-4">is_valid()</a></li>38 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-4">is_valid()</a></li>
39 <li><a·class="reference·internal"·href="#reserve"·id="toc-entry-5">reserve()</a></li>39 <li><a·class="reference·internal"·href="#reserve"·id="toc-entry-5">reserve()</a></li>
40 <li><a·class="reference·internal"·href="#add-file-borrow-add-file"·id="toc-entry-6">add_file_borrow()·add_file()</a></li>40 <li><a·class="reference·internal"·href="#add-file-add-file-borrow"·id="toc-entry-6">add_file()·add_file_borrow()</a></li>
41 <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-7">rename_file()</a></li>41 <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-7">rename_file()</a></li>
42 <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-8">map_block()</a></li>42 <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-8">map_block()</a></li>
43 <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-9">map_file()</a></li>43 <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-9">map_file()</a></li>
44 <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-10">num_files()</a></li>44 <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-10">num_files()</a></li>
45 <li><a·class="reference·internal"·href="#end-file"·id="toc-entry-11">end_file()</a></li>45 <li><a·class="reference·internal"·href="#end-file"·id="toc-entry-11">end_file()</a></li>
46 <li><a·class="reference·internal"·href="#file-range"·id="toc-entry-12">file_range()</a></li>46 <li><a·class="reference·internal"·href="#file-range"·id="toc-entry-12">file_range()</a></li>
47 <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-13">total_size()</a></li>47 <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-13">total_size()</a></li>
48 <li><a·class="reference·internal"·href="#set-num-pieces-num-pieces"·id="toc-entry-14">set_num_pieces()·num_pieces()</a></li>48 <li><a·class="reference·internal"·href="#num-pieces-set-num-pieces"·id="toc-entry-14">num_pieces()·set_num_pieces()</a></li>
49 <li><a·class="reference·internal"·href="#end-piece"·id="toc-entry-15">end_piece()</a></li>49 <li><a·class="reference·internal"·href="#end-piece"·id="toc-entry-15">end_piece()</a></li>
50 <li><a·class="reference·internal"·href="#last-piece"·id="toc-entry-16">last_piece()</a></li>50 <li><a·class="reference·internal"·href="#last-piece"·id="toc-entry-16">last_piece()</a></li>
51 <li><a·class="reference·internal"·href="#piece-range"·id="toc-entry-17">piece_range()</a></li>51 <li><a·class="reference·internal"·href="#piece-range"·id="toc-entry-17">piece_range()</a></li>
52 <li><a·class="reference·internal"·href="#set-piece-length-piece-length"·id="toc-entry-18">set_piece_length()·piece_length()</a></li>52 <li><a·class="reference·internal"·href="#piece-length-set-piece-length"·id="toc-entry-18">piece_length()·set_piece_length()</a></li>
53 <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-19">piece_size()</a></li>53 <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-19">piece_size()</a></li>
54 <li><a·class="reference·internal"·href="#piece-size2"·id="toc-entry-20">piece_size2()</a></li>54 <li><a·class="reference·internal"·href="#piece-size2"·id="toc-entry-20">piece_size2()</a></li>
55 <li><a·class="reference·internal"·href="#blocks-in-piece2"·id="toc-entry-21">blocks_in_piece2()</a></li>55 <li><a·class="reference·internal"·href="#blocks-in-piece2"·id="toc-entry-21">blocks_in_piece2()</a></li>
56 <li><a·class="reference·internal"·href="#blocks-per-piece"·id="toc-entry-22">blocks_per_piece()</a></li>56 <li><a·class="reference·internal"·href="#blocks-per-piece"·id="toc-entry-22">blocks_per_piece()</a></li>
57 <li><a·class="reference·internal"·href="#name-set-name"·id="toc-entry-23">name()·set_name()</a></li>57 <li><a·class="reference·internal"·href="#name-set-name"·id="toc-entry-23">name()·set_name()</a></li>
58 <li><a·class="reference·internal"·href="#swap"·id="toc-entry-24">swap()</a></li>58 <li><a·class="reference·internal"·href="#swap"·id="toc-entry-24">swap()</a></li>
59 <li><a·class="reference·internal"·href="#canonicalize"·id="toc-entry-25">canonicalize()</a></li>59 <li><a·class="reference·internal"·href="#canonicalize"·id="toc-entry-25">canonicalize()</a></li>
60 <li><a·class="reference·internal"·href="#file-offset-file-path-file-name-root-root-ptr-hash-symlink-mtime-file-size-pad-file-at"·id="toc-entry-26">file_offset()·file_path()·file_name()·root()·root_ptr()·hash()·symlink()·mtime()·file_size()·pad_file_at()</a></li>60 <li><a·class="reference·internal"·href="#symlink-file-offset-mtime-file-path-root-hash-root-ptr-pad-file-at-file-size-file-name"·id="toc-entry-26">symlink()·file_offset()·mtime()·file_path()·root()·hash()·root_ptr()·pad_file_at()·file_size()·file_name()</a></li>
61 <li><a·class="reference·internal"·href="#file-num-pieces-file-num-blocks-file-piece-range"·id="toc-entry-27">file_num_pieces()·file_num_blocks()·file_piece_range()</a></li>61 <li><a·class="reference·internal"·href="#file-num-pieces-file-piece-range-file-num-blocks"·id="toc-entry-27">file_num_pieces()·file_piece_range()·file_num_blocks()</a></li>
62 <li><a·class="reference·internal"·href="#file-first-piece-node-file-first-block-node"·id="toc-entry-28">file_first_piece_node()·file_first_block_node()</a></li>62 <li><a·class="reference·internal"·href="#file-first-piece-node-file-first-block-node"·id="toc-entry-28">file_first_piece_node()·file_first_block_node()</a></li>
63 <li><a·class="reference·internal"·href="#file-path-hash"·id="toc-entry-29">file_path_hash()</a></li>63 <li><a·class="reference·internal"·href="#file-path-hash"·id="toc-entry-29">file_path_hash()</a></li>
64 <li><a·class="reference·internal"·href="#all-path-hashes"·id="toc-entry-30">all_path_hashes()</a></li>64 <li><a·class="reference·internal"·href="#all-path-hashes"·id="toc-entry-30">all_path_hashes()</a></li>
65 <li><a·class="reference·internal"·href="#file-flags"·id="toc-entry-31">file_flags()</a></li>65 <li><a·class="reference·internal"·href="#file-flags"·id="toc-entry-31">file_flags()</a></li>
66 <li><a·class="reference·internal"·href="#file-absolute-path"·id="toc-entry-32">file_absolute_path()</a></li>66 <li><a·class="reference·internal"·href="#file-absolute-path"·id="toc-entry-32">file_absolute_path()</a></li>
67 <li><a·class="reference·internal"·href="#file-index-at-offset-file-index-at-piece"·id="toc-entry-33">file_index_at_offset()·file_index_at_piece()</a></li>67 <li><a·class="reference·internal"·href="#file-index-at-piece-file-index-at-offset"·id="toc-entry-33">file_index_at_piece()·file_index_at_offset()</a></li>
68 <li><a·class="reference·internal"·href="#file-index-for-root"·id="toc-entry-34">file_index_for_root()</a></li>68 <li><a·class="reference·internal"·href="#file-index-for-root"·id="toc-entry-34">file_index_for_root()</a></li>
69 <li><a·class="reference·internal"·href="#piece-index-at-file"·id="toc-entry-35">piece_index_at_file()</a></li>69 <li><a·class="reference·internal"·href="#piece-index-at-file"·id="toc-entry-35">piece_index_at_file()</a></li>
70 <li><a·class="reference·internal"·href="#sanitize-symlinks"·id="toc-entry-36">sanitize_symlinks()</a></li>70 <li><a·class="reference·internal"·href="#sanitize-symlinks"·id="toc-entry-36">sanitize_symlinks()</a></li>
71 <li><a·class="reference·internal"·href="#v2"·id="toc-entry-37">v2()</a></li>71 <li><a·class="reference·internal"·href="#v2"·id="toc-entry-37">v2()</a></li>
72 </ul>72 </ul>
73 </li>73 </li>
74 <li><a·class="reference·internal"·href="#mmap-disk-io-constructor"·id="toc-entry-38">mmap_disk_io_constructor()</a></li> 
75 <li><a·class="reference·internal"·href="#default-disk-io-constructor"·id="toc-entry-39">default_disk_io_constructor()</a></li>74 <li><a·class="reference·internal"·href="#default-disk-io-constructor"·id="toc-entry-38">default_disk_io_constructor()</a></li>
 75 <li><a·class="reference·internal"·href="#posix-disk-io-constructor"·id="toc-entry-39">posix_disk_io_constructor()</a></li>
76 <li><a·class="reference·internal"·href="#disabled-disk-io-constructor"·id="toc-entry-40">disabled_disk_io_constructor()</a></li>76 <li><a·class="reference·internal"·href="#disabled-disk-io-constructor"·id="toc-entry-40">disabled_disk_io_constructor()</a></li>
77 <li><a·class="reference·internal"·href="#posix-disk-io-constructor"·id="toc-entry-41">posix_disk_io_constructor()</a></li>77 <li><a·class="reference·internal"·href="#mmap-disk-io-constructor"·id="toc-entry-41">mmap_disk_io_constructor()</a></li>
78 <li><a·class="reference·internal"·href="#enum-storage-mode-t"·id="toc-entry-42">enum·storage_mode_t</a></li>78 <li><a·class="reference·internal"·href="#enum-storage-mode-t"·id="toc-entry-42">enum·storage_mode_t</a></li>
79 <li><a·class="reference·internal"·href="#enum-status-t"·id="toc-entry-43">enum·status_t</a></li>79 <li><a·class="reference·internal"·href="#enum-status-t"·id="toc-entry-43">enum·status_t</a></li>
80 <li><a·class="reference·internal"·href="#enum-move-flags-t"·id="toc-entry-44">enum·move_flags_t</a></li>80 <li><a·class="reference·internal"·href="#enum-move-flags-t"·id="toc-entry-44">enum·move_flags_t</a></li>
81 </ul>81 </ul>
82 </div>82 </div>
83 <a·name="storage_params"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+storage_params&labels=documentation&body=Documentation+under+heading+%22class+storage_params%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="storage-params">83 <a·name="storage_params"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+storage_params&labels=documentation&body=Documentation+under+heading+%22class+storage_params%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="storage-params">
84 <h1>storage_params</h1>84 <h1>storage_params</h1>
Offset 139, 28 lines modifiedOffset 139, 28 lines modified
139 size.·Everything·necessary·to·interpret·a·regular·bittorrent·storage139 size.·Everything·necessary·to·interpret·a·regular·bittorrent·storage
140 file·structure.</p>140 file·structure.</p>
141 <pre·class="literal-block">141 <pre·class="literal-block">
142 class·file_storage142 class·file_storage
143 {143 {
144 ···bool·<strong>is_valid</strong>·()·const;144 ···bool·<strong>is_valid</strong>·()·const;
145 ···void·<strong>reserve</strong>·(int·num_files);145 ···void·<strong>reserve</strong>·(int·num_files);
 146 ···void·<strong>add_file_borrow</strong>·(string_view·filename
 147 ······,·std::string·const&amp;·path,·std::int64_t·file_size
 148 ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr
 149 ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view()
 150 ······,·char·const*·root_hash·=·nullptr);
146 ···void·<strong>add_file_borrow</strong>·(error_code&amp;·ec,·string_view·filename151 ···void·<strong>add_file_borrow</strong>·(error_code&amp;·ec,·string_view·filename
147 ······,·std::string·const&amp;·path,·std::int64_t·file_size152 ······,·std::string·const&amp;·path,·std::int64_t·file_size
148 ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr153 ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr
149 ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view()154 ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view()
150 ······,·char·const*·root_hash·=·nullptr);155 ······,·char·const*·root_hash·=·nullptr);
151 ···void·<strong>add_file</strong>·(error_code&amp;·ec,·std::string·const&amp;·path,·std::int64_t·file_size156 ···void·<strong>add_file</strong>·(error_code&amp;·ec,·std::string·const&amp;·path,·std::int64_t·file_size
152 ······,·file_flags_t·file_flags·=·{}157 ······,·file_flags_t·file_flags·=·{}
153 ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view()158 ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view()
154 ······,·char·const*·root_hash·=·nullptr);159 ······,·char·const*·root_hash·=·nullptr);
155 ···void·<strong>add_file_borrow</strong>·(string_view·filename 
156 ······,·std::string·const&amp;·path,·std::int64_t·file_size 
157 ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr 
158 ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() 
159 ······,·char·const*·root_hash·=·nullptr); 
160 ···void·<strong>add_file</strong>·(std::string·const&amp;·path,·std::int64_t·file_size160 ···void·<strong>add_file</strong>·(std::string·const&amp;·path,·std::int64_t·file_size
161 ······,·file_flags_t·file_flags·=·{}161 ······,·file_flags_t·file_flags·=·{}
162 ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view()162 ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view()
163 ······,·char·const*·root_hash·=·nullptr);163 ······,·char·const*·root_hash·=·nullptr);
164 ···void·<strong>rename_file</strong>·(file_index_t·index,·std::string·const&amp;·new_filename);164 ···void·<strong>rename_file</strong>·(file_index_t·index,·std::string·const&amp;·new_filename);
165 ···std::vector&lt;file_slice&gt;·<strong>map_block</strong>·(piece_index_t·piece,·std::int64_t·offset165 ···std::vector&lt;file_slice&gt;·<strong>map_block</strong>·(piece_index_t·piece,·std::int64_t·offset
166 ······,·std::int64_t·size)·const;166 ······,·std::int64_t·size)·const;
Offset 170, 45 lines modifiedOffset 170, 45 lines modified
170 ···index_range&lt;file_index_t&gt;·<strong>file_range</strong>·()·const·noexcept;170 ···index_range&lt;file_index_t&gt;·<strong>file_range</strong>·()·const·noexcept;
171 ···std::int64_t·<strong>total_size</strong>·()·const;171 ···std::int64_t·<strong>total_size</strong>·()·const;
172 ···int·<strong>num_pieces</strong>·()·const;172 ···int·<strong>num_pieces</strong>·()·const;
173 ···void·<strong>set_num_pieces</strong>·(int·n);173 ···void·<strong>set_num_pieces</strong>·(int·n);
174 ···piece_index_t·<strong>end_piece</strong>·()·const;174 ···piece_index_t·<strong>end_piece</strong>·()·const;
175 ···piece_index_t·<strong>last_piece</strong>·()·const;175 ···piece_index_t·<strong>last_piece</strong>·()·const;
176 ···index_range&lt;piece_index_t&gt;·<strong>piece_range</strong>·()·const·noexcept;176 ···index_range&lt;piece_index_t&gt;·<strong>piece_range</strong>·()·const·noexcept;
177 ···int·<strong>piece_length</strong>·()·const; 
178 ···void·<strong>set_piece_length</strong>·(int·l);177 ···void·<strong>set_piece_length</strong>·(int·l);
 178 ···int·<strong>piece_length</strong>·()·const;
179 ···int·<strong>piece_size</strong>·(piece_index_t·index)·const;179 ···int·<strong>piece_size</strong>·(piece_index_t·index)·const;
180 ···int·<strong>piece_size2</strong>·(piece_index_t·index)·const;180 ···int·<strong>piece_size2</strong>·(piece_index_t·index)·const;
181 ···int·<strong>blocks_in_piece2</strong>·(piece_index_t·index)·const;181 ···int·<strong>blocks_in_piece2</strong>·(piece_index_t·index)·const;
182 ···int·<strong>blocks_per_piece</strong>·()·const;182 ···int·<strong>blocks_per_piece</strong>·()·const;
183 ···void·<strong>set_name</strong>·(std::string·const&amp;·n); 
184 ···std::string·const&amp;·<strong>name</strong>·()·const;183 ···std::string·const&amp;·<strong>name</strong>·()·const;
 184 ···void·<strong>set_name</strong>·(std::string·const&amp;·n);
185 ···void·<strong>swap</strong>·(file_storage&amp;·ti)·noexcept;185 ···void·<strong>swap</strong>·(file_storage&amp;·ti)·noexcept;
186 ···void·<strong>canonicalize</strong>·();186 ···void·<strong>canonicalize</strong>·();
187 ···bool·<strong>pad_file_at</strong>·(file_index_t·index)·const; 
188 ···string_view·<strong>file_name</strong>·(file_index_t·index)·const; 
189 ···sha256_hash·<strong>root</strong>·(file_index_t·index)·const; 
190 ···char·const*·<strong>root_ptr</strong>·(file_index_t·const·index)·const;187 ···char·const*·<strong>root_ptr</strong>·(file_index_t·const·index)·const;
191 ···std::int64_t·<strong>file_offset</strong>·(file_index_t·index)·const; 
192 ···std::int64_t·<strong>file_size</strong>·(file_index_t·index)·const;188 ···std::int64_t·<strong>file_size</strong>·(file_index_t·index)·const;
193 ···std::time_t·<strong>mtime</strong>·(file_index_t·index)·const;189 ···std::int64_t·<strong>file_offset</strong>·(file_index_t·index)·const;
194 ···std::string·<strong>file_path</strong>·(file_index_t·index,·std::string·const&amp;·save_path·=·&quot;&quot;)·const; 
195 ···sha1_hash·<strong>hash</strong>·(file_index_t·index)·const;190 ···sha1_hash·<strong>hash</strong>·(file_index_t·index)·const;
 191 ···string_view·<strong>file_name</strong>·(file_index_t·index)·const;
 192 ···bool·<strong>pad_file_at</strong>·(file_index_t·index)·const;
 193 ···std::string·<strong>file_path</strong>·(file_index_t·index,·std::string·const&amp;·save_path·=·&quot;&quot;)·const;
 194 ···std::time_t·<strong>mtime</strong>·(file_index_t·index)·const;
 195 ···sha256_hash·<strong>root</strong>·(file_index_t·index)·const;
196 ···std::string·<strong>symlink</strong>·(file_index_t·index)·const;196 ···std::string·<strong>symlink</strong>·(file_index_t·index)·const;
197 ···int·<strong>file_num_blocks</strong>·(file_index_t·index)·const; 
198 ···int·<strong>file_num_pieces</strong>·(file_index_t·index)·const;197 ···int·<strong>file_num_pieces</strong>·(file_index_t·index)·const;
199 ···index_range&lt;piece_index_t::diff_type&gt;·<strong>file_piece_range</strong>·(file_index_t)·const;198 ···index_range&lt;piece_index_t::diff_type&gt;·<strong>file_piece_range</strong>·(file_index_t)·const;
 199 ···int·<strong>file_num_blocks</strong>·(file_index_t·index)·const;
200 ···int·<strong>file_first_piece_node</strong>·(file_index_t·index)·const;200 ···int·<strong>file_first_piece_node</strong>·(file_index_t·index)·const;
Max diff block lines reached; 25236/36660 bytes (68.84%) of diff not shown.
17.1 KB
html2text {}
    
Offset 3, 51 lines modifiedOffset 3, 51 lines modified
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·storage_params5 ····*·storage_params
6 ····*·file_slice6 ····*·file_slice
7 ····*·file_storage7 ····*·file_storage
8 ··········o·is_valid()8 ··········o·is_valid()
9 ··········o·reserve()9 ··········o·reserve()
10 ··········o·add_file_borrow()_add_file()10 ··········o·add_file()_add_file_borrow()
11 ··········o·rename_file()11 ··········o·rename_file()
12 ··········o·map_block()12 ··········o·map_block()
13 ··········o·map_file()13 ··········o·map_file()
14 ··········o·num_files()14 ··········o·num_files()
15 ··········o·end_file()15 ··········o·end_file()
16 ··········o·file_range()16 ··········o·file_range()
17 ··········o·total_size()17 ··········o·total_size()
18 ··········o·set_num_pieces()_num_pieces()18 ··········o·num_pieces()_set_num_pieces()
19 ··········o·end_piece()19 ··········o·end_piece()
20 ··········o·last_piece()20 ··········o·last_piece()
21 ··········o·piece_range()21 ··········o·piece_range()
22 ··········o·set_piece_length()_piece_length()22 ··········o·piece_length()_set_piece_length()
23 ··········o·piece_size()23 ··········o·piece_size()
24 ··········o·piece_size2()24 ··········o·piece_size2()
25 ··········o·blocks_in_piece2()25 ··········o·blocks_in_piece2()
26 ··········o·blocks_per_piece()26 ··········o·blocks_per_piece()
27 ··········o·name()_set_name()27 ··········o·name()_set_name()
28 ··········o·swap()28 ··········o·swap()
29 ··········o·canonicalize()29 ··········o·canonicalize()
30 ··········o·file_offset()_file_path()_file_name()_root()_root_ptr()_hash() 
31 ············symlink()_mtime()_file_size()_pad_file_at() 
32 ··········o·file_num_pieces()_file_num_blocks()_file_piece_range()30 ··········o·symlink()_file_offset()_mtime()_file_path()_root()_hash()_root_ptr
 31 ············()_pad_file_at()_file_size()_file_name()
 32 ··········o·file_num_pieces()_file_piece_range()_file_num_blocks()
33 ··········o·file_first_piece_node()_file_first_block_node()33 ··········o·file_first_piece_node()_file_first_block_node()
34 ··········o·file_path_hash()34 ··········o·file_path_hash()
35 ··········o·all_path_hashes()35 ··········o·all_path_hashes()
36 ··········o·file_flags()36 ··········o·file_flags()
37 ··········o·file_absolute_path()37 ··········o·file_absolute_path()
38 ··········o·file_index_at_offset()_file_index_at_piece()38 ··········o·file_index_at_piece()_file_index_at_offset()
39 ··········o·file_index_for_root()39 ··········o·file_index_for_root()
40 ··········o·piece_index_at_file()40 ··········o·piece_index_at_file()
41 ··········o·sanitize_symlinks()41 ··········o·sanitize_symlinks()
42 ··········o·v2()42 ··········o·v2()
43 ····*·mmap_disk_io_constructor() 
44 ····*·default_disk_io_constructor()43 ····*·default_disk_io_constructor()
45 ····*·disabled_disk_io_constructor() 
46 ····*·posix_disk_io_constructor()44 ····*·posix_disk_io_constructor()
 45 ····*·disabled_disk_io_constructor()
 46 ····*·mmap_disk_io_constructor()
47 ····*·enum_storage_mode_t47 ····*·enum_storage_mode_t
48 ····*·enum_status_t48 ····*·enum_status_t
49 ····*·enum_move_flags_t49 ····*·enum_move_flags_t
50 [report_issue]50 [report_issue]
51 ******·storage_params·******51 ******·storage_params·******
52 Declared·in·"libtorrent/storage_defs.hpp"52 Declared·in·"libtorrent/storage_defs.hpp"
53 a·parameter·pack·used·to·construct·the·storage·for·a·torrent,·used·in·disk_53 a·parameter·pack·used·to·construct·the·storage·for·a·torrent,·used·in·disk_
Offset 95, 29 lines modifiedOffset 95, 29 lines modified
95 Declared·in·"libtorrent/file_storage.hpp"95 Declared·in·"libtorrent/file_storage.hpp"
96 The·file_storage·class·represents·a·file·list·and·the·piece·size.·Everything96 The·file_storage·class·represents·a·file·list·and·the·piece·size.·Everything
97 necessary·to·interpret·a·regular·bittorrent·storage·file·structure.97 necessary·to·interpret·a·regular·bittorrent·storage·file·structure.
98 class·file_storage98 class·file_storage
99 {99 {
100 ···bool·is_valid·()·const;100 ···bool·is_valid·()·const;
101 ···void·reserve·(int·num_files);101 ···void·reserve·(int·num_files);
 102 ···void·add_file_borrow·(string_view·filename
 103 ······,·std::string·const&·path,·std::int64_t·file_size
 104 ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr
 105 ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view()
 106 ······,·char·const*·root_hash·=·nullptr);
102 ···void·add_file_borrow·(error_code&·ec,·string_view·filename107 ···void·add_file_borrow·(error_code&·ec,·string_view·filename
103 ······,·std::string·const&·path,·std::int64_t·file_size108 ······,·std::string·const&·path,·std::int64_t·file_size
104 ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr109 ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr
105 ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view()110 ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view()
106 ······,·char·const*·root_hash·=·nullptr);111 ······,·char·const*·root_hash·=·nullptr);
107 ···void·add_file·(error_code&·ec,·std::string·const&·path,·std::int64_t·file_112 ···void·add_file·(error_code&·ec,·std::string·const&·path,·std::int64_t·file_
108 size113 size
109 ······,·file_flags_t·file_flags·=·{}114 ······,·file_flags_t·file_flags·=·{}
110 ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view()115 ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view()
111 ······,·char·const*·root_hash·=·nullptr);116 ······,·char·const*·root_hash·=·nullptr);
112 ···void·add_file_borrow·(string_view·filename 
113 ······,·std::string·const&·path,·std::int64_t·file_size 
114 ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr 
115 ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() 
116 ······,·char·const*·root_hash·=·nullptr); 
117 ···void·add_file·(std::string·const&·path,·std::int64_t·file_size117 ···void·add_file·(std::string·const&·path,·std::int64_t·file_size
118 ······,·file_flags_t·file_flags·=·{}118 ······,·file_flags_t·file_flags·=·{}
119 ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view()119 ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view()
120 ······,·char·const*·root_hash·=·nullptr);120 ······,·char·const*·root_hash·=·nullptr);
121 ···void·rename_file·(file_index_t·index,·std::string·const&·new_filename);121 ···void·rename_file·(file_index_t·index,·std::string·const&·new_filename);
122 ···std::vector<file_slice>·map_block·(piece_index_t·piece,·std::int64_t·offset122 ···std::vector<file_slice>·map_block·(piece_index_t·piece,·std::int64_t·offset
123 ······,·std::int64_t·size)·const;123 ······,·std::int64_t·size)·const;
Offset 128, 47 lines modifiedOffset 128, 47 lines modified
128 ···index_range<file_index_t>·file_range·()·const·noexcept;128 ···index_range<file_index_t>·file_range·()·const·noexcept;
129 ···std::int64_t·total_size·()·const;129 ···std::int64_t·total_size·()·const;
130 ···int·num_pieces·()·const;130 ···int·num_pieces·()·const;
131 ···void·set_num_pieces·(int·n);131 ···void·set_num_pieces·(int·n);
132 ···piece_index_t·end_piece·()·const;132 ···piece_index_t·end_piece·()·const;
133 ···piece_index_t·last_piece·()·const;133 ···piece_index_t·last_piece·()·const;
134 ···index_range<piece_index_t>·piece_range·()·const·noexcept;134 ···index_range<piece_index_t>·piece_range·()·const·noexcept;
135 ···int·piece_length·()·const; 
136 ···void·set_piece_length·(int·l);135 ···void·set_piece_length·(int·l);
 136 ···int·piece_length·()·const;
137 ···int·piece_size·(piece_index_t·index)·const;137 ···int·piece_size·(piece_index_t·index)·const;
138 ···int·piece_size2·(piece_index_t·index)·const;138 ···int·piece_size2·(piece_index_t·index)·const;
139 ···int·blocks_in_piece2·(piece_index_t·index)·const;139 ···int·blocks_in_piece2·(piece_index_t·index)·const;
140 ···int·blocks_per_piece·()·const;140 ···int·blocks_per_piece·()·const;
141 ···void·set_name·(std::string·const&·n); 
142 ···std::string·const&·name·()·const;141 ···std::string·const&·name·()·const;
 142 ···void·set_name·(std::string·const&·n);
143 ···void·swap·(file_storage&·ti)·noexcept;143 ···void·swap·(file_storage&·ti)·noexcept;
144 ···void·canonicalize·();144 ···void·canonicalize·();
145 ···bool·pad_file_at·(file_index_t·index)·const; 
146 ···string_view·file_name·(file_index_t·index)·const; 
147 ···sha256_hash·root·(file_index_t·index)·const; 
148 ···char·const*·root_ptr·(file_index_t·const·index)·const;145 ···char·const*·root_ptr·(file_index_t·const·index)·const;
149 ···std::int64_t·file_offset·(file_index_t·index)·const; 
150 ···std::int64_t·file_size·(file_index_t·index)·const;146 ···std::int64_t·file_size·(file_index_t·index)·const;
151 ···std::time_t·mtime·(file_index_t·index)·const;147 ···std::int64_t·file_offset·(file_index_t·index)·const;
 148 ···sha1_hash·hash·(file_index_t·index)·const;
 149 ···string_view·file_name·(file_index_t·index)·const;
 150 ···bool·pad_file_at·(file_index_t·index)·const;
152 ···std::string·file_path·(file_index_t·index,·std::string·const&·save_path·=151 ···std::string·file_path·(file_index_t·index,·std::string·const&·save_path·=
153 "")·const;152 "")·const;
 153 ···std::time_t·mtime·(file_index_t·index)·const;
154 ···sha1_hash·hash·(file_index_t·index)·const;154 ···sha256_hash·root·(file_index_t·index)·const;
155 ···std::string·symlink·(file_index_t·index)·const;155 ···std::string·symlink·(file_index_t·index)·const;
156 ···int·file_num_blocks·(file_index_t·index)·const; 
157 ···int·file_num_pieces·(file_index_t·index)·const;156 ···int·file_num_pieces·(file_index_t·index)·const;
Max diff block lines reached; 11629/17454 bytes (66.63%) of diff not shown.
98.7 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Handle.html
    
Offset 41, 46 lines modifiedOffset 41, 46 lines modified
41 <li><a·class="reference·internal"·href="#torrent-handle"·id="toc-entry-5">torrent_handle</a><ul>41 <li><a·class="reference·internal"·href="#torrent-handle"·id="toc-entry-5">torrent_handle</a><ul>
42 <li><a·class="reference·internal"·href="#torrent-handle-1"·id="toc-entry-6">torrent_handle()</a></li>42 <li><a·class="reference·internal"·href="#torrent-handle-1"·id="toc-entry-6">torrent_handle()</a></li>
43 <li><a·class="reference·internal"·href="#add-piece"·id="toc-entry-7">add_piece()</a></li>43 <li><a·class="reference·internal"·href="#add-piece"·id="toc-entry-7">add_piece()</a></li>
44 <li><a·class="reference·internal"·href="#read-piece"·id="toc-entry-8">read_piece()</a></li>44 <li><a·class="reference·internal"·href="#read-piece"·id="toc-entry-8">read_piece()</a></li>
45 <li><a·class="reference·internal"·href="#have-piece"·id="toc-entry-9">have_piece()</a></li>45 <li><a·class="reference·internal"·href="#have-piece"·id="toc-entry-9">have_piece()</a></li>
46 <li><a·class="reference·internal"·href="#get-peer-info-post-peer-info"·id="toc-entry-10">get_peer_info()·post_peer_info()</a></li>46 <li><a·class="reference·internal"·href="#get-peer-info-post-peer-info"·id="toc-entry-10">get_peer_info()·post_peer_info()</a></li>
47 <li><a·class="reference·internal"·href="#post-status-status"·id="toc-entry-11">post_status()·status()</a></li>47 <li><a·class="reference·internal"·href="#post-status-status"·id="toc-entry-11">post_status()·status()</a></li>
48 <li><a·class="reference·internal"·href="#post-download-queue-get-download-queue"·id="toc-entry-12">post_download_queue()·get_download_queue()</a></li>48 <li><a·class="reference·internal"·href="#get-download-queue-post-download-queue"·id="toc-entry-12">get_download_queue()·post_download_queue()</a></li>
49 <li><a·class="reference·internal"·href="#reset-piece-deadline-set-piece-deadline-clear-piece-deadlines"·id="toc-entry-13">reset_piece_deadline()·set_piece_deadline()·clear_piece_deadlines()</a></li>49 <li><a·class="reference·internal"·href="#reset-piece-deadline-clear-piece-deadlines-set-piece-deadline"·id="toc-entry-13">reset_piece_deadline()·clear_piece_deadlines()·set_piece_deadline()</a></li>
50 <li><a·class="reference·internal"·href="#file-progress-post-file-progress"·id="toc-entry-14">file_progress()·post_file_progress()</a></li>50 <li><a·class="reference·internal"·href="#post-file-progress-file-progress"·id="toc-entry-14">post_file_progress()·file_progress()</a></li>
51 <li><a·class="reference·internal"·href="#file-status"·id="toc-entry-15">file_status()</a></li>51 <li><a·class="reference·internal"·href="#file-status"·id="toc-entry-15">file_status()</a></li>
52 <li><a·class="reference·internal"·href="#clear-error"·id="toc-entry-16">clear_error()</a></li>52 <li><a·class="reference·internal"·href="#clear-error"·id="toc-entry-16">clear_error()</a></li>
53 <li><a·class="reference·internal"·href="#add-tracker-replace-trackers-trackers-post-trackers"·id="toc-entry-17">add_tracker()·replace_trackers()·trackers()·post_trackers()</a></li>53 <li><a·class="reference·internal"·href="#post-trackers-replace-trackers-add-tracker-trackers"·id="toc-entry-17">post_trackers()·replace_trackers()·add_tracker()·trackers()</a></li>
54 <li><a·class="reference·internal"·href="#remove-url-seed-url-seeds-add-url-seed"·id="toc-entry-18">remove_url_seed()·url_seeds()·add_url_seed()</a></li>54 <li><a·class="reference·internal"·href="#add-url-seed-url-seeds-remove-url-seed"·id="toc-entry-18">add_url_seed()·url_seeds()·remove_url_seed()</a></li>
55 <li><a·class="reference·internal"·href="#remove-http-seed-add-http-seed-http-seeds"·id="toc-entry-19">remove_http_seed()·add_http_seed()·http_seeds()</a></li>55 <li><a·class="reference·internal"·href="#remove-http-seed-http-seeds-add-http-seed"·id="toc-entry-19">remove_http_seed()·http_seeds()·add_http_seed()</a></li>
56 <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-20">add_extension()</a></li>56 <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-20">add_extension()</a></li>
57 <li><a·class="reference·internal"·href="#set-metadata"·id="toc-entry-21">set_metadata()</a></li>57 <li><a·class="reference·internal"·href="#set-metadata"·id="toc-entry-21">set_metadata()</a></li>
58 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-22">is_valid()</a></li>58 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-22">is_valid()</a></li>
59 <li><a·class="reference·internal"·href="#resume-pause"·id="toc-entry-23">resume()·pause()</a></li>59 <li><a·class="reference·internal"·href="#resume-pause"·id="toc-entry-23">resume()·pause()</a></li>
60 <li><a·class="reference·internal"·href="#flags-unset-flags-set-flags"·id="toc-entry-24">flags()·unset_flags()·set_flags()</a></li>60 <li><a·class="reference·internal"·href="#flags-unset-flags-set-flags"·id="toc-entry-24">flags()·unset_flags()·set_flags()</a></li>
61 <li><a·class="reference·internal"·href="#flush-cache"·id="toc-entry-25">flush_cache()</a></li>61 <li><a·class="reference·internal"·href="#flush-cache"·id="toc-entry-25">flush_cache()</a></li>
62 <li><a·class="reference·internal"·href="#force-recheck"·id="toc-entry-26">force_recheck()</a></li>62 <li><a·class="reference·internal"·href="#force-recheck"·id="toc-entry-26">force_recheck()</a></li>
63 <li><a·class="reference·internal"·href="#save-resume-data"·id="toc-entry-27">save_resume_data()</a></li>63 <li><a·class="reference·internal"·href="#save-resume-data"·id="toc-entry-27">save_resume_data()</a></li>
64 <li><a·class="reference·internal"·href="#need-save-resume-data"·id="toc-entry-28">need_save_resume_data()</a></li>64 <li><a·class="reference·internal"·href="#need-save-resume-data"·id="toc-entry-28">need_save_resume_data()</a></li>
65 <li><a·class="reference·internal"·href="#queue-position-top-queue-position-queue-position-bottom-queue-position-up-queue-position-down"·id="toc-entry-29">queue_position_top()·queue_position()·queue_position_bottom()·queue_position_up()·queue_position_down()</a></li>65 <li><a·class="reference·internal"·href="#queue-position-top-queue-position-up-queue-position-down-queue-position-queue-position-bottom"·id="toc-entry-29">queue_position_top()·queue_position_up()·queue_position_down()·queue_position()·queue_position_bottom()</a></li>
66 <li><a·class="reference·internal"·href="#queue-position-set"·id="toc-entry-30">queue_position_set()</a></li>66 <li><a·class="reference·internal"·href="#queue-position-set"·id="toc-entry-30">queue_position_set()</a></li>
67 <li><a·class="reference·internal"·href="#set-ssl-certificate-set-ssl-certificate-buffer"·id="toc-entry-31">set_ssl_certificate()·set_ssl_certificate_buffer()</a></li>67 <li><a·class="reference·internal"·href="#set-ssl-certificate-buffer-set-ssl-certificate"·id="toc-entry-31">set_ssl_certificate_buffer()·set_ssl_certificate()</a></li>
68 <li><a·class="reference·internal"·href="#torrent-file-torrent-file-with-hashes"·id="toc-entry-32">torrent_file()·torrent_file_with_hashes()</a></li>68 <li><a·class="reference·internal"·href="#torrent-file-with-hashes-torrent-file"·id="toc-entry-32">torrent_file_with_hashes()·torrent_file()</a></li>
69 <li><a·class="reference·internal"·href="#piece-layers"·id="toc-entry-33">piece_layers()</a></li>69 <li><a·class="reference·internal"·href="#piece-layers"·id="toc-entry-33">piece_layers()</a></li>
70 <li><a·class="reference·internal"·href="#post-piece-availability-piece-availability"·id="toc-entry-34">post_piece_availability()·piece_availability()</a></li>70 <li><a·class="reference·internal"·href="#post-piece-availability-piece-availability"·id="toc-entry-34">post_piece_availability()·piece_availability()</a></li>
71 <li><a·class="reference·internal"·href="#piece-priority-prioritize-pieces-get-piece-priorities"·id="toc-entry-35">piece_priority()·prioritize_pieces()·get_piece_priorities()</a></li>71 <li><a·class="reference·internal"·href="#prioritize-pieces-get-piece-priorities-piece-priority"·id="toc-entry-35">prioritize_pieces()·get_piece_priorities()·piece_priority()</a></li>
72 <li><a·class="reference·internal"·href="#file-priority-prioritize-files-get-file-priorities"·id="toc-entry-36">file_priority()·prioritize_files()·get_file_priorities()</a></li>72 <li><a·class="reference·internal"·href="#file-priority-get-file-priorities-prioritize-files"·id="toc-entry-36">file_priority()·get_file_priorities()·prioritize_files()</a></li>
73 <li><a·class="reference·internal"·href="#force-reannounce-force-lsd-announce-force-dht-announce"·id="toc-entry-37">force_reannounce()·force_lsd_announce()·force_dht_announce()</a></li>73 <li><a·class="reference·internal"·href="#force-lsd-announce-force-dht-announce-force-reannounce"·id="toc-entry-37">force_lsd_announce()·force_dht_announce()·force_reannounce()</a></li>
74 <li><a·class="reference·internal"·href="#scrape-tracker"·id="toc-entry-38">scrape_tracker()</a></li>74 <li><a·class="reference·internal"·href="#scrape-tracker"·id="toc-entry-38">scrape_tracker()</a></li>
75 <li><a·class="reference·internal"·href="#download-limit-upload-limit-set-download-limit-set-upload-limit"·id="toc-entry-39">download_limit()·upload_limit()·set_download_limit()·set_upload_limit()</a></li>75 <li><a·class="reference·internal"·href="#set-upload-limit-set-download-limit-upload-limit-download-limit"·id="toc-entry-39">set_upload_limit()·set_download_limit()·upload_limit()·download_limit()</a></li>
76 <li><a·class="reference·internal"·href="#connect-peer"·id="toc-entry-40">connect_peer()</a></li>76 <li><a·class="reference·internal"·href="#connect-peer"·id="toc-entry-40">connect_peer()</a></li>
77 <li><a·class="reference·internal"·href="#clear-peers"·id="toc-entry-41">clear_peers()</a></li>77 <li><a·class="reference·internal"·href="#clear-peers"·id="toc-entry-41">clear_peers()</a></li>
78 <li><a·class="reference·internal"·href="#max-uploads-set-max-uploads"·id="toc-entry-42">max_uploads()·set_max_uploads()</a></li>78 <li><a·class="reference·internal"·href="#max-uploads-set-max-uploads"·id="toc-entry-42">max_uploads()·set_max_uploads()</a></li>
79 <li><a·class="reference·internal"·href="#max-connections-set-max-connections"·id="toc-entry-43">max_connections()·set_max_connections()</a></li>79 <li><a·class="reference·internal"·href="#set-max-connections-max-connections"·id="toc-entry-43">set_max_connections()·max_connections()</a></li>
80 <li><a·class="reference·internal"·href="#move-storage"·id="toc-entry-44">move_storage()</a></li>80 <li><a·class="reference·internal"·href="#move-storage"·id="toc-entry-44">move_storage()</a></li>
81 <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-45">rename_file()</a></li>81 <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-45">rename_file()</a></li>
82 <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-46">info_hash()·info_hashes()</a></li>82 <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-46">info_hash()·info_hashes()</a></li>
83 <li><a·class="reference·internal"·href="#operator-operator-operator"·id="toc-entry-47">operator&lt;()·operator!=()·operator==()</a></li>83 <li><a·class="reference·internal"·href="#operator-operator-operator"·id="toc-entry-47">operator&lt;()·operator!=()·operator==()</a></li>
84 <li><a·class="reference·internal"·href="#id"·id="toc-entry-48">id()</a></li>84 <li><a·class="reference·internal"·href="#id"·id="toc-entry-48">id()</a></li>
85 <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-49">native_handle()</a></li>85 <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-49">native_handle()</a></li>
86 <li><a·class="reference·internal"·href="#userdata"·id="toc-entry-50">userdata()</a></li>86 <li><a·class="reference·internal"·href="#userdata"·id="toc-entry-50">userdata()</a></li>
Offset 263, 109 lines modifiedOffset 263, 109 lines modified
263 handle·will·remain·valid·between·two·calls.</p>263 handle·will·remain·valid·between·two·calls.</p>
264 </div>264 </div>
265 <pre·class="literal-block">265 <pre·class="literal-block">
266 struct·torrent_handle266 struct·torrent_handle
267 {267 {
268 ···friend·std::size_t·<strong>hash_value</strong>·(torrent_handle·const&amp;·th);268 ···friend·std::size_t·<strong>hash_value</strong>·(torrent_handle·const&amp;·th);
269 ···<strong>torrent_handle</strong>·()·noexcept·=·default;269 ···<strong>torrent_handle</strong>·()·noexcept·=·default;
270 ···void·<strong>add_piece</strong>·(piece_index_t·piece,·char·const*·data,·add_piece_flags_t·flags·=·{})·const; 
271 ···void·<strong>add_piece</strong>·(piece_index_t·piece,·std::vector&lt;char&gt;·data,·add_piece_flags_t·flags·=·{})·const;270 ···void·<strong>add_piece</strong>·(piece_index_t·piece,·std::vector&lt;char&gt;·data,·add_piece_flags_t·flags·=·{})·const;
 271 ···void·<strong>add_piece</strong>·(piece_index_t·piece,·char·const*·data,·add_piece_flags_t·flags·=·{})·const;
272 ···void·<strong>read_piece</strong>·(piece_index_t·piece)·const;272 ···void·<strong>read_piece</strong>·(piece_index_t·piece)·const;
273 ···bool·<strong>have_piece</strong>·(piece_index_t·piece)·const;273 ···bool·<strong>have_piece</strong>·(piece_index_t·piece)·const;
274 ···void·<strong>post_peer_info</strong>·()·const; 
275 ···void·<strong>get_peer_info</strong>·(std::vector&lt;peer_info&gt;&amp;·v)·const;274 ···void·<strong>get_peer_info</strong>·(std::vector&lt;peer_info&gt;&amp;·v)·const;
276 ···torrent_status·<strong>status</strong>·(status_flags_t·flags·=·status_flags_t::all())·const;275 ···void·<strong>post_peer_info</strong>·()·const;
277 ···void·<strong>post_status</strong>·(status_flags_t·flags·=·status_flags_t::all())·const;276 ···void·<strong>post_status</strong>·(status_flags_t·flags·=·status_flags_t::all())·const;
 277 ···torrent_status·<strong>status</strong>·(status_flags_t·flags·=·status_flags_t::all())·const;
278 ···void·<strong>get_download_queue</strong>·(std::vector&lt;partial_piece_info&gt;&amp;·queue)·const;278 ···void·<strong>get_download_queue</strong>·(std::vector&lt;partial_piece_info&gt;&amp;·queue)·const;
279 ···std::vector&lt;partial_piece_info&gt;·<strong>get_download_queue</strong>·()·const; 
280 ···void·<strong>post_download_queue</strong>·()·const;279 ···void·<strong>post_download_queue</strong>·()·const;
281 ···void·<strong>clear_piece_deadlines</strong>·()·const;280 ···std::vector&lt;partial_piece_info&gt;·<strong>get_download_queue</strong>·()·const;
282 ···void·<strong>set_piece_deadline</strong>·(piece_index_t·index,·int·deadline,·deadline_flags_t·flags·=·{})·const;281 ···void·<strong>set_piece_deadline</strong>·(piece_index_t·index,·int·deadline,·deadline_flags_t·flags·=·{})·const;
283 ···void·<strong>reset_piece_deadline</strong>·(piece_index_t·index)·const;282 ···void·<strong>reset_piece_deadline</strong>·(piece_index_t·index)·const;
 283 ···void·<strong>clear_piece_deadlines</strong>·()·const;
 284 ···void·<strong>file_progress</strong>·(std::vector&lt;std::int64_t&gt;&amp;·progress,·file_progress_flags_t·flags·=·{})·const;
284 ···void·<strong>post_file_progress</strong>·(file_progress_flags_t·flags)·const;285 ···void·<strong>post_file_progress</strong>·(file_progress_flags_t·flags)·const;
285 ···std::vector&lt;std::int64_t&gt;·<strong>file_progress</strong>·(file_progress_flags_t·flags·=·{})·const;286 ···std::vector&lt;std::int64_t&gt;·<strong>file_progress</strong>·(file_progress_flags_t·flags·=·{})·const;
286 ···void·<strong>file_progress</strong>·(std::vector&lt;std::int64_t&gt;&amp;·progress,·file_progress_flags_t·flags·=·{})·const; 
287 ···std::vector&lt;open_file_state&gt;·<strong>file_status</strong>·()·const;287 ···std::vector&lt;open_file_state&gt;·<strong>file_status</strong>·()·const;
288 ···void·<strong>clear_error</strong>·()·const;288 ···void·<strong>clear_error</strong>·()·const;
289 ···void·<strong>add_tracker</strong>·(announce_entry·const&amp;)·const;289 ···void·<strong>add_tracker</strong>·(announce_entry·const&amp;)·const;
 290 ···std::vector&lt;announce_entry&gt;·<strong>trackers</strong>·()·const;
290 ···void·<strong>replace_trackers</strong>·(std::vector&lt;announce_entry&gt;·const&amp;)·const;291 ···void·<strong>replace_trackers</strong>·(std::vector&lt;announce_entry&gt;·const&amp;)·const;
291 ···void·<strong>post_trackers</strong>·()·const;292 ···void·<strong>post_trackers</strong>·()·const;
292 ···std::vector&lt;announce_entry&gt;·<strong>trackers</strong>·()·const; 
293 ···std::set&lt;std::string&gt;·<strong>url_seeds</strong>·()·const; 
294 ···void·<strong>add_url_seed</strong>·(std::string·const&amp;·url)·const;293 ···void·<strong>add_url_seed</strong>·(std::string·const&amp;·url)·const;
 294 ···std::set&lt;std::string&gt;·<strong>url_seeds</strong>·()·const;
295 ···void·<strong>remove_url_seed</strong>·(std::string·const&amp;·url)·const;295 ···void·<strong>remove_url_seed</strong>·(std::string·const&amp;·url)·const;
296 ···void·<strong>add_http_seed</strong>·(std::string·const&amp;·url)·const; 
297 ···void·<strong>remove_http_seed</strong>·(std::string·const&amp;·url)·const; 
298 ···std::set&lt;std::string&gt;·<strong>http_seeds</strong>·()·const;296 ···std::set&lt;std::string&gt;·<strong>http_seeds</strong>·()·const;
 297 ···void·<strong>remove_http_seed</strong>·(std::string·const&amp;·url)·const;
 298 ···void·<strong>add_http_seed</strong>·(std::string·const&amp;·url)·const;
299 ···void·<strong>add_extension</strong>·(299 ···void·<strong>add_extension</strong>·(
300 ······std::function&lt;std::shared_ptr&lt;torrent_plugin&gt;(torrent_handle·const&amp;,·client_data_t)&gt;·const&amp;·ext300 ······std::function&lt;std::shared_ptr&lt;torrent_plugin&gt;(torrent_handle·const&amp;,·client_data_t)&gt;·const&amp;·ext
301 ······,·client_data_t·userdata·=·client_data_t{});301 ······,·client_data_t·userdata·=·client_data_t{});
302 ···bool·<strong>set_metadata</strong>·(span&lt;char·const&gt;·metadata)·const;302 ···bool·<strong>set_metadata</strong>·(span&lt;char·const&gt;·metadata)·const;
303 ···bool·<strong>is_valid</strong>·()·const;303 ···bool·<strong>is_valid</strong>·()·const;
304 ···void·<strong>resume</strong>·()·const; 
305 ···void·<strong>pause</strong>·(pause_flags_t·flags·=·{})·const;304 ···void·<strong>pause</strong>·(pause_flags_t·flags·=·{})·const;
 305 ···void·<strong>resume</strong>·()·const;
306 ···void·<strong>unset_flags</strong>·(torrent_flags_t·flags)·const;306 ···void·<strong>unset_flags</strong>·(torrent_flags_t·flags)·const;
307 ···torrent_flags_t·<strong>flags</strong>·()·const; 
308 ···void·<strong>set_flags</strong>·(torrent_flags_t·flags)·const;307 ···void·<strong>set_flags</strong>·(torrent_flags_t·flags)·const;
309 ···void·<strong>set_flags</strong>·(torrent_flags_t·flags,·torrent_flags_t·mask)·const;308 ···void·<strong>set_flags</strong>·(torrent_flags_t·flags,·torrent_flags_t·mask)·const;
 309 ···torrent_flags_t·<strong>flags</strong>·()·const;
310 ···void·<strong>flush_cache</strong>·()·const;310 ···void·<strong>flush_cache</strong>·()·const;
311 ···void·<strong>force_recheck</strong>·()·const;311 ···void·<strong>force_recheck</strong>·()·const;
312 ···void·<strong>save_resume_data</strong>·(resume_data_flags_t·flags·=·{})·const;312 ···void·<strong>save_resume_data</strong>·(resume_data_flags_t·flags·=·{})·const;
313 ···bool·<strong>need_save_resume_data</strong>·(resume_data_flags_t·flags)·const; 
314 ···bool·<strong>need_save_resume_data</strong>·()·const;313 ···bool·<strong>need_save_resume_data</strong>·()·const;
315 ···void·<strong>queue_position_up</strong>·()·const;314 ···bool·<strong>need_save_resume_data</strong>·(resume_data_flags_t·flags)·const;
316 ···void·<strong>queue_position_down</strong>·()·const;315 ···void·<strong>queue_position_bottom</strong>·()·const;
317 ···queue_position_t·<strong>queue_position</strong>·()·const;316 ···queue_position_t·<strong>queue_position</strong>·()·const;
 317 ···void·<strong>queue_position_down</strong>·()·const;
318 ···void·<strong>queue_position_top</strong>·()·const;318 ···void·<strong>queue_position_top</strong>·()·const;
319 ···void·<strong>queue_position_bottom</strong>·()·const;319 ···void·<strong>queue_position_up</strong>·()·const;
320 ···void·<strong>queue_position_set</strong>·(queue_position_t·p)·const;320 ···void·<strong>queue_position_set</strong>·(queue_position_t·p)·const;
321 ···void·<strong>set_ssl_certificate</strong>·(std::string·const&amp;·certificate321 ···void·<strong>set_ssl_certificate</strong>·(std::string·const&amp;·certificate
322 ······,·std::string·const&amp;·private_key322 ······,·std::string·const&amp;·private_key
323 ······,·std::string·const&amp;·dh_params323 ······,·std::string·const&amp;·dh_params
324 ······,·std::string·const&amp;·passphrase·=·&quot;&quot;);324 ······,·std::string·const&amp;·passphrase·=·&quot;&quot;);
325 ···void·<strong>set_ssl_certificate_buffer</strong>·(std::string·const&amp;·certificate325 ···void·<strong>set_ssl_certificate_buffer</strong>·(std::string·const&amp;·certificate
326 ······,·std::string·const&amp;·private_key326 ······,·std::string·const&amp;·private_key
327 ······,·std::string·const&amp;·dh_params);327 ······,·std::string·const&amp;·dh_params);
328 ···std::shared_ptr&lt;const·torrent_info&gt;·<strong>torrent_file</strong>·()·const;328 ···std::shared_ptr&lt;const·torrent_info&gt;·<strong>torrent_file</strong>·()·const;
329 ···std::shared_ptr&lt;torrent_info&gt;·<strong>torrent_file_with_hashes</strong>·()·const;329 ···std::shared_ptr&lt;torrent_info&gt;·<strong>torrent_file_with_hashes</strong>·()·const;
330 ···std::vector&lt;std::vector&lt;sha256_hash&gt;&gt;·<strong>piece_layers</strong>·()·const;330 ···std::vector&lt;std::vector&lt;sha256_hash&gt;&gt;·<strong>piece_layers</strong>·()·const;
331 ···void·<strong>post_piece_availability</strong>·()·const; 
Max diff block lines reached; 52478/66884 bytes (78.46%) of diff not shown.
33.3 KB
html2text {}
    
Offset 9, 48 lines modifiedOffset 9, 48 lines modified
9 ····*·torrent_handle9 ····*·torrent_handle
10 ··········o·torrent_handle()10 ··········o·torrent_handle()
11 ··········o·add_piece()11 ··········o·add_piece()
12 ··········o·read_piece()12 ··········o·read_piece()
13 ··········o·have_piece()13 ··········o·have_piece()
14 ··········o·get_peer_info()_post_peer_info()14 ··········o·get_peer_info()_post_peer_info()
15 ··········o·post_status()_status()15 ··········o·post_status()_status()
16 ··········o·post_download_queue()_get_download_queue() 
17 ··········o·reset_piece_deadline()_set_piece_deadline()_clear_piece_deadlines() 
18 ··········o·file_progress()_post_file_progress()16 ··········o·get_download_queue()_post_download_queue()
 17 ··········o·reset_piece_deadline()_clear_piece_deadlines()_set_piece_deadline()
 18 ··········o·post_file_progress()_file_progress()
19 ··········o·file_status()19 ··········o·file_status()
20 ··········o·clear_error()20 ··········o·clear_error()
21 ··········o·add_tracker()_replace_trackers()_trackers()_post_trackers()21 ··········o·post_trackers()_replace_trackers()_add_tracker()_trackers()
22 ··········o·remove_url_seed()_url_seeds()_add_url_seed()22 ··········o·add_url_seed()_url_seeds()_remove_url_seed()
23 ··········o·remove_http_seed()_add_http_seed()_http_seeds()23 ··········o·remove_http_seed()_http_seeds()_add_http_seed()
24 ··········o·add_extension()24 ··········o·add_extension()
25 ··········o·set_metadata()25 ··········o·set_metadata()
26 ··········o·is_valid()26 ··········o·is_valid()
27 ··········o·resume()_pause()27 ··········o·resume()_pause()
28 ··········o·flags()_unset_flags()_set_flags()28 ··········o·flags()_unset_flags()_set_flags()
29 ··········o·flush_cache()29 ··········o·flush_cache()
30 ··········o·force_recheck()30 ··········o·force_recheck()
31 ··········o·save_resume_data()31 ··········o·save_resume_data()
32 ··········o·need_save_resume_data()32 ··········o·need_save_resume_data()
33 ··········o·queue_position_top()_queue_position()_queue_position_bottom()33 ··········o·queue_position_top()_queue_position_up()_queue_position_down()
34 ············queue_position_up()_queue_position_down()34 ············queue_position()_queue_position_bottom()
35 ··········o·queue_position_set()35 ··········o·queue_position_set()
36 ··········o·set_ssl_certificate()_set_ssl_certificate_buffer()36 ··········o·set_ssl_certificate_buffer()_set_ssl_certificate()
37 ··········o·torrent_file()_torrent_file_with_hashes()37 ··········o·torrent_file_with_hashes()_torrent_file()
38 ··········o·piece_layers()38 ··········o·piece_layers()
39 ··········o·post_piece_availability()_piece_availability()39 ··········o·post_piece_availability()_piece_availability()
40 ··········o·piece_priority()_prioritize_pieces()_get_piece_priorities()40 ··········o·prioritize_pieces()_get_piece_priorities()_piece_priority()
41 ··········o·file_priority()_prioritize_files()_get_file_priorities() 
42 ··········o·force_reannounce()_force_lsd_announce()_force_dht_announce()41 ··········o·file_priority()_get_file_priorities()_prioritize_files()
 42 ··········o·force_lsd_announce()_force_dht_announce()_force_reannounce()
43 ··········o·scrape_tracker()43 ··········o·scrape_tracker()
44 ··········o·download_limit()_upload_limit()_set_download_limit()_set_upload_44 ··········o·set_upload_limit()_set_download_limit()_upload_limit()_download_
45 ············limit()45 ············limit()
46 ··········o·connect_peer()46 ··········o·connect_peer()
47 ··········o·clear_peers()47 ··········o·clear_peers()
48 ··········o·max_uploads()_set_max_uploads()48 ··········o·max_uploads()_set_max_uploads()
49 ··········o·max_connections()_set_max_connections()49 ··········o·set_max_connections()_max_connections()
50 ··········o·move_storage()50 ··········o·move_storage()
51 ··········o·rename_file()51 ··········o·rename_file()
52 ··········o·info_hash()_info_hashes()52 ··········o·info_hash()_info_hashes()
53 ··········o·operator<()_operator!=()_operator==()53 ··········o·operator<()_operator!=()_operator==()
54 ··········o·id()54 ··········o·id()
55 ··········o·native_handle()55 ··········o·native_handle()
56 ··········o·userdata()56 ··········o·userdata()
Offset 174, 119 lines modifiedOffset 174, 119 lines modified
174 the·handle·is·no·longer·referring·to·a·torrent.·There·is·one·exception·is_valid174 the·handle·is·no·longer·referring·to·a·torrent.·There·is·one·exception·is_valid
175 ()·will·never·throw.·Since·the·torrents·are·processed·by·a·background·thread,175 ()·will·never·throw.·Since·the·torrents·are·processed·by·a·background·thread,
176 there·is·no·guarantee·that·a·handle·will·remain·valid·between·two·calls.176 there·is·no·guarantee·that·a·handle·will·remain·valid·between·two·calls.
177 struct·torrent_handle177 struct·torrent_handle
178 {178 {
179 ···friend·std::size_t·hash_value·(torrent_handle·const&·th);179 ···friend·std::size_t·hash_value·(torrent_handle·const&·th);
180 ···torrent_handle·()·noexcept·=·default;180 ···torrent_handle·()·noexcept·=·default;
181 ···void·add_piece·(piece_index_t·piece,·char·const*·data,·add_piece_flags_ 
182 t·flags·=·{})·const; 
183 ···void·add_piece·(piece_index_t·piece,·std::vector<char>·data,·add_piece_181 ···void·add_piece·(piece_index_t·piece,·std::vector<char>·data,·add_piece_
184 flags_t·flags·=·{})·const;182 flags_t·flags·=·{})·const;
 183 ···void·add_piece·(piece_index_t·piece,·char·const*·data,·add_piece_flags_
 184 t·flags·=·{})·const;
185 ···void·read_piece·(piece_index_t·piece)·const;185 ···void·read_piece·(piece_index_t·piece)·const;
186 ···bool·have_piece·(piece_index_t·piece)·const;186 ···bool·have_piece·(piece_index_t·piece)·const;
187 ···void·post_peer_info·()·const; 
188 ···void·get_peer_info·(std::vector<peer_info>&·v)·const;187 ···void·get_peer_info·(std::vector<peer_info>&·v)·const;
189 ···torrent_status·status·(status_flags_t·flags·=·status_flags_t::all())·const;188 ···void·post_peer_info·()·const;
190 ···void·post_status·(status_flags_t·flags·=·status_flags_t::all())·const;189 ···void·post_status·(status_flags_t·flags·=·status_flags_t::all())·const;
 190 ···torrent_status·status·(status_flags_t·flags·=·status_flags_t::all())·const;
191 ···void·get_download_queue·(std::vector<partial_piece_info>&·queue)·const;191 ···void·get_download_queue·(std::vector<partial_piece_info>&·queue)·const;
192 ···std::vector<partial_piece_info>·get_download_queue·()·const; 
193 ···void·post_download_queue·()·const;192 ···void·post_download_queue·()·const;
194 ···void·clear_piece_deadlines·()·const;193 ···std::vector<partial_piece_info>·get_download_queue·()·const;
195 ···void·set_piece_deadline·(piece_index_t·index,·int·deadline,·deadline_flags_194 ···void·set_piece_deadline·(piece_index_t·index,·int·deadline,·deadline_flags_
196 t·flags·=·{})·const;195 t·flags·=·{})·const;
197 ···void·reset_piece_deadline·(piece_index_t·index)·const;196 ···void·reset_piece_deadline·(piece_index_t·index)·const;
 197 ···void·clear_piece_deadlines·()·const;
 198 ···void·file_progress·(std::vector<std::int64_t>&·progress,·file_progress_
 199 flags_t·flags·=·{})·const;
198 ···void·post_file_progress·(file_progress_flags_t·flags)·const;200 ···void·post_file_progress·(file_progress_flags_t·flags)·const;
199 ···std::vector<std::int64_t>·file_progress·(file_progress_flags_t·flags·=·{})201 ···std::vector<std::int64_t>·file_progress·(file_progress_flags_t·flags·=·{})
200 const;202 const;
201 ···void·file_progress·(std::vector<std::int64_t>&·progress,·file_progress_ 
202 flags_t·flags·=·{})·const; 
203 ···std::vector<open_file_state>·file_status·()·const;203 ···std::vector<open_file_state>·file_status·()·const;
204 ···void·clear_error·()·const;204 ···void·clear_error·()·const;
205 ···void·add_tracker·(announce_entry·const&)·const;205 ···void·add_tracker·(announce_entry·const&)·const;
 206 ···std::vector<announce_entry>·trackers·()·const;
206 ···void·replace_trackers·(std::vector<announce_entry>·const&)·const;207 ···void·replace_trackers·(std::vector<announce_entry>·const&)·const;
207 ···void·post_trackers·()·const;208 ···void·post_trackers·()·const;
208 ···std::vector<announce_entry>·trackers·()·const; 
209 ···std::set<std::string>·url_seeds·()·const; 
210 ···void·add_url_seed·(std::string·const&·url)·const;209 ···void·add_url_seed·(std::string·const&·url)·const;
 210 ···std::set<std::string>·url_seeds·()·const;
211 ···void·remove_url_seed·(std::string·const&·url)·const;211 ···void·remove_url_seed·(std::string·const&·url)·const;
212 ···void·add_http_seed·(std::string·const&·url)·const; 
213 ···void·remove_http_seed·(std::string·const&·url)·const; 
214 ···std::set<std::string>·http_seeds·()·const;212 ···std::set<std::string>·http_seeds·()·const;
 213 ···void·remove_http_seed·(std::string·const&·url)·const;
 214 ···void·add_http_seed·(std::string·const&·url)·const;
215 ···void·add_extension·(215 ···void·add_extension·(
216 ······std::function<std::shared_ptr<torrent_plugin>(torrent_handle·const&,216 ······std::function<std::shared_ptr<torrent_plugin>(torrent_handle·const&,
217 client_data_t)>·const&·ext217 client_data_t)>·const&·ext
218 ······,·client_data_t·userdata·=·client_data_t{});218 ······,·client_data_t·userdata·=·client_data_t{});
219 ···bool·set_metadata·(span<char·const>·metadata)·const;219 ···bool·set_metadata·(span<char·const>·metadata)·const;
220 ···bool·is_valid·()·const;220 ···bool·is_valid·()·const;
221 ···void·resume·()·const; 
222 ···void·pause·(pause_flags_t·flags·=·{})·const;221 ···void·pause·(pause_flags_t·flags·=·{})·const;
 222 ···void·resume·()·const;
223 ···void·unset_flags·(torrent_flags_t·flags)·const;223 ···void·unset_flags·(torrent_flags_t·flags)·const;
224 ···torrent_flags_t·flags·()·const; 
225 ···void·set_flags·(torrent_flags_t·flags)·const;224 ···void·set_flags·(torrent_flags_t·flags)·const;
226 ···void·set_flags·(torrent_flags_t·flags,·torrent_flags_t·mask)·const;225 ···void·set_flags·(torrent_flags_t·flags,·torrent_flags_t·mask)·const;
 226 ···torrent_flags_t·flags·()·const;
227 ···void·flush_cache·()·const;227 ···void·flush_cache·()·const;
228 ···void·force_recheck·()·const;228 ···void·force_recheck·()·const;
229 ···void·save_resume_data·(resume_data_flags_t·flags·=·{})·const;229 ···void·save_resume_data·(resume_data_flags_t·flags·=·{})·const;
230 ···bool·need_save_resume_data·(resume_data_flags_t·flags)·const; 
231 ···bool·need_save_resume_data·()·const;230 ···bool·need_save_resume_data·()·const;
232 ···void·queue_position_up·()·const;231 ···bool·need_save_resume_data·(resume_data_flags_t·flags)·const;
233 ···void·queue_position_down·()·const;232 ···void·queue_position_bottom·()·const;
234 ···queue_position_t·queue_position·()·const;233 ···queue_position_t·queue_position·()·const;
 234 ···void·queue_position_down·()·const;
235 ···void·queue_position_top·()·const;235 ···void·queue_position_top·()·const;
Max diff block lines reached; 26948/34059 bytes (79.12%) of diff not shown.
41.7 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Info.html
    
Offset 41, 32 lines modifiedOffset 41, 32 lines modified
41 <li><a·class="reference·internal"·href="#load-torrent-limits"·id="toc-entry-5">load_torrent_limits</a></li>41 <li><a·class="reference·internal"·href="#load-torrent-limits"·id="toc-entry-5">load_torrent_limits</a></li>
42 <li><a·class="reference·internal"·href="#torrent-info"·id="toc-entry-6">torrent_info</a><ul>42 <li><a·class="reference·internal"·href="#torrent-info"·id="toc-entry-6">torrent_info</a><ul>
43 <li><a·class="reference·internal"·href="#torrent-info-1"·id="toc-entry-7">torrent_info()</a></li>43 <li><a·class="reference·internal"·href="#torrent-info-1"·id="toc-entry-7">torrent_info()</a></li>
44 <li><a·class="reference·internal"·href="#torrent-info-2"·id="toc-entry-8">~torrent_info()</a></li>44 <li><a·class="reference·internal"·href="#torrent-info-2"·id="toc-entry-8">~torrent_info()</a></li>
45 <li><a·class="reference·internal"·href="#files-orig-files"·id="toc-entry-9">files()·orig_files()</a></li>45 <li><a·class="reference·internal"·href="#files-orig-files"·id="toc-entry-9">files()·orig_files()</a></li>
46 <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-10">rename_file()</a></li>46 <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-10">rename_file()</a></li>
47 <li><a·class="reference·internal"·href="#remap-files"·id="toc-entry-11">remap_files()</a></li>47 <li><a·class="reference·internal"·href="#remap-files"·id="toc-entry-11">remap_files()</a></li>
48 <li><a·class="reference·internal"·href="#add-tracker-trackers-clear-trackers"·id="toc-entry-12">add_tracker()·trackers()·clear_trackers()</a></li>48 <li><a·class="reference·internal"·href="#clear-trackers-add-tracker-trackers"·id="toc-entry-12">clear_trackers()·add_tracker()·trackers()</a></li>
49 <li><a·class="reference·internal"·href="#collections-similar-torrents"·id="toc-entry-13">collections()·similar_torrents()</a></li>49 <li><a·class="reference·internal"·href="#similar-torrents-collections"·id="toc-entry-13">similar_torrents()·collections()</a></li>
50 <li><a·class="reference·internal"·href="#web-seeds-set-web-seeds-add-http-seed-add-url-seed"·id="toc-entry-14">web_seeds()·set_web_seeds()·add_http_seed()·add_url_seed()</a></li>50 <li><a·class="reference·internal"·href="#set-web-seeds-add-url-seed-add-http-seed-web-seeds"·id="toc-entry-14">set_web_seeds()·add_url_seed()·add_http_seed()·web_seeds()</a></li>
51 <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-15">total_size()</a></li>51 <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-15">total_size()</a></li>
52 <li><a·class="reference·internal"·href="#num-pieces-piece-length"·id="toc-entry-16">num_pieces()·piece_length()</a></li>52 <li><a·class="reference·internal"·href="#piece-length-num-pieces"·id="toc-entry-16">piece_length()·num_pieces()</a></li>
53 <li><a·class="reference·internal"·href="#blocks-per-piece"·id="toc-entry-17">blocks_per_piece()</a></li>53 <li><a·class="reference·internal"·href="#blocks-per-piece"·id="toc-entry-17">blocks_per_piece()</a></li>
54 <li><a·class="reference·internal"·href="#last-piece-end-piece-piece-range"·id="toc-entry-18">last_piece()·end_piece()·piece_range()</a></li>54 <li><a·class="reference·internal"·href="#last-piece-piece-range-end-piece"·id="toc-entry-18">last_piece()·piece_range()·end_piece()</a></li>
55 <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-19">info_hash()·info_hashes()</a></li>55 <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-19">info_hash()·info_hashes()</a></li>
56 <li><a·class="reference·internal"·href="#v2-v1"·id="toc-entry-20">v2()·v1()</a></li>56 <li><a·class="reference·internal"·href="#v2-v1"·id="toc-entry-20">v2()·v1()</a></li>
57 <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-21">num_files()</a></li>57 <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-21">num_files()</a></li>
58 <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-22">map_block()</a></li>58 <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-22">map_block()</a></li>
59 <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-23">map_file()</a></li>59 <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-23">map_file()</a></li>
60 <li><a·class="reference·internal"·href="#ssl-cert"·id="toc-entry-24">ssl_cert()</a></li>60 <li><a·class="reference·internal"·href="#ssl-cert"·id="toc-entry-24">ssl_cert()</a></li>
61 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-25">is_valid()</a></li>61 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-25">is_valid()</a></li>
62 <li><a·class="reference·internal"·href="#priv"·id="toc-entry-26">priv()</a></li>62 <li><a·class="reference·internal"·href="#priv"·id="toc-entry-26">priv()</a></li>
63 <li><a·class="reference·internal"·href="#is-i2p"·id="toc-entry-27">is_i2p()</a></li>63 <li><a·class="reference·internal"·href="#is-i2p"·id="toc-entry-27">is_i2p()</a></li>
64 <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-28">piece_size()</a></li>64 <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-28">piece_size()</a></li>
65 <li><a·class="reference·internal"·href="#hash-for-piece-hash-for-piece-ptr"·id="toc-entry-29">hash_for_piece()·hash_for_piece_ptr()</a></li>65 <li><a·class="reference·internal"·href="#hash-for-piece-ptr-hash-for-piece"·id="toc-entry-29">hash_for_piece_ptr()·hash_for_piece()</a></li>
66 <li><a·class="reference·internal"·href="#name"·id="toc-entry-30">name()</a></li>66 <li><a·class="reference·internal"·href="#name"·id="toc-entry-30">name()</a></li>
67 <li><a·class="reference·internal"·href="#creation-date"·id="toc-entry-31">creation_date()</a></li>67 <li><a·class="reference·internal"·href="#creation-date"·id="toc-entry-31">creation_date()</a></li>
68 <li><a·class="reference·internal"·href="#creator"·id="toc-entry-32">creator()</a></li>68 <li><a·class="reference·internal"·href="#creator"·id="toc-entry-32">creator()</a></li>
69 <li><a·class="reference·internal"·href="#comment"·id="toc-entry-33">comment()</a></li>69 <li><a·class="reference·internal"·href="#comment"·id="toc-entry-33">comment()</a></li>
70 <li><a·class="reference·internal"·href="#nodes"·id="toc-entry-34">nodes()</a></li>70 <li><a·class="reference·internal"·href="#nodes"·id="toc-entry-34">nodes()</a></li>
71 <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-35">add_node()</a></li>71 <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-35">add_node()</a></li>
72 <li><a·class="reference·internal"·href="#parse-info-section"·id="toc-entry-36">parse_info_section()</a></li>72 <li><a·class="reference·internal"·href="#parse-info-section"·id="toc-entry-36">parse_info_section()</a></li>
Offset 197, 54 lines modifiedOffset 197, 54 lines modified
197 <div·class="section"·id="torrent-info">197 <div·class="section"·id="torrent-info">
198 <h1>torrent_info</h1>198 <h1>torrent_info</h1>
199 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/torrent_info.hpp">libtorrent/torrent_info.hpp</a>&quot;</p>199 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/torrent_info.hpp">libtorrent/torrent_info.hpp</a>&quot;</p>
200 <p>the·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>·class·holds·the·information·found·in·a·.torrent·file.</p>200 <p>the·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>·class·holds·the·information·found·in·a·.torrent·file.</p>
201 <pre·class="literal-block">201 <pre·class="literal-block">
202 class·torrent_info202 class·torrent_info
203 {203 {
204 ···<strong>torrent_info</strong>·(std::string·const&amp;·filename,·load_torrent_limits·const&amp;·cfg); 
205 ···explicit·<strong>torrent_info</strong>·(info_hash_t·const&amp;·info_hash);204 ···explicit·<strong>torrent_info</strong>·(std::string·const&amp;·filename);
206 ···<strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·error_code&amp;·ec,·from_span_t); 
207 ···<strong>torrent_info</strong>·(torrent_info·const&amp;·t); 
208 ···explicit·<strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·from_span_t);205 ···explicit·<strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·from_span_t);
 206 ···<strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·load_torrent_limits·const&amp;·cfg,·from_span_t);
 207 ···<strong>torrent_info</strong>·(torrent_info·const&amp;·t);
 208 ···explicit·<strong>torrent_info</strong>·(info_hash_t·const&amp;·info_hash);
209 ···explicit·<strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file);209 ···explicit·<strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file);
210 ···<strong>torrent_info</strong>·(char·const*·buffer,·int·size,·error_code&amp;·ec); 
211 ···<strong>torrent_info</strong>·(std::string·const&amp;·filename,·error_code&amp;·ec);210 ···<strong>torrent_info</strong>·(std::string·const&amp;·filename,·error_code&amp;·ec);
212 ···<strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·load_torrent_limits·const&amp;·cfg,·from_span_t);211 ···<strong>torrent_info</strong>·(std::string·const&amp;·filename,·load_torrent_limits·const&amp;·cfg);
213 ···explicit·<strong>torrent_info</strong>·(std::string·const&amp;·filename); 
214 ···<strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file,·error_code&amp;·ec);212 ···<strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file,·error_code&amp;·ec);
215 ···<strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file,·load_torrent_limits·const&amp;·cfg);213 ···<strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·error_code&amp;·ec,·from_span_t);
 214 ···<strong>torrent_info</strong>·(char·const*·buffer,·int·size,·error_code&amp;·ec);
216 ···<strong>torrent_info</strong>·(char·const*·buffer,·int·size);215 ···<strong>torrent_info</strong>·(char·const*·buffer,·int·size);
 216 ···<strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file,·load_torrent_limits·const&amp;·cfg);
217 ···<strong>~torrent_info</strong>·();217 ···<strong>~torrent_info</strong>·();
218 ···file_storage·const&amp;·<strong>files</strong>·()·const; 
219 ···file_storage·const&amp;·<strong>orig_files</strong>·()·const;218 ···file_storage·const&amp;·<strong>orig_files</strong>·()·const;
 219 ···file_storage·const&amp;·<strong>files</strong>·()·const;
220 ···void·<strong>rename_file</strong>·(file_index_t·index,·std::string·const&amp;·new_filename);220 ···void·<strong>rename_file</strong>·(file_index_t·index,·std::string·const&amp;·new_filename);
221 ···void·<strong>remap_files</strong>·(file_storage·const&amp;·f);221 ···void·<strong>remap_files</strong>·(file_storage·const&amp;·f);
222 ···void·<strong>add_tracker</strong>·(std::string·const&amp;·url,·int·tier·=·0); 
223 ···void·<strong>clear_trackers</strong>·(); 
224 ···std::vector&lt;announce_entry&gt;·const&amp;·<strong>trackers</strong>·()·const; 
225 ···void·<strong>add_tracker</strong>·(std::string·const&amp;·url,·int·tier222 ···void·<strong>add_tracker</strong>·(std::string·const&amp;·url,·int·tier
226 ······,·announce_entry::tracker_source·source);223 ······,·announce_entry::tracker_source·source);
227 ···std::vector&lt;std::string&gt;·<strong>collections</strong>·()·const;224 ···void·<strong>add_tracker</strong>·(std::string·const&amp;·url,·int·tier·=·0);
 225 ···std::vector&lt;announce_entry&gt;·const&amp;·<strong>trackers</strong>·()·const;
 226 ···void·<strong>clear_trackers</strong>·();
228 ···std::vector&lt;sha1_hash&gt;·<strong>similar_torrents</strong>·()·const;227 ···std::vector&lt;sha1_hash&gt;·<strong>similar_torrents</strong>·()·const;
 228 ···std::vector&lt;std::string&gt;·<strong>collections</strong>·()·const;
229 ···std::vector&lt;web_seed_entry&gt;·const&amp;·<strong>web_seeds</strong>·()·const;229 ···std::vector&lt;web_seed_entry&gt;·const&amp;·<strong>web_seeds</strong>·()·const;
 230 ···void·<strong>set_web_seeds</strong>·(std::vector&lt;web_seed_entry&gt;·seeds);
230 ···void·<strong>add_url_seed</strong>·(std::string·const&amp;·url231 ···void·<strong>add_url_seed</strong>·(std::string·const&amp;·url
231 ······,·std::string·const&amp;·ext_auth·=·std::string()232 ······,·std::string·const&amp;·ext_auth·=·std::string()
232 ······,·web_seed_entry::headers_t·const&amp;·ext_headers·=·web_seed_entry::headers_t());233 ······,·web_seed_entry::headers_t·const&amp;·ext_headers·=·web_seed_entry::headers_t());
233 ···void·<strong>set_web_seeds</strong>·(std::vector&lt;web_seed_entry&gt;·seeds); 
234 ···void·<strong>add_http_seed</strong>·(std::string·const&amp;·url234 ···void·<strong>add_http_seed</strong>·(std::string·const&amp;·url
235 ······,·std::string·const&amp;·extern_auth·=·std::string()235 ······,·std::string·const&amp;·extern_auth·=·std::string()
236 ······,·web_seed_entry::headers_t·const&amp;·extra_headers·=·web_seed_entry::headers_t());236 ······,·web_seed_entry::headers_t·const&amp;·extra_headers·=·web_seed_entry::headers_t());
237 ···std::int64_t·<strong>total_size</strong>·()·const;237 ···std::int64_t·<strong>total_size</strong>·()·const;
238 ···int·<strong>piece_length</strong>·()·const; 
239 ···int·<strong>num_pieces</strong>·()·const;238 ···int·<strong>num_pieces</strong>·()·const;
 239 ···int·<strong>piece_length</strong>·()·const;
240 ···int·<strong>blocks_per_piece</strong>·()·const;240 ···int·<strong>blocks_per_piece</strong>·()·const;
 241 ···piece_index_t·<strong>end_piece</strong>·()·const;
241 ···index_range&lt;piece_index_t&gt;·<strong>piece_range</strong>·()·const;242 ···index_range&lt;piece_index_t&gt;·<strong>piece_range</strong>·()·const;
242 ···piece_index_t·<strong>last_piece</strong>·()·const;243 ···piece_index_t·<strong>last_piece</strong>·()·const;
243 ···piece_index_t·<strong>end_piece</strong>·()·const; 
244 ···info_hash_t·const&amp;·<strong>info_hashes</strong>·()·const;244 ···info_hash_t·const&amp;·<strong>info_hashes</strong>·()·const;
245 ···sha1_hash·<strong>info_hash</strong>·()·const·noexcept;245 ···sha1_hash·<strong>info_hash</strong>·()·const·noexcept;
246 ···bool·<strong>v2</strong>·()·const;246 ···bool·<strong>v2</strong>·()·const;
247 ···bool·<strong>v1</strong>·()·const;247 ···bool·<strong>v1</strong>·()·const;
248 ···int·<strong>num_files</strong>·()·const;248 ···int·<strong>num_files</strong>·()·const;
249 ···std::vector&lt;file_slice&gt;·<strong>map_block</strong>·(piece_index_t·const·piece249 ···std::vector&lt;file_slice&gt;·<strong>map_block</strong>·(piece_index_t·const·piece
250 ······,·std::int64_t·offset,·int·size)·const;250 ······,·std::int64_t·offset,·int·size)·const;
Offset 269, 27 lines modifiedOffset 269, 27 lines modified
269 ···span&lt;char·const&gt;·<strong>piece_layer</strong>·(file_index_t)·const;269 ···span&lt;char·const&gt;·<strong>piece_layer</strong>·(file_index_t)·const;
270 ···void·<strong>free_piece_layers</strong>·();270 ···void·<strong>free_piece_layers</strong>·();
271 };271 };
272 </pre>272 </pre>
273 <a·name="torrent_info()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_info%3A%3A%5Btorrent_info%28%29%5D&labels=documentation&body=Documentation+under+heading+%22torrent_info%3A%3A%5Btorrent_info%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="torrent-info-1">273 <a·name="torrent_info()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_info%3A%3A%5Btorrent_info%28%29%5D&labels=documentation&body=Documentation+under+heading+%22torrent_info%3A%3A%5Btorrent_info%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="torrent-info-1">
274 <h2>torrent_info()</h2>274 <h2>torrent_info()</h2>
275 <pre·class="literal-block">275 <pre·class="literal-block">
276 <strong>torrent_info</strong>·(std::string·const&amp;·filename,·load_torrent_limits·const&amp;·cfg); 
277 explicit·<strong>torrent_info</strong>·(info_hash_t·const&amp;·info_hash);276 explicit·<strong>torrent_info</strong>·(std::string·const&amp;·filename);
278 <strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·error_code&amp;·ec,·from_span_t); 
279 <strong>torrent_info</strong>·(torrent_info·const&amp;·t); 
280 explicit·<strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·from_span_t);277 explicit·<strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·from_span_t);
 278 <strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·load_torrent_limits·const&amp;·cfg,·from_span_t);
 279 <strong>torrent_info</strong>·(torrent_info·const&amp;·t);
 280 explicit·<strong>torrent_info</strong>·(info_hash_t·const&amp;·info_hash);
281 explicit·<strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file);281 explicit·<strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file);
282 <strong>torrent_info</strong>·(char·const*·buffer,·int·size,·error_code&amp;·ec); 
283 <strong>torrent_info</strong>·(std::string·const&amp;·filename,·error_code&amp;·ec);282 <strong>torrent_info</strong>·(std::string·const&amp;·filename,·error_code&amp;·ec);
284 <strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·load_torrent_limits·const&amp;·cfg,·from_span_t);283 <strong>torrent_info</strong>·(std::string·const&amp;·filename,·load_torrent_limits·const&amp;·cfg);
285 explicit·<strong>torrent_info</strong>·(std::string·const&amp;·filename); 
286 <strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file,·error_code&amp;·ec);284 <strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file,·error_code&amp;·ec);
287 <strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file,·load_torrent_limits·const&amp;·cfg);285 <strong>torrent_info</strong>·(span&lt;char·const&gt;·buffer,·error_code&amp;·ec,·from_span_t);
 286 <strong>torrent_info</strong>·(char·const*·buffer,·int·size,·error_code&amp;·ec);
288 <strong>torrent_info</strong>·(char·const*·buffer,·int·size);287 <strong>torrent_info</strong>·(char·const*·buffer,·int·size);
 288 <strong>torrent_info</strong>·(bdecode_node·const&amp;·torrent_file,·load_torrent_limits·const&amp;·cfg);
289 </pre>289 </pre>
290 <p>The·constructor·that·takes·an·info-hash·will·initialize·the·info-hash290 <p>The·constructor·that·takes·an·info-hash·will·initialize·the·info-hash
Max diff block lines reached; 17248/29072 bytes (59.33%) of diff not shown.
13.1 KB
html2text {}
    
Offset 9, 32 lines modifiedOffset 9, 32 lines modified
9 ····*·load_torrent_limits9 ····*·load_torrent_limits
10 ····*·torrent_info10 ····*·torrent_info
11 ··········o·torrent_info()11 ··········o·torrent_info()
12 ··········o·~torrent_info()12 ··········o·~torrent_info()
13 ··········o·files()_orig_files()13 ··········o·files()_orig_files()
14 ··········o·rename_file()14 ··········o·rename_file()
15 ··········o·remap_files()15 ··········o·remap_files()
16 ··········o·add_tracker()_trackers()_clear_trackers() 
17 ··········o·collections()_similar_torrents() 
18 ··········o·web_seeds()_set_web_seeds()_add_http_seed()_add_url_seed()16 ··········o·clear_trackers()_add_tracker()_trackers()
 17 ··········o·similar_torrents()_collections()
 18 ··········o·set_web_seeds()_add_url_seed()_add_http_seed()_web_seeds()
19 ··········o·total_size()19 ··········o·total_size()
20 ··········o·num_pieces()_piece_length()20 ··········o·piece_length()_num_pieces()
21 ··········o·blocks_per_piece()21 ··········o·blocks_per_piece()
22 ··········o·last_piece()_end_piece()_piece_range()22 ··········o·last_piece()_piece_range()_end_piece()
23 ··········o·info_hash()_info_hashes()23 ··········o·info_hash()_info_hashes()
24 ··········o·v2()_v1()24 ··········o·v2()_v1()
25 ··········o·num_files()25 ··········o·num_files()
26 ··········o·map_block()26 ··········o·map_block()
27 ··········o·map_file()27 ··········o·map_file()
28 ··········o·ssl_cert()28 ··········o·ssl_cert()
29 ··········o·is_valid()29 ··········o·is_valid()
30 ··········o·priv()30 ··········o·priv()
31 ··········o·is_i2p()31 ··········o·is_i2p()
32 ··········o·piece_size()32 ··········o·piece_size()
33 ··········o·hash_for_piece()_hash_for_piece_ptr()33 ··········o·hash_for_piece_ptr()_hash_for_piece()
34 ··········o·name()34 ··········o·name()
35 ··········o·creation_date()35 ··········o·creation_date()
36 ··········o·creator()36 ··········o·creator()
37 ··········o·comment()37 ··········o·comment()
38 ··········o·nodes()38 ··········o·nodes()
39 ··········o·add_node()39 ··········o·add_node()
40 ··········o·parse_info_section()40 ··········o·parse_info_section()
Offset 119, 58 lines modifiedOffset 119, 58 lines modified
119 ······the·max·number·of·bdecode·tokens119 ······the·max·number·of·bdecode·tokens
120 [report_issue]120 [report_issue]
121 ******·torrent_info·******121 ******·torrent_info·******
122 Declared·in·"libtorrent/torrent_info.hpp"122 Declared·in·"libtorrent/torrent_info.hpp"
123 the·torrent_info·class·holds·the·information·found·in·a·.torrent·file.123 the·torrent_info·class·holds·the·information·found·in·a·.torrent·file.
124 class·torrent_info124 class·torrent_info
125 {125 {
 126 ···explicit·torrent_info·(std::string·const&·filename);
126 ···torrent_info·(std::string·const&·filename,·load_torrent_limits·const&·cfg); 
127 ···explicit·torrent_info·(info_hash_t·const&·info_hash); 
128 ···torrent_info·(span<char·const>·buffer,·error_code&·ec,·from_span_t); 
129 ···torrent_info·(torrent_info·const&·t); 
130 ···explicit·torrent_info·(span<char·const>·buffer,·from_span_t);127 ···explicit·torrent_info·(span<char·const>·buffer,·from_span_t);
131 ···explicit·torrent_info·(bdecode_node·const&·torrent_file); 
132 ···torrent_info·(char·const*·buffer,·int·size,·error_code&·ec); 
133 ···torrent_info·(std::string·const&·filename,·error_code&·ec); 
134 ···torrent_info·(span<char·const>·buffer,·load_torrent_limits·const&·cfg,·from_128 ···torrent_info·(span<char·const>·buffer,·load_torrent_limits·const&·cfg,·from_
135 span_t);129 span_t);
 130 ···torrent_info·(torrent_info·const&·t);
 131 ···explicit·torrent_info·(info_hash_t·const&·info_hash);
 132 ···explicit·torrent_info·(bdecode_node·const&·torrent_file);
136 ···explicit·torrent_info·(std::string·const&·filename);133 ···torrent_info·(std::string·const&·filename,·error_code&·ec);
 134 ···torrent_info·(std::string·const&·filename,·load_torrent_limits·const&·cfg);
137 ···torrent_info·(bdecode_node·const&·torrent_file,·error_code&·ec);135 ···torrent_info·(bdecode_node·const&·torrent_file,·error_code&·ec);
 136 ···torrent_info·(span<char·const>·buffer,·error_code&·ec,·from_span_t);
 137 ···torrent_info·(char·const*·buffer,·int·size,·error_code&·ec);
 138 ···torrent_info·(char·const*·buffer,·int·size);
138 ···torrent_info·(bdecode_node·const&·torrent_file,·load_torrent_limits·const&139 ···torrent_info·(bdecode_node·const&·torrent_file,·load_torrent_limits·const&
139 cfg);140 cfg);
140 ···torrent_info·(char·const*·buffer,·int·size); 
141 ···~torrent_info·();141 ···~torrent_info·();
142 ···file_storage·const&·files·()·const; 
143 ···file_storage·const&·orig_files·()·const;142 ···file_storage·const&·orig_files·()·const;
 143 ···file_storage·const&·files·()·const;
144 ···void·rename_file·(file_index_t·index,·std::string·const&·new_filename);144 ···void·rename_file·(file_index_t·index,·std::string·const&·new_filename);
145 ···void·remap_files·(file_storage·const&·f);145 ···void·remap_files·(file_storage·const&·f);
146 ···void·add_tracker·(std::string·const&·url,·int·tier·=·0); 
147 ···void·clear_trackers·(); 
148 ···std::vector<announce_entry>·const&·trackers·()·const; 
149 ···void·add_tracker·(std::string·const&·url,·int·tier146 ···void·add_tracker·(std::string·const&·url,·int·tier
150 ······,·announce_entry::tracker_source·source);147 ······,·announce_entry::tracker_source·source);
151 ···std::vector<std::string>·collections·()·const;148 ···void·add_tracker·(std::string·const&·url,·int·tier·=·0);
 149 ···std::vector<announce_entry>·const&·trackers·()·const;
 150 ···void·clear_trackers·();
152 ···std::vector<sha1_hash>·similar_torrents·()·const;151 ···std::vector<sha1_hash>·similar_torrents·()·const;
 152 ···std::vector<std::string>·collections·()·const;
153 ···std::vector<web_seed_entry>·const&·web_seeds·()·const;153 ···std::vector<web_seed_entry>·const&·web_seeds·()·const;
 154 ···void·set_web_seeds·(std::vector<web_seed_entry>·seeds);
154 ···void·add_url_seed·(std::string·const&·url155 ···void·add_url_seed·(std::string·const&·url
155 ······,·std::string·const&·ext_auth·=·std::string()156 ······,·std::string·const&·ext_auth·=·std::string()
156 ······,·web_seed_entry::headers_t·const&·ext_headers·=·web_seed_entry::headers_157 ······,·web_seed_entry::headers_t·const&·ext_headers·=·web_seed_entry::headers_
157 t());158 t());
158 ···void·set_web_seeds·(std::vector<web_seed_entry>·seeds); 
159 ···void·add_http_seed·(std::string·const&·url159 ···void·add_http_seed·(std::string·const&·url
160 ······,·std::string·const&·extern_auth·=·std::string()160 ······,·std::string·const&·extern_auth·=·std::string()
161 ······,·web_seed_entry::headers_t·const&·extra_headers·=·web_seed_entry::161 ······,·web_seed_entry::headers_t·const&·extra_headers·=·web_seed_entry::
162 headers_t());162 headers_t());
163 ···std::int64_t·total_size·()·const;163 ···std::int64_t·total_size·()·const;
164 ···int·piece_length·()·const; 
165 ···int·num_pieces·()·const;164 ···int·num_pieces·()·const;
 165 ···int·piece_length·()·const;
166 ···int·blocks_per_piece·()·const;166 ···int·blocks_per_piece·()·const;
 167 ···piece_index_t·end_piece·()·const;
167 ···index_range<piece_index_t>·piece_range·()·const;168 ···index_range<piece_index_t>·piece_range·()·const;
168 ···piece_index_t·last_piece·()·const;169 ···piece_index_t·last_piece·()·const;
169 ···piece_index_t·end_piece·()·const; 
170 ···info_hash_t·const&·info_hashes·()·const;170 ···info_hash_t·const&·info_hashes·()·const;
171 ···sha1_hash·info_hash·()·const·noexcept;171 ···sha1_hash·info_hash·()·const·noexcept;
172 ···bool·v2·()·const;172 ···bool·v2·()·const;
173 ···bool·v1·()·const;173 ···bool·v1·()·const;
174 ···int·num_files·()·const;174 ···int·num_files·()·const;
175 ···std::vector<file_slice>·map_block·(piece_index_t·const·piece175 ···std::vector<file_slice>·map_block·(piece_index_t·const·piece
176 ······,·std::int64_t·offset,·int·size)·const;176 ······,·std::int64_t·offset,·int·size)·const;
Offset 195, 29 lines modifiedOffset 195, 29 lines modified
195 ···bdecode_node·info·(char·const*·key)·const;195 ···bdecode_node·info·(char·const*·key)·const;
196 ···span<char·const>·info_section·()·const;196 ···span<char·const>·info_section·()·const;
197 ···span<char·const>·piece_layer·(file_index_t)·const;197 ···span<char·const>·piece_layer·(file_index_t)·const;
198 ···void·free_piece_layers·();198 ···void·free_piece_layers·();
199 };199 };
200 [report_issue]200 [report_issue]
201 *****·torrent_info()·*****201 *****·torrent_info()·*****
 202 explicit·torrent_info·(std::string·const&·filename);
202 torrent_info·(std::string·const&·filename,·load_torrent_limits·const&·cfg); 
203 explicit·torrent_info·(info_hash_t·const&·info_hash); 
204 torrent_info·(span<char·const>·buffer,·error_code&·ec,·from_span_t); 
205 torrent_info·(torrent_info·const&·t); 
206 explicit·torrent_info·(span<char·const>·buffer,·from_span_t);203 explicit·torrent_info·(span<char·const>·buffer,·from_span_t);
207 explicit·torrent_info·(bdecode_node·const&·torrent_file); 
208 torrent_info·(char·const*·buffer,·int·size,·error_code&·ec); 
209 torrent_info·(std::string·const&·filename,·error_code&·ec); 
210 torrent_info·(span<char·const>·buffer,·load_torrent_limits·const&·cfg,·from_204 torrent_info·(span<char·const>·buffer,·load_torrent_limits·const&·cfg,·from_
211 span_t);205 span_t);
Max diff block lines reached; 7185/13441 bytes (53.46%) of diff not shown.
1.67 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Status.html
    
Offset 426, 15 lines modifiedOffset 426, 15 lines modified
426 currently·connected·to.</dd>426 currently·connected·to.</dd>
427 </dl>427 </dl>
428 <a·name="num_peers"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_status%3A%3A%5Bnum_peers%5D&labels=documentation&body=Documentation+under+heading+%22torrent_status%3A%3A%5Bnum_peers%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">428 <a·name="num_peers"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_status%3A%3A%5Bnum_peers%5D&labels=documentation&body=Documentation+under+heading+%22torrent_status%3A%3A%5Bnum_peers%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">
429 <dt>num_peers</dt>429 <dt>num_peers</dt>
430 <dd>the·number·of·peers·this·torrent·currently·is·connected·to.·Peer430 <dd>the·number·of·peers·this·torrent·currently·is·connected·to.·Peer
431 connections·that·are·in·the·half-open·state·(is·attempting·to·connect)431 connections·that·are·in·the·half-open·state·(is·attempting·to·connect)
432 or·are·queued·for·later·connection·attempt·do·not·count.·Although·they432 or·are·queued·for·later·connection·attempt·do·not·count.·Although·they
433 are·visible·in·the·peer·list·when·you·call·<a·class="reference·external"·href="reference-Torrent_Handle.html#get_peer_info()">get_peer_info()</a>.</dd>433 are·visible·in·the·peer·list·when·you·call·<a·class="reference·external"·href="reference-Plugins.html#get_peer_info()">get_peer_info()</a>.</dd>
434 </dl>434 </dl>
435 <a·name="num_complete"></a>435 <a·name="num_complete"></a>
436 <a·name="num_incomplete"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_status%3A%3A%5Bnum_complete+num_incomplete%5D&labels=documentation&body=Documentation+under+heading+%22torrent_status%3A%3A%5Bnum_complete+num_incomplete%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">436 <a·name="num_incomplete"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_status%3A%3A%5Bnum_complete+num_incomplete%5D&labels=documentation&body=Documentation+under+heading+%22torrent_status%3A%3A%5Bnum_complete+num_incomplete%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils">
437 <dt>num_complete·num_incomplete</dt>437 <dt>num_complete·num_incomplete</dt>
438 <dd>if·the·tracker·sends·scrape·info·in·its·announce·reply,·these·fields438 <dd>if·the·tracker·sends·scrape·info·in·its·announce·reply,·these·fields
439 will·be·set·to·the·total·number·of·peers·that·have·the·whole·file·and439 will·be·set·to·the·total·number·of·peers·that·have·the·whole·file·and
440 the·total·number·of·peers·that·are·still·downloading.·set·to·-1·if·the440 the·total·number·of·peers·that·are·still·downloading.·set·to·-1·if·the
7.31 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Trackers.html
    
Offset 31, 15 lines modifiedOffset 31, 15 lines modified
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#announce-infohash"·id="toc-entry-1">announce_infohash</a></li>35 <li><a·class="reference·internal"·href="#announce-infohash"·id="toc-entry-1">announce_infohash</a></li>
36 <li><a·class="reference·internal"·href="#announce-endpoint"·id="toc-entry-2">announce_endpoint</a></li>36 <li><a·class="reference·internal"·href="#announce-endpoint"·id="toc-entry-2">announce_endpoint</a></li>
37 <li><a·class="reference·internal"·href="#announce-entry"·id="toc-entry-3">announce_entry</a><ul>37 <li><a·class="reference·internal"·href="#announce-entry"·id="toc-entry-3">announce_entry</a><ul>
38 <li><a·class="reference·internal"·href="#operator-announce-entry-announce-entry"·id="toc-entry-4">operator=()·~announce_entry()·announce_entry()</a></li>38 <li><a·class="reference·internal"·href="#announce-entry-operator-announce-entry"·id="toc-entry-4">announce_entry()·operator=()·~announce_entry()</a></li>
39 <li><a·class="reference·internal"·href="#enum-tracker-source"·id="toc-entry-5">enum·tracker_source</a></li>39 <li><a·class="reference·internal"·href="#enum-tracker-source"·id="toc-entry-5">enum·tracker_source</a></li>
40 </ul>40 </ul>
41 </li>41 </li>
42 </ul>42 </ul>
43 </div>43 </div>
44 <a·name="announce_infohash"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+announce_infohash&labels=documentation&body=Documentation+under+heading+%22class+announce_infohash%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="announce-infohash">44 <a·name="announce_infohash"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+announce_infohash&labels=documentation&body=Documentation+under+heading+%22class+announce_infohash%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="announce-infohash">
45 <h1>announce_infohash</h1>45 <h1>announce_infohash</h1>
Offset 132, 18 lines modifiedOffset 132, 18 lines modified
132 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/announce_entry.hpp">libtorrent/announce_entry.hpp</a>&quot;</p>132 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/announce_entry.hpp">libtorrent/announce_entry.hpp</a>&quot;</p>
133 <p>this·class·holds·information·about·one·bittorrent·tracker,·as·it133 <p>this·class·holds·information·about·one·bittorrent·tracker,·as·it
134 relates·to·a·specific·torrent.</p>134 relates·to·a·specific·torrent.</p>
135 <pre·class="literal-block">135 <pre·class="literal-block">
136 struct·announce_entry136 struct·announce_entry
137 {137 {
138 ···explicit·<strong>announce_entry</strong>·(string_view·u);138 ···explicit·<strong>announce_entry</strong>·(string_view·u);
 139 ···<strong>announce_entry</strong>·(announce_entry·const&amp;);
139 ···<strong>~announce_entry</strong>·();140 ···<strong>~announce_entry</strong>·();
140 ···<strong>announce_entry</strong>·(); 
141 ···announce_entry&amp;·<strong>operator=</strong>·(announce_entry·const&amp;)·&amp;;141 ···announce_entry&amp;·<strong>operator=</strong>·(announce_entry·const&amp;)·&amp;;
142 ···<strong>announce_entry</strong>·(announce_entry·const&amp;);142 ···<strong>announce_entry</strong>·();
  
143 ···enum·tracker_source143 ···enum·tracker_source
144 ···{144 ···{
145 ······source_torrent,145 ······source_torrent,
146 ······source_client,146 ······source_client,
147 ······source_magnet_link,147 ······source_magnet_link,
148 ······source_tex,148 ······source_tex,
Offset 154, 24 lines modifiedOffset 154, 24 lines modified
154 ···std::vector&lt;announce_endpoint&gt;·endpoints;154 ···std::vector&lt;announce_endpoint&gt;·endpoints;
155 ···std::uint8_t·<strong>tier</strong>··=·0;155 ···std::uint8_t·<strong>tier</strong>··=·0;
156 ···std::uint8_t·<strong>fail_limit</strong>··=·0;156 ···std::uint8_t·<strong>fail_limit</strong>··=·0;
157 ···std::uint8_t·source:4;157 ···std::uint8_t·source:4;
158 ···bool·verified:1;158 ···bool·verified:1;
159 };159 };
160 </pre>160 </pre>
 161 <a·name="announce_entry()"></a>
161 <a·name="operator=()"></a>162 <a·name="operator=()"></a>
162 <a·name="~announce_entry()"></a> 
163 <a·name="announce_entry()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:announce_entry%3A%3A%5Boperator%3D%28%29+~announce_entry%28%29+announce_entry%28%29%5D&labels=documentation&body=Documentation+under+headin[·...·truncated·by·diffoscope;·len:·186,·SHA:·e5bf12d21c9f7ab477c253d1a9a7c8a9d706daa775e0258129bac2c377eed1f6·...·]-announce-entry">163 <a·name="~announce_entry()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:announce_entry%3A%3A%5Bannounce_entry%28%29+operator%3D%28%29+~announce_entry%28%29%5D&labels=documentation&body=Documentation+under+headi[·...·truncated·by·diffoscope;·len:·187,·SHA:·ece11e7fef22e0f55831b6cb88b4181fc96057ad7126acee89425e064ba44a9b·...·]-announce-entry">
164 <h2>operator=()·~announce_entry()·announce_entry()</h2>164 <h2>announce_entry()·operator=()·~announce_entry()</h2>
165 <pre·class="literal-block">165 <pre·class="literal-block">
166 explicit·<strong>announce_entry</strong>·(string_view·u);166 explicit·<strong>announce_entry</strong>·(string_view·u);
 167 <strong>announce_entry</strong>·(announce_entry·const&amp;);
167 <strong>~announce_entry</strong>·();168 <strong>~announce_entry</strong>·();
168 <strong>announce_entry</strong>·(); 
169 announce_entry&amp;·<strong>operator=</strong>·(announce_entry·const&amp;)·&amp;;169 announce_entry&amp;·<strong>operator=</strong>·(announce_entry·const&amp;)·&amp;;
170 <strong>announce_entry</strong>·(announce_entry·const&amp;);170 <strong>announce_entry</strong>·();
171 </pre>171 </pre>
172 <p>constructs·a·tracker·announce·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>·with·<tt·class="docutils·literal">u</tt>·as·the·URL.</p>172 <p>constructs·a·tracker·announce·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>·with·<tt·class="docutils·literal">u</tt>·as·the·URL.</p>
173 <a·name="tracker_source"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:enum+tracker_source&labels=documentation&body=Documentation+under+heading+%22enum+tracker_source%22+could+be+improved">report·issue</a>]</span></div>173 <a·name="tracker_source"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:enum+tracker_source&labels=documentation&body=Documentation+under+heading+%22enum+tracker_source%22+could+be+improved">report·issue</a>]</span></div>
174 <div·class="section"·id="enum-tracker-source">174 <div·class="section"·id="enum-tracker-source">
175 <h2>enum·tracker_source</h2>175 <h2>enum·tracker_source</h2>
176 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/announce_entry.hpp">libtorrent/announce_entry.hpp</a>&quot;</p>176 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/announce_entry.hpp">libtorrent/announce_entry.hpp</a>&quot;</p>
177 <table·border="1"·class="docutils">177 <table·border="1"·class="docutils">
Offset 189, 15 lines modifiedOffset 189, 15 lines modified
189 <tbody·valign="top">189 <tbody·valign="top">
190 <tr><td>source_torrent</td>190 <tr><td>source_torrent</td>
191 <td>1</td>191 <td>1</td>
192 <td>the·tracker·was·part·of·the·.torrent·file</td>192 <td>the·tracker·was·part·of·the·.torrent·file</td>
193 </tr>193 </tr>
194 <tr><td>source_client</td>194 <tr><td>source_client</td>
195 <td>2</td>195 <td>2</td>
196 <td>the·tracker·was·added·programmatically·via·the·<a·class="reference·external"·href="reference-Torrent_Handle.html#add_tracker()">add_tracker()</a>·function</td>196 <td>the·tracker·was·added·programmatically·via·the·<a·class="reference·external"·href="reference-Create_Torrents.html#add_tracker()">add_tracker()</a>·function</td>
197 </tr>197 </tr>
198 <tr><td>source_magnet_link</td>198 <tr><td>source_magnet_link</td>
199 <td>4</td>199 <td>4</td>
200 <td>the·tracker·was·part·of·a·magnet·link</td>200 <td>the·tracker·was·part·of·a·magnet·link</td>
201 </tr>201 </tr>
202 <tr><td>source_tex</td>202 <tr><td>source_tex</td>
203 <td>8</td>203 <td>8</td>
1.98 KB
html2text {}
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·announce_infohash5 ····*·announce_infohash
6 ····*·announce_endpoint6 ····*·announce_endpoint
7 ····*·announce_entry7 ····*·announce_entry
8 ··········o·operator=()_~announce_entry()_announce_entry()8 ··········o·announce_entry()_operator=()_~announce_entry()
9 ··········o·enum_tracker_source9 ··········o·enum_tracker_source
10 [report_issue]10 [report_issue]
11 ******·announce_infohash·******11 ******·announce_infohash·******
12 Declared·in·"libtorrent/announce_entry.hpp"12 Declared·in·"libtorrent/announce_entry.hpp"
13 struct·announce_infohash13 struct·announce_infohash
14 {14 {
15 ···std::string·message;15 ···std::string·message;
Offset 78, 18 lines modifiedOffset 78, 18 lines modified
78 ******·announce_entry·******78 ******·announce_entry·******
79 Declared·in·"libtorrent/announce_entry.hpp"79 Declared·in·"libtorrent/announce_entry.hpp"
80 this·class·holds·information·about·one·bittorrent·tracker,·as·it·relates·to·a80 this·class·holds·information·about·one·bittorrent·tracker,·as·it·relates·to·a
81 specific·torrent.81 specific·torrent.
82 struct·announce_entry82 struct·announce_entry
83 {83 {
84 ···explicit·announce_entry·(string_view·u);84 ···explicit·announce_entry·(string_view·u);
 85 ···announce_entry·(announce_entry·const&);
85 ···~announce_entry·();86 ···~announce_entry·();
86 ···announce_entry·(); 
87 ···announce_entry&·operator=·(announce_entry·const&)·&;87 ···announce_entry&·operator=·(announce_entry·const&)·&;
88 ···announce_entry·(announce_entry·const&);88 ···announce_entry·();
  
89 ···enum·tracker_source89 ···enum·tracker_source
90 ···{90 ···{
91 ······source_torrent,91 ······source_torrent,
92 ······source_client,92 ······source_client,
93 ······source_magnet_link,93 ······source_magnet_link,
94 ······source_tex,94 ······source_tex,
Offset 100, 20 lines modifiedOffset 100, 20 lines modified
100 ···std::vector<announce_endpoint>·endpoints;100 ···std::vector<announce_endpoint>·endpoints;
101 ···std::uint8_t·tier··=·0;101 ···std::uint8_t·tier··=·0;
102 ···std::uint8_t·fail_limit··=·0;102 ···std::uint8_t·fail_limit··=·0;
103 ···std::uint8_t·source:4;103 ···std::uint8_t·source:4;
104 ···bool·verified:1;104 ···bool·verified:1;
105 };105 };
106 [report_issue]106 [report_issue]
107 *****·operator=()·~announce_entry()·announce_entry()·*****107 *****·announce_entry()·operator=()·~announce_entry()·*****
108 explicit·announce_entry·(string_view·u);108 explicit·announce_entry·(string_view·u);
 109 announce_entry·(announce_entry·const&);
109 ~announce_entry·();110 ~announce_entry·();
110 announce_entry·(); 
111 announce_entry&·operator=·(announce_entry·const&)·&;111 announce_entry&·operator=·(announce_entry·const&)·&;
112 announce_entry·(announce_entry·const&);112 announce_entry·();
113 constructs·a·tracker·announce·entry·with·u·as·the·URL.113 constructs·a·tracker·announce·entry·with·u·as·the·URL.
114 [report_issue]114 [report_issue]
115 *****·enum·tracker_source·*****115 *****·enum·tracker_source·*****
116 Declared·in·"libtorrent/announce_entry.hpp"116 Declared·in·"libtorrent/announce_entry.hpp"
117 ·_____________________________________________________________________________117 ·_____________________________________________________________________________
118 |name______________|value|description_________________________________________|118 |name______________|value|description_________________________________________|
119 |source_torrent____|1____|the_tracker_was_part_of_the_.torrent_file___________|119 |source_torrent____|1____|the_tracker_was_part_of_the_.torrent_file___________|
17.9 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Utility.html
    
Offset 29, 32 lines modifiedOffset 29, 32 lines modified
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#hasher"·id="toc-entry-1">hasher</a><ul>35 <li><a·class="reference·internal"·href="#hasher"·id="toc-entry-1">hasher</a><ul>
36 <li><a·class="reference·internal"·href="#hasher-operator"·id="toc-entry-2">hasher()·operator=()</a></li>36 <li><a·class="reference·internal"·href="#operator-hasher"·id="toc-entry-2">operator=()·hasher()</a></li>
37 <li><a·class="reference·internal"·href="#update"·id="toc-entry-3">update()</a></li>37 <li><a·class="reference·internal"·href="#update"·id="toc-entry-3">update()</a></li>
38 <li><a·class="reference·internal"·href="#final"·id="toc-entry-4">final()</a></li>38 <li><a·class="reference·internal"·href="#final"·id="toc-entry-4">final()</a></li>
39 <li><a·class="reference·internal"·href="#reset"·id="toc-entry-5">reset()</a></li>39 <li><a·class="reference·internal"·href="#reset"·id="toc-entry-5">reset()</a></li>
40 </ul>40 </ul>
41 </li>41 </li>
42 <li><a·class="reference·internal"·href="#hasher256"·id="toc-entry-6">hasher256</a><ul>42 <li><a·class="reference·internal"·href="#hasher256"·id="toc-entry-6">hasher256</a><ul>
43 <li><a·class="reference·internal"·href="#hasher256-operator"·id="toc-entry-7">hasher256()·operator=()</a></li>43 <li><a·class="reference·internal"·href="#operator-hasher256"·id="toc-entry-7">operator=()·hasher256()</a></li>
44 <li><a·class="reference·internal"·href="#update-1"·id="toc-entry-8">update()</a></li>44 <li><a·class="reference·internal"·href="#update-1"·id="toc-entry-8">update()</a></li>
45 <li><a·class="reference·internal"·href="#final-1"·id="toc-entry-9">final()</a></li>45 <li><a·class="reference·internal"·href="#final-1"·id="toc-entry-9">final()</a></li>
46 <li><a·class="reference·internal"·href="#reset-1"·id="toc-entry-10">reset()</a></li>46 <li><a·class="reference·internal"·href="#reset-1"·id="toc-entry-10">reset()</a></li>
47 </ul>47 </ul>
48 </li>48 </li>
49 <li><a·class="reference·internal"·href="#bitfield"·id="toc-entry-11">bitfield</a><ul>49 <li><a·class="reference·internal"·href="#bitfield"·id="toc-entry-11">bitfield</a><ul>
50 <li><a·class="reference·internal"·href="#bitfield-1"·id="toc-entry-12">bitfield()</a></li>50 <li><a·class="reference·internal"·href="#bitfield-1"·id="toc-entry-12">bitfield()</a></li>
51 <li><a·class="reference·internal"·href="#assign"·id="toc-entry-13">assign()</a></li>51 <li><a·class="reference·internal"·href="#assign"·id="toc-entry-13">assign()</a></li>
52 <li><a·class="reference·internal"·href="#operator-get-bit"·id="toc-entry-14">operator[]()·get_bit()</a></li>52 <li><a·class="reference·internal"·href="#operator-get-bit"·id="toc-entry-14">operator[]()·get_bit()</a></li>
53 <li><a·class="reference·internal"·href="#clear-bit-set-bit"·id="toc-entry-15">clear_bit()·set_bit()</a></li>53 <li><a·class="reference·internal"·href="#set-bit-clear-bit"·id="toc-entry-15">set_bit()·clear_bit()</a></li>
54 <li><a·class="reference·internal"·href="#all-set"·id="toc-entry-16">all_set()</a></li>54 <li><a·class="reference·internal"·href="#all-set"·id="toc-entry-16">all_set()</a></li>
55 <li><a·class="reference·internal"·href="#none-set"·id="toc-entry-17">none_set()</a></li>55 <li><a·class="reference·internal"·href="#none-set"·id="toc-entry-17">none_set()</a></li>
56 <li><a·class="reference·internal"·href="#size"·id="toc-entry-18">size()</a></li>56 <li><a·class="reference·internal"·href="#size"·id="toc-entry-18">size()</a></li>
57 <li><a·class="reference·internal"·href="#num-words"·id="toc-entry-19">num_words()</a></li>57 <li><a·class="reference·internal"·href="#num-words"·id="toc-entry-19">num_words()</a></li>
58 <li><a·class="reference·internal"·href="#num-bytes"·id="toc-entry-20">num_bytes()</a></li>58 <li><a·class="reference·internal"·href="#num-bytes"·id="toc-entry-20">num_bytes()</a></li>
59 <li><a·class="reference·internal"·href="#empty"·id="toc-entry-21">empty()</a></li>59 <li><a·class="reference·internal"·href="#empty"·id="toc-entry-21">empty()</a></li>
60 <li><a·class="reference·internal"·href="#data"·id="toc-entry-22">data()</a></li>60 <li><a·class="reference·internal"·href="#data"·id="toc-entry-22">data()</a></li>
Offset 92, 17 lines modifiedOffset 92, 17 lines modified
92 ···hasher&amp;·<strong>operator=</strong>·(hasher·const&amp;)·&amp;;92 ···hasher&amp;·<strong>operator=</strong>·(hasher·const&amp;)·&amp;;
93 ···hasher&amp;·<strong>update</strong>·(char·const*·data,·int·len);93 ···hasher&amp;·<strong>update</strong>·(char·const*·data,·int·len);
94 ···hasher&amp;·<strong>update</strong>·(span&lt;char·const&gt;·data);94 ···hasher&amp;·<strong>update</strong>·(span&lt;char·const&gt;·data);
95 ···sha1_hash·<strong>final</strong>·();95 ···sha1_hash·<strong>final</strong>·();
96 ···void·<strong>reset</strong>·();96 ···void·<strong>reset</strong>·();
97 };97 };
98 </pre>98 </pre>
99 <a·name="hasher()"></a>99 <a·name="operator=()"></a>
100 <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher%3A%3A%5Bhasher%28%29+operator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher%3A%3A%5Bhasher%28%29+operator%3[·...·truncated·by·diffoscope;·len:·96,·SHA:·36d51a87dfd4d2218a813e6e7cacdbb9e78b747bc230cde409c1511e222e9b9a·...·]r">100 <a·name="hasher()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher%3A%3A%5Boperator%3D%28%29+hasher%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher%3A%3A%5Boperator%3D%28%29+hasher%2[·...·truncated·by·diffoscope;·len:·93,·SHA:·8710c47dee7c3fd1eb91d5e88cc176ae50de95a28e7d7d3823c89e6143f9591c·...·]r">
101 <h2>hasher()·operator=()</h2>101 <h2>operator=()·hasher()</h2>
102 <pre·class="literal-block">102 <pre·class="literal-block">
103 <strong>hasher</strong>·(hasher·const&amp;);103 <strong>hasher</strong>·(hasher·const&amp;);
104 explicit·<strong>hasher</strong>·(span&lt;char·const&gt;·data);104 explicit·<strong>hasher</strong>·(span&lt;char·const&gt;·data);
105 <strong>hasher</strong>·(char·const*·data,·int·len);105 <strong>hasher</strong>·(char·const*·data,·int·len);
106 hasher&amp;·<strong>operator=</strong>·(hasher·const&amp;)·&amp;;106 hasher&amp;·<strong>operator=</strong>·(hasher·const&amp;)·&amp;;
107 </pre>107 </pre>
108 <p>this·is·the·same·as·default·constructing·followed·by·a·call·to108 <p>this·is·the·same·as·default·constructing·followed·by·a·call·to
Offset 136, 33 lines modifiedOffset 136, 33 lines modified
136 <div·class="section"·id="hasher256">136 <div·class="section"·id="hasher256">
137 <h1>hasher256</h1>137 <h1>hasher256</h1>
138 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/hasher.hpp">libtorrent/hasher.hpp</a>&quot;</p>138 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/hasher.hpp">libtorrent/hasher.hpp</a>&quot;</p>
139 <pre·class="literal-block">139 <pre·class="literal-block">
140 class·hasher256140 class·hasher256
141 {141 {
142 ···<strong>hasher256</strong>·();142 ···<strong>hasher256</strong>·();
143 ···<strong>hasher256</strong>·(hasher256·const&amp;); 
144 ···explicit·<strong>hasher256</strong>·(span&lt;char·const&gt;·data); 
145 ···<strong>hasher256</strong>·(char·const*·data,·int·len);143 ···<strong>hasher256</strong>·(char·const*·data,·int·len);
 144 ···explicit·<strong>hasher256</strong>·(span&lt;char·const&gt;·data);
146 ···hasher256&amp;·<strong>operator=</strong>·(hasher256·const&amp;)·&amp;;145 ···hasher256&amp;·<strong>operator=</strong>·(hasher256·const&amp;)·&amp;;
 146 ···<strong>hasher256</strong>·(hasher256·const&amp;);
147 ···hasher256&amp;·<strong>update</strong>·(char·const*·data,·int·len);147 ···hasher256&amp;·<strong>update</strong>·(char·const*·data,·int·len);
148 ···hasher256&amp;·<strong>update</strong>·(span&lt;char·const&gt;·data);148 ···hasher256&amp;·<strong>update</strong>·(span&lt;char·const&gt;·data);
149 ···sha256_hash·<strong>final</strong>·();149 ···sha256_hash·<strong>final</strong>·();
150 ···void·<strong>reset</strong>·();150 ···void·<strong>reset</strong>·();
151 ···<strong>~hasher256</strong>·();151 ···<strong>~hasher256</strong>·();
152 };152 };
153 </pre>153 </pre>
154 <a·name="hasher256()"></a>154 <a·name="operator=()"></a>
155 <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher256%3A%3A%5Bhasher256%28%29+operator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher256%3A%3A%5Bhasher256%28%2[·...·truncated·by·diffoscope;·len:·112,·SHA:·77ab78e8433d4014c4b1a97dd0742c2bf067a1090fccaa106cee34451accb6f9·...·]">155 <a·name="hasher256()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher256%3A%3A%5Boperator%3D%28%29+hasher256%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher256%3A%3A%5Boperator%3D%28[·...·truncated·by·diffoscope;·len:·112,·SHA:·e7ed2c669437f8378c69c1cf5c3ede6855fb9680901d668757f065500461973d·...·]">
156 <h2>hasher256()·operator=()</h2>156 <h2>operator=()·hasher256()</h2>
157 <pre·class="literal-block">157 <pre·class="literal-block">
158 <strong>hasher256</strong>·(hasher256·const&amp;); 
159 explicit·<strong>hasher256</strong>·(span&lt;char·const&gt;·data); 
160 <strong>hasher256</strong>·(char·const*·data,·int·len);158 <strong>hasher256</strong>·(char·const*·data,·int·len);
 159 explicit·<strong>hasher256</strong>·(span&lt;char·const&gt;·data);
161 hasher256&amp;·<strong>operator=</strong>·(hasher256·const&amp;)·&amp;;160 hasher256&amp;·<strong>operator=</strong>·(hasher256·const&amp;)·&amp;;
 161 <strong>hasher256</strong>·(hasher256·const&amp;);
162 </pre>162 </pre>
163 <p>this·is·the·same·as·default·constructing·followed·by·a·call·to163 <p>this·is·the·same·as·default·constructing·followed·by·a·call·to
164 <tt·class="docutils·literal">update(data,·len)</tt>.</p>164 <tt·class="docutils·literal">update(data,·len)</tt>.</p>
165 <a·name="update()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher256%3A%3A%5Bupdate%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher256%3A%3A%5Bupdate%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>165 <a·name="update()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher256%3A%3A%5Bupdate%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher256%3A%3A%5Bupdate%28%29%5D%22+could+be+improved">report·issue</a>]</span></div>
166 <div·class="section"·id="update-1">166 <div·class="section"·id="update-1">
167 <h2>update()</h2>167 <h2>update()</h2>
168 <pre·class="literal-block">168 <pre·class="literal-block">
Offset 192, 25 lines modifiedOffset 192, 25 lines modified
192 <h1>bitfield</h1>192 <h1>bitfield</h1>
193 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/bitfield.hpp">libtorrent/bitfield.hpp</a>&quot;</p>193 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/bitfield.hpp">libtorrent/bitfield.hpp</a>&quot;</p>
194 <p>The·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>·type·stores·any·number·of·bits·as·a·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>194 <p>The·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>·type·stores·any·number·of·bits·as·a·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>
195 in·a·heap·allocated·array.</p>195 in·a·heap·allocated·array.</p>
196 <pre·class="literal-block">196 <pre·class="literal-block">
197 struct·bitfield197 struct·bitfield
198 {198 {
199 ···explicit·<strong>bitfield</strong>·(int·bits);199 ···<strong>bitfield</strong>·(bitfield&amp;&amp;·rhs)·noexcept·=·default;
200 ···<strong>bitfield</strong>·(char·const*·b,·int·bits);200 ···<strong>bitfield</strong>·(char·const*·b,·int·bits);
 201 ···explicit·<strong>bitfield</strong>·(int·bits);
201 ···<strong>bitfield</strong>·(bitfield·const&amp;·rhs);202 ···<strong>bitfield</strong>·(bitfield·const&amp;·rhs);
202 ···<strong>bitfield</strong>·(int·bits,·bool·val);203 ···<strong>bitfield</strong>·(int·bits,·bool·val);
203 ···<strong>bitfield</strong>·(bitfield&amp;&amp;·rhs)·noexcept·=·default; 
204 ···<strong>bitfield</strong>·()·noexcept·=·default;204 ···<strong>bitfield</strong>·()·noexcept·=·default;
205 ···void·<strong>assign</strong>·(char·const*·b,·int·const·bits);205 ···void·<strong>assign</strong>·(char·const*·b,·int·const·bits);
206 ···bool·<strong>operator[]</strong>·(int·index)·const·noexcept; 
207 ···bool·<strong>get_bit</strong>·(int·index)·const·noexcept;206 ···bool·<strong>get_bit</strong>·(int·index)·const·noexcept;
208 ···void·<strong>clear_bit</strong>·(int·index)·noexcept;207 ···bool·<strong>operator[]</strong>·(int·index)·const·noexcept;
209 ···void·<strong>set_bit</strong>·(int·index)·noexcept;208 ···void·<strong>set_bit</strong>·(int·index)·noexcept;
 209 ···void·<strong>clear_bit</strong>·(int·index)·noexcept;
210 ···bool·<strong>all_set</strong>·()·const·noexcept;210 ···bool·<strong>all_set</strong>·()·const·noexcept;
211 ···bool·<strong>none_set</strong>·()·const·noexcept;211 ···bool·<strong>none_set</strong>·()·const·noexcept;
212 ···int·<strong>size</strong>·()·const·noexcept;212 ···int·<strong>size</strong>·()·const·noexcept;
213 ···int·<strong>num_words</strong>·()·const·noexcept;213 ···int·<strong>num_words</strong>·()·const·noexcept;
214 ···int·<strong>num_bytes</strong>·()·const·noexcept;214 ···int·<strong>num_bytes</strong>·()·const·noexcept;
215 ···bool·<strong>empty</strong>·()·const·noexcept;215 ···bool·<strong>empty</strong>·()·const·noexcept;
216 ···char·const*·<strong>data</strong>·()·const·noexcept;216 ···char·const*·<strong>data</strong>·()·const·noexcept;
Offset 221, 19 lines modifiedOffset 221, 19 lines modified
221 ···int·<strong>find_last_clear</strong>·()·const·noexcept;221 ···int·<strong>find_last_clear</strong>·()·const·noexcept;
222 ···bool·<strong>operator==</strong>·(lt::bitfield·const&amp;·rhs)·const;222 ···bool·<strong>operator==</strong>·(lt::bitfield·const&amp;·rhs)·const;
223 };223 };
224 </pre>224 </pre>
225 <a·name="bitfield()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bbitfield%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bbitfield%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="bitfield-1">225 <a·name="bitfield()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bbitfield%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bbitfield%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="bitfield-1">
226 <h2>bitfield()</h2>226 <h2>bitfield()</h2>
227 <pre·class="literal-block">227 <pre·class="literal-block">
228 explicit·<strong>bitfield</strong>·(int·bits);228 <strong>bitfield</strong>·(bitfield&amp;&amp;·rhs)·noexcept·=·default;
229 <strong>bitfield</strong>·(char·const*·b,·int·bits);229 <strong>bitfield</strong>·(char·const*·b,·int·bits);
 230 explicit·<strong>bitfield</strong>·(int·bits);
Max diff block lines reached; 3542/12926 bytes (27.40%) of diff not shown.
5.13 KB
html2text {}
    
Offset 1, 26 lines modifiedOffset 1, 26 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
5 ····*·hasher5 ····*·hasher
6 ··········o·hasher()_operator=()6 ··········o·operator=()_hasher()
7 ··········o·update()7 ··········o·update()
8 ··········o·final()8 ··········o·final()
9 ··········o·reset()9 ··········o·reset()
10 ····*·hasher25610 ····*·hasher256
11 ··········o·hasher256()_operator=()11 ··········o·operator=()_hasher256()
12 ··········o·update()12 ··········o·update()
13 ··········o·final()13 ··········o·final()
14 ··········o·reset()14 ··········o·reset()
15 ····*·bitfield15 ····*·bitfield
16 ··········o·bitfield()16 ··········o·bitfield()
17 ··········o·assign()17 ··········o·assign()
18 ··········o·operator[]()_get_bit()18 ··········o·operator[]()_get_bit()
19 ··········o·clear_bit()_set_bit()19 ··········o·set_bit()_clear_bit()
20 ··········o·all_set()20 ··········o·all_set()
21 ··········o·none_set()21 ··········o·none_set()
22 ··········o·size()22 ··········o·size()
23 ··········o·num_words()23 ··········o·num_words()
24 ··········o·num_bytes()24 ··········o·num_bytes()
25 ··········o·empty()25 ··········o·empty()
26 ··········o·data()26 ··········o·data()
Offset 52, 15 lines modifiedOffset 52, 15 lines modified
52 ···hasher&·operator=·(hasher·const&)·&;52 ···hasher&·operator=·(hasher·const&)·&;
53 ···hasher&·update·(char·const*·data,·int·len);53 ···hasher&·update·(char·const*·data,·int·len);
54 ···hasher&·update·(span<char·const>·data);54 ···hasher&·update·(span<char·const>·data);
55 ···sha1_hash·final·();55 ···sha1_hash·final·();
56 ···void·reset·();56 ···void·reset·();
57 };57 };
58 [report_issue]58 [report_issue]
59 *****·hasher()·operator=()·*****59 *****·operator=()·hasher()·*****
60 hasher·(hasher·const&);60 hasher·(hasher·const&);
61 explicit·hasher·(span<char·const>·data);61 explicit·hasher·(span<char·const>·data);
62 hasher·(char·const*·data,·int·len);62 hasher·(char·const*·data,·int·len);
63 hasher&·operator=·(hasher·const&)·&;63 hasher&·operator=·(hasher·const&)·&;
64 this·is·the·same·as·default·constructing·followed·by·a·call·to·update(data,64 this·is·the·same·as·default·constructing·followed·by·a·call·to·update(data,
65 len).65 len).
66 [report_issue]66 [report_issue]
Offset 80, 30 lines modifiedOffset 80, 30 lines modified
80 constructed.80 constructed.
81 [report_issue]81 [report_issue]
82 ******·hasher256·******82 ******·hasher256·******
83 Declared·in·"libtorrent/hasher.hpp"83 Declared·in·"libtorrent/hasher.hpp"
84 class·hasher25684 class·hasher256
85 {85 {
86 ···hasher256·();86 ···hasher256·();
87 ···hasher256·(hasher256·const&); 
88 ···explicit·hasher256·(span<char·const>·data); 
89 ···hasher256·(char·const*·data,·int·len);87 ···hasher256·(char·const*·data,·int·len);
 88 ···explicit·hasher256·(span<char·const>·data);
90 ···hasher256&·operator=·(hasher256·const&)·&;89 ···hasher256&·operator=·(hasher256·const&)·&;
 90 ···hasher256·(hasher256·const&);
91 ···hasher256&·update·(char·const*·data,·int·len);91 ···hasher256&·update·(char·const*·data,·int·len);
92 ···hasher256&·update·(span<char·const>·data);92 ···hasher256&·update·(span<char·const>·data);
93 ···sha256_hash·final·();93 ···sha256_hash·final·();
94 ···void·reset·();94 ···void·reset·();
95 ···~hasher256·();95 ···~hasher256·();
96 };96 };
97 [report_issue]97 [report_issue]
 98 *****·operator=()·hasher256()·*****
98 *****·hasher256()·operator=()·***** 
99 hasher256·(hasher256·const&); 
100 explicit·hasher256·(span<char·const>·data); 
101 hasher256·(char·const*·data,·int·len);99 hasher256·(char·const*·data,·int·len);
 100 explicit·hasher256·(span<char·const>·data);
102 hasher256&·operator=·(hasher256·const&)·&;101 hasher256&·operator=·(hasher256·const&)·&;
 102 hasher256·(hasher256·const&);
103 this·is·the·same·as·default·constructing·followed·by·a·call·to·update(data,103 this·is·the·same·as·default·constructing·followed·by·a·call·to·update(data,
104 len).104 len).
105 [report_issue]105 [report_issue]
106 *****·update()·*****106 *****·update()·*****
107 hasher256&·update·(char·const*·data,·int·len);107 hasher256&·update·(char·const*·data,·int·len);
108 hasher256&·update·(span<char·const>·data);108 hasher256&·update·(span<char·const>·data);
109 append·the·following·bytes·to·what·is·being·hashed109 append·the·following·bytes·to·what·is·being·hashed
Offset 120, 25 lines modifiedOffset 120, 25 lines modified
120 [report_issue]120 [report_issue]
121 ******·bitfield·******121 ******·bitfield·******
122 Declared·in·"libtorrent/bitfield.hpp"122 Declared·in·"libtorrent/bitfield.hpp"
123 The·bitfield·type·stores·any·number·of·bits·as·a·bitfield·in·a·heap·allocated123 The·bitfield·type·stores·any·number·of·bits·as·a·bitfield·in·a·heap·allocated
124 array.124 array.
125 struct·bitfield125 struct·bitfield
126 {126 {
127 ···explicit·bitfield·(int·bits);127 ···bitfield·(bitfield&&·rhs)·noexcept·=·default;
128 ···bitfield·(char·const*·b,·int·bits);128 ···bitfield·(char·const*·b,·int·bits);
 129 ···explicit·bitfield·(int·bits);
129 ···bitfield·(bitfield·const&·rhs);130 ···bitfield·(bitfield·const&·rhs);
130 ···bitfield·(int·bits,·bool·val);131 ···bitfield·(int·bits,·bool·val);
131 ···bitfield·(bitfield&&·rhs)·noexcept·=·default; 
132 ···bitfield·()·noexcept·=·default;132 ···bitfield·()·noexcept·=·default;
133 ···void·assign·(char·const*·b,·int·const·bits);133 ···void·assign·(char·const*·b,·int·const·bits);
134 ···bool·operator[]·(int·index)·const·noexcept; 
135 ···bool·get_bit·(int·index)·const·noexcept;134 ···bool·get_bit·(int·index)·const·noexcept;
136 ···void·clear_bit·(int·index)·noexcept;135 ···bool·operator[]·(int·index)·const·noexcept;
137 ···void·set_bit·(int·index)·noexcept;136 ···void·set_bit·(int·index)·noexcept;
 137 ···void·clear_bit·(int·index)·noexcept;
138 ···bool·all_set·()·const·noexcept;138 ···bool·all_set·()·const·noexcept;
139 ···bool·none_set·()·const·noexcept;139 ···bool·none_set·()·const·noexcept;
140 ···int·size·()·const·noexcept;140 ···int·size·()·const·noexcept;
141 ···int·num_words·()·const·noexcept;141 ···int·num_words·()·const·noexcept;
142 ···int·num_bytes·()·const·noexcept;142 ···int·num_bytes·()·const·noexcept;
143 ···bool·empty·()·const·noexcept;143 ···bool·empty·()·const·noexcept;
144 ···char·const*·data·()·const·noexcept;144 ···char·const*·data·()·const·noexcept;
Offset 147, 40 lines modifiedOffset 147, 40 lines modified
147 ···int·count·()·const·noexcept;147 ···int·count·()·const·noexcept;
148 ···int·find_first_set·()·const·noexcept;148 ···int·find_first_set·()·const·noexcept;
149 ···int·find_last_clear·()·const·noexcept;149 ···int·find_last_clear·()·const·noexcept;
150 ···bool·operator==·(lt::bitfield·const&·rhs)·const;150 ···bool·operator==·(lt::bitfield·const&·rhs)·const;
151 };151 };
152 [report_issue]152 [report_issue]
153 *****·bitfield()·*****153 *****·bitfield()·*****
154 explicit·bitfield·(int·bits);154 bitfield·(bitfield&&·rhs)·noexcept·=·default;
155 bitfield·(char·const*·b,·int·bits);155 bitfield·(char·const*·b,·int·bits);
 156 explicit·bitfield·(int·bits);
156 bitfield·(bitfield·const&·rhs);157 bitfield·(bitfield·const&·rhs);
157 bitfield·(int·bits,·bool·val);158 bitfield·(int·bits,·bool·val);
158 bitfield·(bitfield&&·rhs)·noexcept·=·default; 
159 bitfield·()·noexcept·=·default;159 bitfield·()·noexcept·=·default;
160 constructs·a·new·bitfield.·The·default·constructor·creates·an·empty·bitfield.160 constructs·a·new·bitfield.·The·default·constructor·creates·an·empty·bitfield.
161 bits·is·the·size·of·the·bitfield·(specified·in·bits).·val·is·the·value·to161 bits·is·the·size·of·the·bitfield·(specified·in·bits).·val·is·the·value·to
162 initialize·the·bits·to.·If·not·specified·all·bits·are·initialized·to·0.162 initialize·the·bits·to.·If·not·specified·all·bits·are·initialized·to·0.
163 The·constructor·taking·a·pointer·b·and·bits·copies·a·bitfield·from·the163 The·constructor·taking·a·pointer·b·and·bits·copies·a·bitfield·from·the
164 specified·buffer,·and·bits·number·of·bits·(rounded·up·to·the·nearest·byte164 specified·buffer,·and·bits·number·of·bits·(rounded·up·to·the·nearest·byte
165 boundary).165 boundary).
Max diff block lines reached; 822/5233 bytes (15.71%) of diff not shown.
2.77 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference-ed25519.html
Ordering differences only
    
Offset 84, 18 lines modifiedOffset 84, 18 lines modified
84 </pre>84 </pre>
85 <p>Verifies·the·signature·on·the·given·message·using·<tt·class="docutils·literal">pk</tt></p>85 <p>Verifies·the·signature·on·the·given·message·using·<tt·class="docutils·literal">pk</tt></p>
86 <a·name="ed25519_add_scalar()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:ed25519_add_scalar%28%29&labels=documentation&body=Documentation+under+heading+%22ed25519_add_scalar%28%29%22+could+be+improved">report·issue</a>]</span></div>86 <a·name="ed25519_add_scalar()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:ed25519_add_scalar%28%29&labels=documentation&body=Documentation+under+heading+%22ed25519_add_scalar%28%29%22+could+be+improved">report·issue</a>]</span></div>
87 <div·class="section"·id="ed25519-add-scalar">87 <div·class="section"·id="ed25519-add-scalar">
88 <h1>ed25519_add_scalar()</h1>88 <h1>ed25519_add_scalar()</h1>
89 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/kademlia/ed25519.hpp">libtorrent/kademlia/ed25519.hpp</a>&quot;</p>89 <p>Declared·in·&quot;<a·class="reference·external"·href="include/libtorrent/kademlia/ed25519.hpp">libtorrent/kademlia/ed25519.hpp</a>&quot;</p>
90 <pre·class="literal-block">90 <pre·class="literal-block">
91 public_key·<strong>ed25519_add_scalar</strong>·(public_key·const&amp;·pk 
92 ···,·std::array&lt;char,·32&gt;·const&amp;·scalar); 
93 secret_key·<strong>ed25519_add_scalar</strong>·(secret_key·const&amp;·sk91 secret_key·<strong>ed25519_add_scalar</strong>·(secret_key·const&amp;·sk
94 ···,·std::array&lt;char,·32&gt;·const&amp;·scalar);92 ···,·std::array&lt;char,·32&gt;·const&amp;·scalar);
 93 public_key·<strong>ed25519_add_scalar</strong>·(public_key·const&amp;·pk
 94 ···,·std::array&lt;char,·32&gt;·const&amp;·scalar);
95 </pre>95 </pre>
96 <p>Adds·a·scalar·to·the·given·key·pair·where·scalar·is·a·32·byte·buffer96 <p>Adds·a·scalar·to·the·given·key·pair·where·scalar·is·a·32·byte·buffer
97 (possibly·generated·with·<cite>ed25519_create_seed</cite>),·generating·a·new·key·pair.</p>97 (possibly·generated·with·<cite>ed25519_create_seed</cite>),·generating·a·new·key·pair.</p>
98 <p>You·can·calculate·the·public·key·sum·without·knowing·the·private·key·and98 <p>You·can·calculate·the·public·key·sum·without·knowing·the·private·key·and
99 vice·versa·by·passing·in·null·for·the·key·you·don't·know.·This·is·useful99 vice·versa·by·passing·in·null·for·the·key·you·don't·know.·This·is·useful
100 when·a·third·party·(an·authoritative·server·for·example)·needs·to·enforce100 when·a·third·party·(an·authoritative·server·for·example)·needs·to·enforce
101 randomness·on·a·key·pair·while·only·knowing·the·public·key·of·the·other101 randomness·on·a·key·pair·while·only·knowing·the·public·key·of·the·other
1.13 KB
html2text {}
    
Offset 38, 18 lines modifiedOffset 38, 18 lines modified
38 Declared·in·"libtorrent/kademlia/ed25519.hpp"38 Declared·in·"libtorrent/kademlia/ed25519.hpp"
39 bool·ed25519_verify·(signature·const&·sig39 bool·ed25519_verify·(signature·const&·sig
40 ···,·span<char·const>·msg,·public_key·const&·pk);40 ···,·span<char·const>·msg,·public_key·const&·pk);
41 Verifies·the·signature·on·the·given·message·using·pk41 Verifies·the·signature·on·the·given·message·using·pk
42 [report_issue]42 [report_issue]
43 ******·ed25519_add_scalar()·******43 ******·ed25519_add_scalar()·******
44 Declared·in·"libtorrent/kademlia/ed25519.hpp"44 Declared·in·"libtorrent/kademlia/ed25519.hpp"
45 public_key·ed25519_add_scalar·(public_key·const&·pk 
46 ···,·std::array<char,·32>·const&·scalar); 
47 secret_key·ed25519_add_scalar·(secret_key·const&·sk45 secret_key·ed25519_add_scalar·(secret_key·const&·sk
48 ···,·std::array<char,·32>·const&·scalar);46 ···,·std::array<char,·32>·const&·scalar);
 47 public_key·ed25519_add_scalar·(public_key·const&·pk
 48 ···,·std::array<char,·32>·const&·scalar);
49 Adds·a·scalar·to·the·given·key·pair·where·scalar·is·a·32·byte·buffer·(possibly49 Adds·a·scalar·to·the·given·key·pair·where·scalar·is·a·32·byte·buffer·(possibly
50 generated·withed25519_create_seed),·generating·a·new·key·pair.50 generated·withed25519_create_seed),·generating·a·new·key·pair.
51 You·can·calculate·the·public·key·sum·without·knowing·the·private·key·and·vice51 You·can·calculate·the·public·key·sum·without·knowing·the·private·key·and·vice
52 versa·by·passing·in·null·for·the·key·you·don't·know.·This·is·useful·when·a52 versa·by·passing·in·null·for·the·key·you·don't·know.·This·is·useful·when·a
53 third·party·(an·authoritative·server·for·example)·needs·to·enforce·randomness53 third·party·(an·authoritative·server·for·example)·needs·to·enforce·randomness
54 on·a·key·pair·while·only·knowing·the·public·key·of·the·other·side.54 on·a·key·pair·while·only·knowing·the·public·key·of·the·other·side.
55 Warning:·the·last·bit·of·the·scalar·is·ignored·-·if·comparing·scalars·make·sure55 Warning:·the·last·bit·of·the·scalar·is·ignored·-·if·comparing·scalars·make·sure
36.8 KB
./usr/share/doc/libtorrent-rasterbar-doc/html/reference.html
Ordering differences only
    
Offset 19, 228 lines modifiedOffset 19, 229 lines modified
19 ····<img·src="img/logo-color-text.png"·alt="libtorrent·logo"/>19 ····<img·src="img/logo-color-text.png"·alt="libtorrent·logo"/>
20 ····</a>20 ····</a>
21 ····<div>21 ····<div>
22 <h1·class="title">reference·documentation</h1>22 <h1·class="title">reference·documentation</h1>
  
23 <p><a·class="reference·external"·href="single-page-ref.html">single-page·version</a></p>23 <p><a·class="reference·external"·href="single-page-ref.html">single-page·version</a></p>
24 <div·class="main-toc·docutils·container">24 <div·class="main-toc·docutils·container">
25 <p·class="rubric">Add·Torrent</p>25 <p·class="rubric">Core</p>
26 <div·class="line-block">26 <div·class="line-block">
 27 <div·class="line"><a·class="reference·external"·href="reference-Core.html#piece_block">piece_block</a></div>
 28 <div·class="line"><a·class="reference·external"·href="reference-Core.html#info_hash_t">info_hash_t</a></div>
 29 <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_info">peer_info</a></div>
 30 <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_request">peer_request</a></div>
 31 <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_peer_equal()">torrent_peer_equal()</a></div>
 32 <div·class="line"><a·class="reference·external"·href="reference-Core.html#make_magnet_uri()">make_magnet_uri()</a></div>
 33 <div·class="line"><a·class="reference·external"·href="reference-Core.html#parse_magnet_uri()">parse_magnet_uri()</a></div>
 34 <div·class="line"><a·class="reference·external"·href="reference-Core.html#truncate_files()">truncate_files()</a></div>
 35 <div·class="line"><a·class="reference·external"·href="reference-Core.html#version()">version()</a></div>
27 <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a></div>36 <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_parsed()">load_torrent_parsed()</a></div>
 37 <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_file()">load_torrent_file()</a></div>
 38 <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_buffer()">load_torrent_buffer()</a></div>
 39 <div·class="line"><a·class="reference·external"·href="reference-Core.html#protocol_version">protocol_version</a></div>
 40 <div·class="line"><a·class="reference·external"·href="reference-Core.html#socket_type_t">socket_type_t</a></div>
 41 <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_transport">portmap_transport</a></div>
 42 <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_protocol">portmap_protocol</a></div>
28 <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#client_data_t">client_data_t</a></div>43 <div·class="line"><a·class="reference·external"·href="reference-Core.html#event_t">event_t</a></div>
 44 <div·class="line"><a·class="reference·external"·href="reference-Core.html#connection_type">connection_type</a></div>
 45 <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_flags_t">torrent_flags_t</a></div>
 46 <div·class="line"><a·class="reference·external"·href="reference-Core.html#pex_flags_t">pex_flags_t</a></div>
 47 <div·class="line"><a·class="reference·external"·href="reference-Core.html#download_priority_t">download_priority_t</a></div>
 48 <div·class="line"><a·class="reference·external"·href="reference-Core.html#int">int</a></div>
 49 <div·class="line"><a·class="reference·external"·href="reference-Core.html#charconst*">char·const*</a></div>
 50 <div·class="line"><a·class="reference·external"·href="reference-Core.html#std::uint64_t">std::uint64_t</a></div>
29 </div>51 </div>
30 <p·class="rubric">Settings</p>52 <p·class="rubric">Torrent·Handle</p>
31 <div·class="line-block">53 <div·class="line-block">
32 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#overview">overview</a></div>54 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#block_info">block_info</a></div>
33 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a></div>55 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#partial_piece_info">partial_piece_info</a></div>
 56 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#torrent_handle">torrent_handle</a></div>
34 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#setting_by_name()">setting_by_name()</a></div>57 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#hash_value()">hash_value()</a></div>
35 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#name_for_setting()">name_for_setting()</a></div> 
36 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#default_settings()">default_settings()</a></div> 
37 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#high_performance_seed()">high_performance_seed()</a></div> 
38 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#min_memory_usage()">min_memory_usage()</a></div> 
39 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#generate_fingerprint()">generate_fingerprint()</a></div> 
40 </div>58 </div>
41 <p·class="rubric">Torrent·Info</p>59 <p·class="rubric">Torrent·Info</p>
42 <div·class="line-block">60 <div·class="line-block">
43 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#web_seed_entry">web_seed_entry</a></div>61 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#web_seed_entry">web_seed_entry</a></div>
44 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#load_torrent_limits">load_torrent_limits</a></div>62 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#load_torrent_limits">load_torrent_limits</a></div>
45 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a></div>63 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a></div>
46 </div>64 </div>
47 <p·class="rubric">Torrent·Handle</p> 
48 <div·class="line-block"> 
49 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#block_info">block_info</a></div> 
50 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#partial_piece_info">partial_piece_info</a></div> 
51 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#torrent_handle">torrent_handle</a></div> 
52 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#hash_value()">hash_value()</a></div> 
53 </div> 
54 <p·class="rubric">Session</p>65 <p·class="rubric">Session</p>
55 <div·class="line-block">66 <div·class="line-block">
56 <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a></div>67 <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a></div>
57 <div·class="line"><a·class="reference·external"·href="reference-Session.html#session">session</a></div>68 <div·class="line"><a·class="reference·external"·href="reference-Session.html#session">session</a></div>
58 <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_params">session_params</a></div>69 <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_params">session_params</a></div>
59 <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_handle">session_handle</a></div>70 <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_handle">session_handle</a></div>
60 <div·class="line"><a·class="reference·external"·href="reference-Session.html#read_session_params()">read_session_params()</a></div> 
61 <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params()">write_session_params()</a></div> 
62 <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params_buf()">write_session_params_buf()</a></div>71 <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params_buf()">write_session_params_buf()</a></div>
 72 <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params()">write_session_params()</a></div>
 73 <div·class="line"><a·class="reference·external"·href="reference-Session.html#read_session_params()">read_session_params()</a></div>
63 </div>74 </div>
64 <p·class="rubric">Stats</p>75 <p·class="rubric">Stats</p>
65 <div·class="line-block">76 <div·class="line-block">
66 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#counters">counters</a></div> 
67 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#stats_metric">stats_metric</a></div>77 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#stats_metric">stats_metric</a></div>
 78 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#counters">counters</a></div>
68 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#session_stats_metrics()">session_stats_metrics()</a></div>79 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#session_stats_metrics()">session_stats_metrics()</a></div>
69 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#find_metric_idx()">find_metric_idx()</a></div>80 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#find_metric_idx()">find_metric_idx()</a></div>
70 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#metric_type_t">metric_type_t</a></div>81 <div·class="line"><a·class="reference·external"·href="reference-Stats.html#metric_type_t">metric_type_t</a></div>
71 </div>82 </div>
 83 <p·class="rubric">Add·Torrent</p>
 84 <div·class="line-block">
 85 <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#client_data_t">client_data_t</a></div>
 86 <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a></div>
 87 </div>
72 <p·class="rubric">Trackers</p>88 <p·class="rubric">Trackers</p>
73 <div·class="line-block">89 <div·class="line-block">
74 <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_infohash">announce_infohash</a></div>90 <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_infohash">announce_infohash</a></div>
75 <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_endpoint">announce_endpoint</a></div>91 <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_endpoint">announce_endpoint</a></div>
76 <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_entry">announce_entry</a></div>92 <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_entry">announce_entry</a></div>
77 </div>93 </div>
78 <p·class="rubric">Core</p> 
79 <div·class="line-block"> 
80 <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_request">peer_request</a></div> 
81 <div·class="line"><a·class="reference·external"·href="reference-Core.html#piece_block">piece_block</a></div> 
82 <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_info">peer_info</a></div> 
83 <div·class="line"><a·class="reference·external"·href="reference-Core.html#info_hash_t">info_hash_t</a></div> 
84 <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_buffer()">load_torrent_buffer()</a></div> 
85 <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_file()">load_torrent_file()</a></div> 
86 <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_parsed()">load_torrent_parsed()</a></div> 
87 <div·class="line"><a·class="reference·external"·href="reference-Core.html#truncate_files()">truncate_files()</a></div> 
88 <div·class="line"><a·class="reference·external"·href="reference-Core.html#make_magnet_uri()">make_magnet_uri()</a></div> 
89 <div·class="line"><a·class="reference·external"·href="reference-Core.html#parse_magnet_uri()">parse_magnet_uri()</a></div> 
90 <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_peer_equal()">torrent_peer_equal()</a></div> 
91 <div·class="line"><a·class="reference·external"·href="reference-Core.html#version()">version()</a></div> 
92 <div·class="line"><a·class="reference·external"·href="reference-Core.html#event_t">event_t</a></div> 
93 <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_transport">portmap_transport</a></div> 
94 <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_protocol">portmap_protocol</a></div> 
95 <div·class="line"><a·class="reference·external"·href="reference-Core.html#protocol_version">protocol_version</a></div> 
96 <div·class="line"><a·class="reference·external"·href="reference-Core.html#socket_type_t">socket_type_t</a></div> 
97 <div·class="line"><a·class="reference·external"·href="reference-Core.html#connection_type">connection_type</a></div> 
98 <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_flags_t">torrent_flags_t</a></div> 
99 <div·class="line"><a·class="reference·external"·href="reference-Core.html#int">int</a></div> 
100 <div·class="line"><a·class="reference·external"·href="reference-Core.html#pex_flags_t">pex_flags_t</a></div> 
101 <div·class="line"><a·class="reference·external"·href="reference-Core.html#charconst*">char·const*</a></div> 
102 <div·class="line"><a·class="reference·external"·href="reference-Core.html#std::uint64_t">std::uint64_t</a></div> 
103 <div·class="line"><a·class="reference·external"·href="reference-Core.html#download_priority_t">download_priority_t</a></div> 
104 </div> 
105 <p·class="rubric">Torrent·Status</p>94 <p·class="rubric">Torrent·Status</p>
106 <div·class="line-block">95 <div·class="line-block">
107 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Status.html#torrent_status">torrent_status</a></div>96 <div·class="line"><a·class="reference·external"·href="reference-Torrent_Status.html#torrent_status">torrent_status</a></div>
108 </div>97 </div>
 98 <p·class="rubric">Settings</p>
 99 <div·class="line-block">
 100 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#overview">overview</a></div>
 101 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a></div>
 102 <div·class="line"><a·class="reference·external"·href="reference-Settings.html#high_performance_seed()">high_performance_seed()</a></div>
Max diff block lines reached; 19852/32792 bytes (60.54%) of diff not shown.
4.67 KB
html2text {}
    
Offset 1, 173 lines modifiedOffset 1, 174 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 ******·reference·documentation·******2 ******·reference·documentation·******
3 single-page_version3 single-page_version
4 Add·Torrent4 Core
 5 piece_block
 6 info_hash_t
 7 peer_info
 8 peer_request
 9 torrent_peer_equal()
 10 make_magnet_uri()
 11 parse_magnet_uri()
 12 truncate_files()
 13 version()
5 add_torrent_params14 load_torrent_parsed()
6 client_data_t 
7 Settings 
8 overview 
9 settings_pack 
10 setting_by_name() 
11 name_for_setting() 
12 default_settings() 
13 high_performance_seed() 
14 min_memory_usage() 
15 generate_fingerprint() 
16 Torrent·Info 
17 web_seed_entry 
18 load_torrent_limits 
19 torrent_info15 load_torrent_file()
 16 load_torrent_buffer()
 17 protocol_version
 18 socket_type_t
 19 portmap_transport
 20 portmap_protocol
 21 event_t
 22 connection_type
 23 torrent_flags_t
 24 pex_flags_t
 25 download_priority_t
 26 int
 27 char_const*
 28 std::uint64_t
20 Torrent·Handle29 Torrent·Handle
21 block_info30 block_info
22 partial_piece_info31 partial_piece_info
23 torrent_handle32 torrent_handle
24 hash_value()33 hash_value()
 34 Torrent·Info
 35 web_seed_entry
 36 load_torrent_limits
 37 torrent_info
25 Session38 Session
26 session_proxy39 session_proxy
27 session40 session
28 session_params41 session_params
29 session_handle42 session_handle
30 read_session_params() 
31 write_session_params() 
32 write_session_params_buf()43 write_session_params_buf()
 44 write_session_params()
 45 read_session_params()
33 Stats46 Stats
34 counters 
35 stats_metric47 stats_metric
 48 counters
36 session_stats_metrics()49 session_stats_metrics()
37 find_metric_idx()50 find_metric_idx()
38 metric_type_t51 metric_type_t
 52 Add·Torrent
 53 client_data_t
 54 add_torrent_params
39 Trackers55 Trackers
40 announce_infohash56 announce_infohash
41 announce_endpoint57 announce_endpoint
42 announce_entry58 announce_entry
43 Core 
44 peer_request 
45 piece_block 
46 peer_info 
47 info_hash_t 
48 load_torrent_buffer() 
49 load_torrent_file() 
50 load_torrent_parsed() 
51 truncate_files() 
52 make_magnet_uri() 
53 parse_magnet_uri() 
54 torrent_peer_equal() 
55 version() 
56 event_t 
57 portmap_transport 
58 portmap_protocol 
59 protocol_version 
60 socket_type_t 
61 connection_type 
62 torrent_flags_t 
63 int 
64 pex_flags_t 
65 char_const* 
66 std::uint64_t 
67 download_priority_t 
68 Torrent·Status59 Torrent·Status
69 torrent_status60 torrent_status
 61 Settings
 62 overview
 63 settings_pack
 64 high_performance_seed()
 65 min_memory_usage()
 66 generate_fingerprint()
 67 name_for_setting()
 68 setting_by_name()
 69 default_settings()
70 DHT70 DHT
71 dht_state 
72 dht_storage_counters71 dht_storage_counters
73 dht_storage_interface72 dht_storage_interface
 73 dht_state
74 dht_default_storage_constructor()74 dht_default_storage_constructor()
75 sign_mutable_item()75 sign_mutable_item()
76 announce_flags_t76 announce_flags_t
77 Resume·Data77 Resume·Data
78 read_resume_data()78 read_resume_data()
79 write_resume_data()79 write_resume_data()
80 write_resume_data_buf()80 write_resume_data_buf()
81 write_torrent_file_buf() 
82 write_torrent_file()81 write_torrent_file()
 82 write_torrent_file_buf()
83 write_torrent_flags_t83 write_torrent_flags_t
84 Create·Torrents 
Max diff block lines reached; 2455/4761 bytes (51.56%) of diff not shown.
3.11 MB
./usr/share/doc/libtorrent-rasterbar-doc/html/single-page-ref.html
    
Offset 28, 18971 lines modifiedOffset 28, 17642 lines modified
28 <td>2.0.11</td></tr>28 <td>2.0.11</td></tr>
29 </tbody>29 </tbody>
30 </table>30 </table>
31 <p><a·class="reference·external"·href="reference.html">home</a></p>31 <p><a·class="reference·external"·href="reference.html">home</a></p>
32 <div·class="contents·topic"·id="table-of-contents">32 <div·class="contents·topic"·id="table-of-contents">
33 <p·class="topic-title">Table·of·contents</p>33 <p·class="topic-title">Table·of·contents</p>
34 <ul·class="simple">34 <ul·class="simple">
35 <li><a·class="reference·internal"·href="#a-word-of-caution"·id="toc-entry-1">a·word·of·caution</a></li> 
36 <li><a·class="reference·internal"·href="#plugin-interface"·id="toc-entry-2">plugin-interface</a></li>35 <li><a·class="reference·internal"·href="#piece-block"·id="toc-entry-1">piece_block</a></li>
37 <li><a·class="reference·internal"·href="#custom-alerts"·id="toc-entry-3">custom·alerts</a></li> 
38 <li><a·class="reference·internal"·href="#peer-connection-handle"·id="toc-entry-4">peer_connection_handle</a></li> 
39 <li><a·class="reference·internal"·href="#bt-peer-connection-handle"·id="toc-entry-5">bt_peer_connection_handle</a></li> 
40 <li><a·class="reference·internal"·href="#plugin"·id="toc-entry-6">plugin</a><ul>36 <li><a·class="reference·internal"·href="#info-hash-t"·id="toc-entry-2">info_hash_t</a><ul>
41 <li><a·class="reference·internal"·href="#implemented-features"·id="toc-entry-7">implemented_features()</a></li> 
42 <li><a·class="reference·internal"·href="#new-torrent"·id="toc-entry-8">new_torrent()</a></li>37 <li><a·class="reference·internal"·href="#info-hash-t-1"·id="toc-entry-3">info_hash_t()</a></li>
 38 <li><a·class="reference·internal"·href="#has-v1-has-has-v2"·id="toc-entry-4">has_v1()·has()·has_v2()</a></li>
43 <li><a·class="reference·internal"·href="#added"·id="toc-entry-9">added()</a></li>39 <li><a·class="reference·internal"·href="#get"·id="toc-entry-5">get()</a></li>
44 <li><a·class="reference·internal"·href="#abort"·id="toc-entry-10">abort()</a></li>40 <li><a·class="reference·internal"·href="#get-best"·id="toc-entry-6">get_best()</a></li>
45 <li><a·class="reference·internal"·href="#on-dht-request"·id="toc-entry-11">on_dht_request()</a></li> 
46 <li><a·class="reference·internal"·href="#on-alert"·id="toc-entry-12">on_alert()</a></li> 
47 <li><a·class="reference·internal"·href="#on-unknown-torrent"·id="toc-entry-13">on_unknown_torrent()</a></li> 
48 <li><a·class="reference·internal"·href="#on-tick"·id="toc-entry-14">on_tick()</a></li>41 <li><a·class="reference·internal"·href="#for-each"·id="toc-entry-7">for_each()</a></li>
49 <li><a·class="reference·internal"·href="#get-unchoke-priority"·id="toc-entry-15">get_unchoke_priority()</a></li> 
50 <li><a·class="reference·internal"·href="#load-state"·id="toc-entry-16">load_state()</a></li> 
51 </ul>42 </ul>
52 </li>43 </li>
53 <li><a·class="reference·internal"·href="#torrent-plugin"·id="toc-entry-17">torrent_plugin</a><ul> 
54 <li><a·class="reference·internal"·href="#new-connection"·id="toc-entry-18">new_connection()</a></li> 
55 <li><a·class="reference·internal"·href="#on-piece-failed-on-piece-pass"·id="toc-entry-19">on_piece_failed()·on_piece_pass()</a></li> 
56 <li><a·class="reference·internal"·href="#tick"·id="toc-entry-20">tick()</a></li> 
57 <li><a·class="reference·internal"·href="#on-resume-on-pause"·id="toc-entry-21">on_resume()·on_pause()</a></li> 
58 <li><a·class="reference·internal"·href="#on-files-checked"·id="toc-entry-22">on_files_checked()</a></li> 
59 <li><a·class="reference·internal"·href="#on-state"·id="toc-entry-23">on_state()</a></li> 
60 <li><a·class="reference·internal"·href="#on-add-peer"·id="toc-entry-24">on_add_peer()</a></li>44 <li><a·class="reference·internal"·href="#peer-info"·id="toc-entry-8">peer_info</a><ul>
 45 <li><a·class="reference·internal"·href="#i2p-destination"·id="toc-entry-9">i2p_destination()</a></li>
61 </ul>46 </ul>
62 </li>47 </li>
63 <li><a·class="reference·internal"·href="#peer-plugin"·id="toc-entry-25">peer_plugin</a><ul> 
64 <li><a·class="reference·internal"·href="#type"·id="toc-entry-26">type()</a></li> 
65 <li><a·class="reference·internal"·href="#add-handshake"·id="toc-entry-27">add_handshake()</a></li> 
66 <li><a·class="reference·internal"·href="#on-disconnect"·id="toc-entry-28">on_disconnect()</a></li> 
67 <li><a·class="reference·internal"·href="#on-connected"·id="toc-entry-29">on_connected()</a></li> 
68 <li><a·class="reference·internal"·href="#on-handshake"·id="toc-entry-30">on_handshake()</a></li> 
69 <li><a·class="reference·internal"·href="#on-extension-handshake"·id="toc-entry-31">on_extension_handshake()</a></li> 
70 <li><a·class="reference·internal"·href="#on-interested-on-dont-have-on-unchoke-on-not-interested-on-choke-on-request-on-have-on-allowed-fast-on-have-all-on-have-none-on-bitfield"·id="toc-entry-32">on_interested()·on_dont_have()·on_unchoke()·on_not_interested()·on_choke()·on_request()·on_have()·on_allowed_fast()·on_have_all()·on_have_none()·on_bitfield()</a></li> 
71 <li><a·class="reference·internal"·href="#on-piece"·id="toc-entry-33">on_piece()</a></li> 
72 <li><a·class="reference·internal"·href="#sent-not-interested-sent-piece-sent-interested-sent-have-sent-unchoke"·id="toc-entry-34">sent_not_interested()·sent_piece()·sent_interested()·sent_have()·sent_unchoke()</a></li> 
73 <li><a·class="reference·internal"·href="#sent-payload"·id="toc-entry-35">sent_payload()</a></li> 
74 <li><a·class="reference·internal"·href="#can-disconnect"·id="toc-entry-36">can_disconnect()</a></li> 
75 <li><a·class="reference·internal"·href="#on-extended"·id="toc-entry-37">on_extended()</a></li> 
76 <li><a·class="reference·internal"·href="#on-unknown-message"·id="toc-entry-38">on_unknown_message()</a></li> 
77 <li><a·class="reference·internal"·href="#on-piece-failed-on-piece-pass-1"·id="toc-entry-39">on_piece_failed()·on_piece_pass()</a></li> 
78 <li><a·class="reference·internal"·href="#tick-1"·id="toc-entry-40">tick()</a></li> 
79 <li><a·class="reference·internal"·href="#write-request"·id="toc-entry-41">write_request()</a></li>48 <li><a·class="reference·internal"·href="#peer-request"·id="toc-entry-10">peer_request</a><ul>
 49 <li><a·class="reference·internal"·href="#operator"·id="toc-entry-11">operator==()</a></li>
80 </ul>50 </ul>
81 </li>51 </li>
 52 <li><a·class="reference·internal"·href="#torrent-peer-equal"·id="toc-entry-12">torrent_peer_equal()</a></li>
 53 <li><a·class="reference·internal"·href="#make-magnet-uri"·id="toc-entry-13">make_magnet_uri()</a></li>
 54 <li><a·class="reference·internal"·href="#parse-magnet-uri"·id="toc-entry-14">parse_magnet_uri()</a></li>
 55 <li><a·class="reference·internal"·href="#truncate-files"·id="toc-entry-15">truncate_files()</a></li>
82 <li><a·class="reference·internal"·href="#crypto-plugin"·id="toc-entry-42">crypto_plugin</a><ul>56 <li><a·class="reference·internal"·href="#version"·id="toc-entry-16">version()</a></li>
 57 <li><a·class="reference·internal"·href="#load-torrent-file-load-torrent-buffer-load-torrent-parsed"·id="toc-entry-17">load_torrent_file()·load_torrent_buffer()·load_torrent_parsed()</a></li>
 58 <li><a·class="reference·internal"·href="#enum-protocol-version"·id="toc-entry-18">enum·protocol_version</a></li>
 59 <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-19">enum·socket_type_t</a></li>
 60 <li><a·class="reference·internal"·href="#enum-portmap-transport"·id="toc-entry-20">enum·portmap_transport</a></li>
 61 <li><a·class="reference·internal"·href="#enum-portmap-protocol"·id="toc-entry-21">enum·portmap_protocol</a></li>
 62 <li><a·class="reference·internal"·href="#enum-event-t"·id="toc-entry-22">enum·event_t</a></li>
 63 <li><a·class="reference·internal"·href="#enum-connection-type"·id="toc-entry-23">enum·connection_type</a></li>
 64 <li><a·class="reference·internal"·href="#torrent-flags-t"·id="toc-entry-24">torrent_flags_t</a></li>
 65 <li><a·class="reference·internal"·href="#pex-flags-t"·id="toc-entry-25">pex_flags_t</a></li>
 66 <li><a·class="reference·internal"·href="#download-priority-t"·id="toc-entry-26">download_priority_t</a></li>
83 <li><a·class="reference·internal"·href="#decrypt"·id="toc-entry-43">decrypt()</a></li>67 <li><a·class="reference·internal"·href="#int"·id="toc-entry-27">int</a></li>
 68 <li><a·class="reference·internal"·href="#char-const"·id="toc-entry-28">char·const*</a></li>
 69 <li><a·class="reference·internal"·href="#std-uint64-t"·id="toc-entry-29">std::uint64_t</a></li>
 70 <li><a·class="reference·internal"·href="#block-info"·id="toc-entry-30">block_info</a><ul>
 71 <li><a·class="reference·internal"·href="#peer-set-peer"·id="toc-entry-31">peer()·set_peer()</a></li>
 72 <li><a·class="reference·internal"·href="#enum-block-state-t"·id="toc-entry-32">enum·block_state_t</a></li>
84 </ul>73 </ul>
85 </li>74 </li>
 75 <li><a·class="reference·internal"·href="#partial-piece-info"·id="toc-entry-33">partial_piece_info</a></li>
 76 <li><a·class="reference·internal"·href="#torrent-handle"·id="toc-entry-34">torrent_handle</a><ul>
 77 <li><a·class="reference·internal"·href="#torrent-handle-1"·id="toc-entry-35">torrent_handle()</a></li>
 78 <li><a·class="reference·internal"·href="#add-piece"·id="toc-entry-36">add_piece()</a></li>
86 <li><a·class="reference·internal"·href="#create-ut-pex-plugin"·id="toc-entry-44">create_ut_pex_plugin()</a></li>79 <li><a·class="reference·internal"·href="#read-piece"·id="toc-entry-37">read_piece()</a></li>
 80 <li><a·class="reference·internal"·href="#have-piece"·id="toc-entry-38">have_piece()</a></li>
 81 <li><a·class="reference·internal"·href="#get-peer-info-post-peer-info"·id="toc-entry-39">get_peer_info()·post_peer_info()</a></li>
 82 <li><a·class="reference·internal"·href="#post-status-status"·id="toc-entry-40">post_status()·status()</a></li>
 83 <li><a·class="reference·internal"·href="#post-download-queue-get-download-queue"·id="toc-entry-41">post_download_queue()·get_download_queue()</a></li>
 84 <li><a·class="reference·internal"·href="#reset-piece-deadline-clear-piece-deadlines-set-piece-deadline"·id="toc-entry-42">reset_piece_deadline()·clear_piece_deadlines()·set_piece_deadline()</a></li>
 85 <li><a·class="reference·internal"·href="#file-progress-post-file-progress"·id="toc-entry-43">file_progress()·post_file_progress()</a></li>
87 <li><a·class="reference·internal"·href="#create-smart-ban-plugin"·id="toc-entry-45">create_smart_ban_plugin()</a></li>86 <li><a·class="reference·internal"·href="#file-status"·id="toc-entry-44">file_status()</a></li>
 87 <li><a·class="reference·internal"·href="#clear-error"·id="toc-entry-45">clear_error()</a></li>
 88 <li><a·class="reference·internal"·href="#trackers-replace-trackers-add-tracker-post-trackers"·id="toc-entry-46">trackers()·replace_trackers()·add_tracker()·post_trackers()</a></li>
 89 <li><a·class="reference·internal"·href="#remove-url-seed-url-seeds-add-url-seed"·id="toc-entry-47">remove_url_seed()·url_seeds()·add_url_seed()</a></li>
 90 <li><a·class="reference·internal"·href="#http-seeds-remove-http-seed-add-http-seed"·id="toc-entry-48">http_seeds()·remove_http_seed()·add_http_seed()</a></li>
 91 <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-49">add_extension()</a></li>
88 <li><a·class="reference·internal"·href="#create-ut-metadata-plugin"·id="toc-entry-46">create_ut_metadata_plugin()</a></li>92 <li><a·class="reference·internal"·href="#set-metadata"·id="toc-entry-50">set_metadata()</a></li>
 93 <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-51">is_valid()</a></li>
 94 <li><a·class="reference·internal"·href="#pause-resume"·id="toc-entry-52">pause()·resume()</a></li>
 95 <li><a·class="reference·internal"·href="#unset-flags-set-flags-flags"·id="toc-entry-53">unset_flags()·set_flags()·flags()</a></li>
 96 <li><a·class="reference·internal"·href="#flush-cache"·id="toc-entry-54">flush_cache()</a></li>
 97 <li><a·class="reference·internal"·href="#force-recheck"·id="toc-entry-55">force_recheck()</a></li>
 98 <li><a·class="reference·internal"·href="#save-resume-data"·id="toc-entry-56">save_resume_data()</a></li>
 99 <li><a·class="reference·internal"·href="#need-save-resume-data"·id="toc-entry-57">need_save_resume_data()</a></li>
 100 <li><a·class="reference·internal"·href="#queue-position-bottom-queue-position-top-queue-position-down-queue-position-up-queue-position"·id="toc-entry-58">queue_position_bottom()·queue_position_top()·queue_position_down()·queue_position_up()·queue_position()</a></li>
 101 <li><a·class="reference·internal"·href="#queue-position-set"·id="toc-entry-59">queue_position_set()</a></li>
 102 <li><a·class="reference·internal"·href="#set-ssl-certificate-set-ssl-certificate-buffer"·id="toc-entry-60">set_ssl_certificate()·set_ssl_certificate_buffer()</a></li>
 103 <li><a·class="reference·internal"·href="#torrent-file-torrent-file-with-hashes"·id="toc-entry-61">torrent_file()·torrent_file_with_hashes()</a></li>
 104 <li><a·class="reference·internal"·href="#piece-layers"·id="toc-entry-62">piece_layers()</a></li>
 105 <li><a·class="reference·internal"·href="#post-piece-availability-piece-availability"·id="toc-entry-63">post_piece_availability()·piece_availability()</a></li>
 106 <li><a·class="reference·internal"·href="#piece-priority-prioritize-pieces-get-piece-priorities"·id="toc-entry-64">piece_priority()·prioritize_pieces()·get_piece_priorities()</a></li>
 107 <li><a·class="reference·internal"·href="#file-priority-prioritize-files-get-file-priorities"·id="toc-entry-65">file_priority()·prioritize_files()·get_file_priorities()</a></li>
 108 <li><a·class="reference·internal"·href="#force-reannounce-force-lsd-announce-force-dht-announce"·id="toc-entry-66">force_reannounce()·force_lsd_announce()·force_dht_announce()</a></li>
 109 <li><a·class="reference·internal"·href="#scrape-tracker"·id="toc-entry-67">scrape_tracker()</a></li>
 110 <li><a·class="reference·internal"·href="#upload-limit-set-upload-limit-download-limit-set-download-limit"·id="toc-entry-68">upload_limit()·set_upload_limit()·download_limit()·set_download_limit()</a></li>
 111 <li><a·class="reference·internal"·href="#connect-peer"·id="toc-entry-69">connect_peer()</a></li>
89 <li><a·class="reference·internal"·href="#add-torrent-params"·id="toc-entry-47">add_torrent_params</a></li>112 <li><a·class="reference·internal"·href="#clear-peers"·id="toc-entry-70">clear_peers()</a></li>
 113 <li><a·class="reference·internal"·href="#max-uploads-set-max-uploads"·id="toc-entry-71">max_uploads()·set_max_uploads()</a></li>
 114 <li><a·class="reference·internal"·href="#max-connections-set-max-connections"·id="toc-entry-72">max_connections()·set_max_connections()</a></li>
 115 <li><a·class="reference·internal"·href="#move-storage"·id="toc-entry-73">move_storage()</a></li>
 116 <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-74">rename_file()</a></li>
 117 <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-75">info_hash()·info_hashes()</a></li>
 118 <li><a·class="reference·internal"·href="#operator-operator-operator"·id="toc-entry-76">operator!=()·operator&lt;()·operator==()</a></li>
90 <li><a·class="reference·internal"·href="#client-data-t"·id="toc-entry-48">client_data_t</a><ul>119 <li><a·class="reference·internal"·href="#id"·id="toc-entry-77">id()</a></li>
 120 <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-78">native_handle()</a></li>
91 <li><a·class="reference·internal"·href="#client-data-t-1"·id="toc-entry-49">client_data_t()</a></li>121 <li><a·class="reference·internal"·href="#userdata"·id="toc-entry-79">userdata()</a></li>
Max diff block lines reached; 2520974/2536081 bytes (99.40%) of diff not shown.
704 KB
html2text {}
    
Offset 1, 248 lines modifiedOffset 1, 162 lines modified
1 [libtorrent_logo]1 [libtorrent_logo]
2 Version:·2.0.112 Version:·2.0.11
3 home3 home
4 Table·of·contents4 Table·of·contents
 5 ····*·piece_block
 6 ····*·info_hash_t
5 ····*·a_word_of_caution 
6 ····*·plugin-interface 
7 ····*·custom_alerts 
8 ····*·peer_connection_handle 
9 ····*·bt_peer_connection_handle 
10 ····*·plugin 
11 ··········o·implemented_features() 
12 ··········o·new_torrent() 
13 ··········o·added() 
14 ··········o·abort() 
15 ··········o·on_dht_request() 
16 ··········o·on_alert() 
17 ··········o·on_unknown_torrent() 
18 ··········o·on_tick() 
19 ··········o·get_unchoke_priority() 
20 ··········o·load_state() 
21 ····*·torrent_plugin 
22 ··········o·new_connection() 
23 ··········o·on_piece_failed()_on_piece_pass() 
24 ··········o·tick() 
25 ··········o·on_resume()_on_pause() 
26 ··········o·on_files_checked() 
27 ··········o·on_state() 
28 ··········o·on_add_peer() 
29 ····*·peer_plugin 
30 ··········o·type() 
31 ··········o·add_handshake() 
32 ··········o·on_disconnect() 
33 ··········o·on_connected() 
34 ··········o·on_handshake()7 ··········o·info_hash_t()
 8 ··········o·has_v1()_has()_has_v2()
35 ··········o·on_extension_handshake() 
36 ··········o·on_interested()_on_dont_have()_on_unchoke()_on_not_interested()_on_ 
37 ············choke()_on_request()_on_have()_on_allowed_fast()_on_have_all()_on_ 
38 ············have_none()_on_bitfield() 
39 ··········o·on_piece() 
40 ··········o·sent_not_interested()_sent_piece()_sent_interested()_sent_have() 
41 ············sent_unchoke() 
42 ··········o·sent_payload() 
43 ··········o·can_disconnect() 
44 ··········o·on_extended() 
45 ··········o·on_unknown_message() 
46 ··········o·on_piece_failed()_on_piece_pass() 
47 ··········o·tick() 
48 ··········o·write_request() 
49 ····*·crypto_plugin 
50 ··········o·decrypt() 
51 ····*·create_ut_pex_plugin() 
52 ····*·create_smart_ban_plugin() 
53 ····*·create_ut_metadata_plugin() 
54 ····*·add_torrent_params 
55 ····*·client_data_t 
56 ··········o·client_data_t() 
57 ··········o·const*()_operator=()_void*() 
58 ····*·settings_interface 
59 ····*·buffer_allocator_interface 
60 ····*·disk_buffer_holder 
61 ··········o·disk_buffer_holder() 
62 ··········o·disk_buffer_holder() 
63 ··········o·~disk_buffer_holder() 
64 ··········o·data() 
65 ··········o·reset()9 ··········o·get()
66 ··········o·swap() 
67 ··········o·is_mutable() 
68 ··········o·bool() 
69 ····*·open_file_state 
70 ····*·disk_interface 
71 ··········o·new_torrent() 
72 ··········o·remove_torrent() 
73 ··········o·async_read()_async_write() 
74 ··········o·async_hash() 
75 ··········o·async_hash2() 
76 ··········o·async_move_storage() 
77 ··········o·async_release_files() 
78 ··········o·async_check_files() 
79 ··········o·async_stop_torrent() 
80 ··········o·async_rename_file() 
81 ··········o·async_delete_files() 
82 ··········o·async_set_file_priority() 
83 ··········o·async_clear_piece() 
84 ··········o·update_stats_counters() 
85 ··········o·get_status()10 ··········o·get_best()
86 ··········o·abort()11 ··········o·for_each()
 12 ····*·peer_info
 13 ··········o·i2p_destination()
 14 ····*·peer_request
87 ··········o·submit_jobs() 
88 ··········o·settings_updated() 
89 ····*·storage_holder 
90 ····*·disk_observer 
91 ··········o·on_disk() 
92 ····*·file_open_mode_t 
93 ····*·settings_pack 
94 ··········o·set_int()_set_bool()_set_str() 
95 ··········o·has_val() 
96 ··········o·clear() 
97 ··········o·clear() 
98 ··········o·get_int()_get_bool()_get_str() 
99 ··········o·enum_type_bases 
100 ··········o·enum_mmap_write_mode_t 
101 ··········o·enum_suggest_mode_t 
102 ··········o·enum_choking_algorithm_t 
103 ··········o·enum_seed_choking_algorithm_t 
104 ··········o·enum_io_buffer_mode_t 
105 ··········o·enum_bandwidth_mixed_algo_t 
106 ··········o·enum_enc_policy 
107 ··········o·enum_enc_level 
108 ··········o·enum_proxy_type_t 
109 ····*·setting_by_name()_name_for_setting() 
110 ····*·default_settings() 
111 ····*·high_performance_seed()_min_memory_usage() 
112 ····*·generate_fingerprint() 
113 ····*·create_torrent 
114 ··········o·create_torrent() 
115 ··········o·generate_buf()_generate() 
116 ··········o·files() 
117 ··········o·set_comment() 
118 ··········o·set_creator() 
119 ··········o·set_creation_date() 
120 ··········o·set_hash() 
121 ··········o·set_hash2() 
Max diff block lines reached; 716998/721367 bytes (99.39%) of diff not shown.
3.83 MB
./usr/share/doc/libtorrent-rasterbar-doc/html/todo.html
    
Offset 459, 338 lines modifiedOffset 459, 67 lines modified
459 »       auto·o·=·rpc.allocate_observer&lt;null_observer&gt;(std::move(algo),·source,·node_id());459 »       auto·o·=·rpc.allocate_observer&lt;null_observer&gt;(std::move(algo),·source,·node_id());
460 #if·TORRENT_USE_ASSERTS460 #if·TORRENT_USE_ASSERTS
461 »       o-&gt;m_in_constructor·=·false;461 »       o-&gt;m_in_constructor·=·false;
462 #endif462 #endif
463 »       o-&gt;flags·|=·observer::flag_queried;463 »       o-&gt;flags·|=·observer::flag_queried;
464 »       rpc.invoke(req,·source,·o);464 »       rpc.invoke(req,·source,·o);
  
 465 </pre></td></tr><tr·style="background:·#fcc"><td>relevance&nbsp;3</td><td><a·href="javascript:expand(9)">../src/session_handle.cpp:691</a></td><td>expose·the·sequence_number,·public_key,·secret_key·and·signature·types·to·the·client</td></tr><tr·id="9"·style="display:·none;"·colspan="3"><td·colspan="3"><h2>expose·the·sequence_number,·public_key,·secret_key·and·signature
 466 types·to·the·client</h2><h4>../src/session_handle.cpp:691</h4><pre·style="background:·#f6f6f6;·border:·solid·1px·#ddd;">»void·session_handle::dht_get_item(sha1_hash·const&amp;·target)
465 </pre></td></tr><tr·style="background:·#fcc"><td>relevance&nbsp;3</td><td><a·href="javascript:expand(9)">../src/ut_metadata.cpp:268</a></td><td>use·the·aux::write_*·functions·and·the·span·here·instead,·it·will·fit·better·with·send_buffer()</td></tr><tr·id="9"·style="display:·none;"·colspan="3"><td·colspan="3"><h2>use·the·aux::write_*·functions·and·the·span·here·instead,·it 
466 will·fit·better·with·send_buffer()</h2><h4>../src/ut_metadata.cpp:268</h4><pre·style="background:·#f6f6f6;·border:·solid·1px·#ddd;">»     »     »     int·metadata_piece_size·=·0; 
  
467 »       »       »       if·(m_torrent.valid_metadata()) 
468 »       »       »       »       e["total_size"]·=·m_tp.metadata().size(); 
  
469 »       »       »       if·(type·==·msg_t::piece) 
470 »       »       »       { 
471 »       »       »       »       TORRENT_ASSERT(piece·&gt;=·0·&amp;&amp;·piece·&lt;·(m_tp.metadata().size()·+·16·*·1024·-·1)·/·(16·*·1024)); 
472 »       »       »       »       TORRENT_ASSERT(m_pc.associated_torrent().lock()-&gt;valid_metadata()); 
473 »       »       »       »       TORRENT_ASSERT(m_torrent.valid_metadata()); 
  
474 »       »       »       »       int·const·offset·=·piece·*·16·*·1024; 
475 »       »       »       »       metadata·=·m_tp.metadata().data()·+·offset; 
476 »       »       »       »       metadata_piece_size·=·std::min( 
477 »       »       »       »       »       int(m_tp.metadata().size())·-·offset,·16·*·1024); 
478 »       »       »       »       TORRENT_ASSERT(metadata_piece_size·&gt;·0); 
479 »       »       »       »       TORRENT_ASSERT(offset·&gt;=·0); 
480 »       »       »       »       TORRENT_ASSERT(offset·+·metadata_piece_size·&lt;=·m_tp.metadata().size()); 
481 »       »       »       } 
  
482 <div·style="background:·#ffff00"·width="100%">»    »    »    char·msg[200]; 
483 </div>» » » char*·header·=·msg; 
484 »       »       »       char*·p·=·&amp;msg[6]; 
485 »       »       »       int·const·len·=·bencode(p,·e); 
486 »       »       »       int·const·total_size·=·2·+·len·+·metadata_piece_size; 
487 »       »       »       namespace·io·=·aux; 
488 »       »       »       io::write_uint32(total_size,·header); 
489 »       »       »       io::write_uint8(bt_peer_connection::msg_extended,·header); 
490 »       »       »       io::write_uint8(m_message_index,·header); 
  
491 »       »       »       m_pc.send_buffer({msg,·len·+·6}); 
492 </pre></td></tr><tr·style="background:·#fcc"><td>relevance&nbsp;3</td><td><a·href="javascript:expand(10)">../src/torrent.cpp:419</a></td><td>we·could·probably·get·away·with·just·saving·a·few·fields·here</td></tr><tr·id="10"·style="display:·none;"·colspan="3"><td·colspan="3"><h2>we·could·probably·get·away·with·just·saving·a·few·fields·here</h2><h4>../src/torrent.cpp:419</h4><pre·style="background:·#f6f6f6;·border:·solid·1px·#ddd;">» » //·---·V2·HASHES·--- 
  
493 »       »       if·(m_torrent_file-&gt;is_valid()·&amp;&amp;·m_torrent_file-&gt;info_hashes().has_v2()) 
494 »       »       { 
495 »       »       »       if·(!p.merkle_trees.empty()) 
496 »       »       »       »       load_merkle_trees( 
497 »       »       »       »       »       std::move(p.merkle_trees) 
498 »       »       »       »       »       ,·std::move(p.merkle_tree_mask) 
499 »       »       »       »       »       ,·std::move(p.verified_leaf_hashes)); 
  
500 »       »       »       //·we·really·don't·want·to·store·extra·copies·of·the·trees 
501 »       »       »       TORRENT_ASSERT(p.merkle_trees.empty()); 
502 »       »       } 
  
503 »       »       if·(valid_metadata()) 
504 »       »       { 
505 »       »       »       inc_stats_counter(counters::num_total_pieces_added 
506 »       »       »       »       ,·m_torrent_file-&gt;num_pieces()); 
507 »       »       } 
  
508 <div·style="background:·#ffff00"·width="100%">»    »    m_add_torrent_params·=·std::make_unique&lt;add_torrent_params&gt;(std::move(p)); 
509 </div>» } 
  
510 »       void·torrent::load_merkle_trees( 
511 »       »       aux::vector&lt;std::vector&lt;sha256_hash&gt;,·file_index_t&gt;·trees_import 
512 »       »       ,·aux::vector&lt;std::vector&lt;bool&gt;,·file_index_t&gt;·mask 
513 »       »       ,·aux::vector&lt;std::vector&lt;bool&gt;,·file_index_t&gt;·verified) 
514 »       { 
515 »       »       auto·const&amp;·fs·=·m_torrent_file-&gt;orig_files(); 
  
516 »       »       std::vector&lt;bool&gt;·const·empty_verified; 
517 »       »       for·(file_index_t·i{0};·i·&lt;·fs.end_file();·++i) 
518 »       »       { 
519 »       »       »       if·(fs.pad_file_at(i)·||·fs.file_size(i)·==·0) 
520 »       »       »       »       continue; 
  
521 »       »       »       if·(i·&gt;=·trees_import.end_index())·break; 
522 »       »       »       std::vector&lt;bool&gt;·const&amp;·verified_bitmask·=·(i·&gt;=·verified.end_index())·?·empty_verified·:·verified[i]; 
523 »       »       »       if·(i·&lt;·mask.end_index()·&amp;&amp;·!mask[i].empty()) 
524 »       »       »       { 
525 »       »       »       »       mask[i].resize(m_merkle_trees[i].size(),·false); 
526 »       »       »       »       m_merkle_trees[i].load_sparse_tree(trees_import[i],·mask[i],·verified_bitmask); 
527 »       »       »       } 
528 »       »       »       else 
529 »       »       »       { 
530 »       »       »       »       m_merkle_trees[i].load_tree(trees_import[i],·verified_bitmask); 
531 »       »       »       } 
532 »       »       } 
533 »       } 
  
534 »       void·torrent::inc_stats_counter(int·c,·int·value) 
535 </pre></td></tr><tr·style="background:·#fcc"><td>relevance&nbsp;3</td><td><a·href="javascript:expand(11)">../src/torrent.cpp:715</a></td><td>assert·there·are·no·outstanding·async·operations·on·this·torrent</td></tr><tr·id="11"·style="display:·none;"·colspan="3"><td·colspan="3"><h2>assert·there·are·no·outstanding·async·operations·on·this 
536 torrent</h2><h4>../src/torrent.cpp:715</h4><pre·style="background:·#f6f6f6;·border:·solid·1px·#ddd;">#endif 
  
537 »       »       if·(!m_ses.dht())·return·false; 
538 »       »       if·(m_torrent_file-&gt;is_valid()·&amp;&amp;·!m_files_checked)·return·false; 
539 »       »       if·(!m_announce_to_dht)·return·false; 
540 »       »       if·(m_paused)·return·false; 
  
541 »       »       //·don't·announce·private·torrents 
542 »       »       if·(m_torrent_file-&gt;is_valid()·&amp;&amp;·m_torrent_file-&gt;priv())·return·false; 
543 »       »       if·(m_trackers.empty())·return·true; 
544 »       »       if·(!settings().get_bool(settings_pack::use_dht_as_fallback))·return·true; 
  
545 »       »       return·std::none_of(m_trackers.begin(),·m_trackers.end() 
546 »       »       »       ,·[](aux::announce_entry·const&amp;·tr)·{·return·bool(tr.verified);·}); 
547 »       } 
  
548 #endif 
  
549 »       torrent::~torrent() 
550 »       {467 »       {
 468 #ifndef·TORRENT_DISABLE_DHT
 469 »       »       async_call(&amp;session_impl::dht_get_immutable_item,·target);
 470 #else
 471 »       »       TORRENT_UNUSED(target);
551 <div·style="background:·#ffff00"·width="100%"> 
552 </div>#if·TORRENT_USE_ASSERTS 
553 »       »       for·(torrent_list_index_t·i{};·i·!=·m_links.end_index();·++i) 
554 »       »       { 
555 »       »       »       if·(!m_links[i].in_list())·continue; 
556 »       »       »       m_links[i].unlink(m_ses.torrent_list(i),·i); 
557 »       »       } 
558 #endif472 #endif
  
559 »       »       //·The·invariant·can't·be·maintained·here,·since·the·torrent 
Max diff block lines reached; 724425/732599 bytes (98.88%) of diff not shown.
3.13 MB
html2text {}
    
Offset 542, 436 lines modifiedOffset 542, 81 lines modified
542 |······································································································································································|542 |······································································································································································|
543 |»      auto·o·=·rpc.allocate_observer<null_observer>(std::move(algo),·source,·node_id());···················································································|543 |»      auto·o·=·rpc.allocate_observer<null_observer>(std::move(algo),·source,·node_id());···················································································|
544 |#if·TORRENT_USE_ASSERTS···············································································································································|544 |#if·TORRENT_USE_ASSERTS···············································································································································|
545 |»      o->m_in_constructor·=·false;·········································································································································|545 |»      o->m_in_constructor·=·false;·········································································································································|
546 |#endif································································································································································|546 |#endif································································································································································|
547 |»      o->flags·|=·observer::flag_queried;··································································································································|547 |»      o->flags·|=·observer::flag_queried;··································································································································|
548 |»      rpc.invoke(req,_source,_o);__________________________________________________________________________________________________________________________________________|548 |»      rpc.invoke(req,_source,_o);__________________________________________________________________________________________________________________________________________|
549 |·····································································|·······························································································||se549 |·····································································|·······························································································||xpose
550 |·····································································|·······························································································||he550 |·····································································|·······························································································||he
 551 |·····································································|·······························································································||equence_
551 |·····································································|·······························································································||ux::552 |·····································································|·······························································································||umber,
 553 |·····································································|·······························································································||ublic_
552 |·····································································|·······························································································||rite_554 |·····································································|·······························································································||ey,
 555 |relevance 3··························································|../src/session_handle.cpp:691··································································||ecret_
553 |·····································································|·······························································································||556 |·····································································|·······························································································||ey
554 |·····································································|·······························································································||unctions 
555 |·····································································|·······························································································||nd557 |·····································································|·······························································································||nd
 558 |·····································································|·······························································································||ignature
 559 |·····································································|·······························································································||ypes
 560 |·····································································|·······························································································||o
556 |·····································································|·······························································································||he561 |·····································································|·······························································································||he
557 |·····································································|·······························································································||pan 
558 |relevance 3··························································|../src/ut_metadata.cpp:268·····································································||ere 
559 |·····································································|·······························································································||nstead, 
560 |·····································································|·······························································································||t 
561 |·····································································|·······························································································||ill 
562 |·····································································|·······························································································||it 
563 |·····································································|·······························································································||etter 
564 |·····································································|·······························································································||ith 
565 |·····································································|·······························································································||end_ 
566 |·····································································|·······························································································||uffer 
567 |_____________________________________________________________________|_______________________________________________________________________________________________||) 
568 |*****·use·the·aux::write_*·functions·and·the·span·here·instead,·it·will·fit·better·with·send_buffer()·*****···························································| 
569 |***·../src/ut_metadata.cpp:268·***····································································································································| 
570 |int·metadata_piece_size·=·0;··········································································································································| 
571 |······································································································································································| 
572 |»      »      »      if·(m_torrent.valid_metadata())····································································································································| 
573 |»      »      »      »      e["total_size"]·=·m_tp.metadata().size();·························································································································| 
574 |······································································································································································| 
575 |»      »      »      if·(type·==·msg_t::piece)··········································································································································| 
576 |»      »      »      {··································································································································································| 
577 |»      »      »      »      TORRENT_ASSERT(piece·>=·0·&&·piece·<·(m_tp.metadata().size()·+·16·*·1024·-·1)·/·(16·*·1024));·····································································| 
578 |»      »      »      »      TORRENT_ASSERT(m_pc.associated_torrent().lock()->valid_metadata());·······························································································| 
579 |»      »      »      »      TORRENT_ASSERT(m_torrent.valid_metadata());·······················································································································| 
580 |······································································································································································| 
581 |»      »      »      »      int·const·offset·=·piece·*·16·*·1024;·····························································································································| 
582 |»      »      »      »      metadata·=·m_tp.metadata().data()·+·offset;·······················································································································| 
583 |»      »      »      »      metadata_piece_size·=·std::min(···································································································································| 
584 |»      »      »      »      »      int(m_tp.metadata().size())·-·offset,·16·*·1024);················································································································| 
585 |»      »      »      »      TORRENT_ASSERT(metadata_piece_size·>·0);··························································································································| 
586 |»      »      »      »      TORRENT_ASSERT(offset·>=·0);······································································································································| 
587 |»      »      »      »      TORRENT_ASSERT(offset·+·metadata_piece_size·<=·m_tp.metadata().size());···························································································| 
588 |»      »      »      }··································································································································································| 
589 |······································································································································································| 
590 |char·msg[200];························································································································································| 
591 |char*·header·=·msg;···················································································································································| 
592 |»      »      »      char*·p·=·&msg[6];·················································································································································| 
593 |»      »      »      int·const·len·=·bencode(p,·e);·····································································································································| 
594 |»      »      »      int·const·total_size·=·2·+·len·+·metadata_piece_size;··············································································································| 
595 |»      »      »      namespace·io·=·aux;················································································································································| 
596 |»      »      »      io::write_uint32(total_size,·header);······························································································································| 
597 |»      »      »      io::write_uint8(bt_peer_connection::msg_extended,·header);·········································································································| 
598 |»      »      »      io::write_uint8(m_message_index,·header);··························································································································| 
599 |······································································································································································| 
600 |»      »      »      m_pc.send_buffer({msg,_len_+_6});__________________________________________________________________________________________________________________________________| 
601 |·····································································|·······························································································||e 
602 |·····································································|·······························································································||ould 
603 |·····································································|·······························································································||robably 
604 |·····································································|·······························································································||et 
605 |·····································································|·······························································································||way 
606 |relevance 3··························································|../src/torrent.cpp:419·········································································||ith 
607 |·····································································|·······························································································||ust 
608 |·····································································|·······························································································||aving 
609 |·····································································|·······························································································|| 
610 |·····································································|·······························································································||ew 
611 |·····································································|·······························································································||ields 
612 |_____________________________________________________________________|_______________________________________________________________________________________________||ere562 |_____________________________________________________________________|_______________________________________________________________________________________________||lient
613 |*****·we·could·probably·get·away·with·just·saving·a·few·fields·here·*****·····························································································|563 |*****·expose·the·sequence_number,·public_key,·secret_key·and·signature·types·to·the·client·*****······································································|
614 |***·../src/torrent.cpp:419·***········································································································································|564 |***·../src/session_handle.cpp:691·***·································································································································|
 565 |void·session_handle::dht_get_item(sha1_hash·const&·target)············································································································|
615 |//·---·V2·HASHES·---··················································································································································| 
616 |······································································································································································| 
617 |»      »      if·(m_torrent_file->is_valid()·&&·m_torrent_file->info_hashes().has_v2())···························································································| 
618 |»      »      {···································································································································································| 
619 |»      »      »      if·(!p.merkle_trees.empty())·······································································································································| 
620 |»      »      »      »      load_merkle_trees(················································································································································| 
621 |»      »      »      »      »      std::move(p.merkle_trees)········································································································································| 
622 |»      »      »      »      »      ,·std::move(p.merkle_tree_mask)··································································································································| 
623 |»      »      »      »      »      ,·std::move(p.verified_leaf_hashes));····························································································································| 
624 |······································································································································································| 
625 |»      »      »      //·we·really·don't·want·to·store·extra·copies·of·the·trees·········································································································| 
626 |»      »      »      TORRENT_ASSERT(p.merkle_trees.empty());····························································································································| 
627 |»      »      }···································································································································································| 
628 |······································································································································································| 
629 |»      »      if·(valid_metadata())···············································································································································| 
630 |»      »      {···································································································································································| 
631 |»      »      »      inc_stats_counter(counters::num_total_pieces_added·················································································································| 
632 |»      »      »      »      ,·m_torrent_file->num_pieces());··································································································································| 
633 |»      »      }···································································································································································| 
634 |······································································································································································| 
635 |m_add_torrent_params·=·std::make_unique<add_torrent_params>(std::move(p));····························································································| 
636 |}·····································································································································································| 
637 |······································································································································································| 
638 |»      void·torrent::load_merkle_trees(·····································································································································| 
639 |»      »      aux::vector<std::vector<sha256_hash>,·file_index_t>·trees_import····································································································| 
640 |»      »      ,·aux::vector<std::vector<bool>,·file_index_t>·mask·················································································································| 
641 |»      »      ,·aux::vector<std::vector<bool>,·file_index_t>·verified)············································································································| 
642 |»      {····································································································································································|566 |»      {····································································································································································|
643 |»      »      auto·const&·fs·=·m_torrent_file->orig_files();······················································································································| 
644 |······································································································································································| 
645 |»      »      std::vector<bool>·const·empty_verified;·····························································································································| 
646 |»      »      for·(file_index_t·i{0};·i·<·fs.end_file();·++i)·····················································································································| 
647 |»      »      {···································································································································································| 
648 |»      »      »      if·(fs.pad_file_at(i)·||·fs.file_size(i)·==·0)·····················································································································| 
649 |»      »      »      »      continue;·························································································································································|567 |#ifndef·TORRENT_DISABLE_DHT···········································································································································|
650 |······································································································································································| 
651 |»      »      »      if·(i·>=·trees_import.end_index())·break;··························································································································| 
652 |»      »      »      std::vector<bool>·const&·verified_bitmask·=·(i·>=·verified.end_index())·?·empty_verified·:·verified[i];····························································| 
653 |»      »      »      if·(i·<·mask.end_index()·&&·!mask[i].empty())······················································································································| 
654 |»      »      »      {··································································································································································| 
655 |»      »      »      »      mask[i].resize(m_merkle_trees[i].size(),·false);··················································································································|568 |»      »      async_call(&session_impl::dht_get_immutable_item,·target);··········································································································|
656 |»      »      »      »      m_merkle_trees[i].load_sparse_tree(trees_import[i],·mask[i],·verified_bitmask);···················································································| 
657 |»      »      »      }··································································································································································| 
658 |»      »      »      else·······························································································································································|569 |#else·································································································································································|
659 |»      »      »      {··································································································································································|570 |»      »      TORRENT_UNUSED(target);·············································································································································|
660 |»      »      »      »      m_merkle_trees[i].load_tree(trees_import[i],·verified_bitmask);···································································································| 
661 |»      »      »      }··································································································································································| 
Max diff block lines reached; 3253726/3280298 bytes (99.19%) of diff not shown.