Offset 1, 7 lines modified | Offset 1, 7 lines modified | ||
1 | ·1e537d9298a8b265e97c6e12e4bbe431·366364·libdevel·optional·libtorrent-rasterbar-dev_2.0.11-1_amd64.deb | 1 | ·1e537d9298a8b265e97c6e12e4bbe431·366364·libdevel·optional·libtorrent-rasterbar-dev_2.0.11-1_amd64.deb |
2 | · | 2 | ·32197e3de3ac46707ba986bf70c59c5e·1669580·doc·optional·libtorrent-rasterbar-doc_2.0.11-1_all.deb |
3 | ·eb060badd0fe91df76ba8d1a61170f8a·51344936·debug·optional·libtorrent-rasterbar2.0t64-dbgsym_2.0.11-1_amd64.deb | 3 | ·eb060badd0fe91df76ba8d1a61170f8a·51344936·debug·optional·libtorrent-rasterbar2.0t64-dbgsym_2.0.11-1_amd64.deb |
4 | ·59d055cbeaf20048e371152f772719a8·1671968·libs·optional·libtorrent-rasterbar2.0t64_2.0.11-1_amd64.deb | 4 | ·59d055cbeaf20048e371152f772719a8·1671968·libs·optional·libtorrent-rasterbar2.0t64_2.0.11-1_amd64.deb |
5 | ·5549fa91f34fc81a0da7bf1973c43a2b·13346400·debug·optional·python3-libtorrent-dbgsym_2.0.11-1_amd64.deb | 5 | ·5549fa91f34fc81a0da7bf1973c43a2b·13346400·debug·optional·python3-libtorrent-dbgsym_2.0.11-1_amd64.deb |
6 | ·f0538e61618c44d7c60e7e17386381f3·710056·python·optional·python3-libtorrent_2.0.11-1_amd64.deb | 6 | ·f0538e61618c44d7c60e7e17386381f3·710056·python·optional·python3-libtorrent_2.0.11-1_amd64.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-01-28·14:33:12.000000·debian-binary | 1 | -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.xz | 2 | -rw-r--r--···0········0········0·····3632·2025-01-28·14:33:12.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··166 | 3 | -rw-r--r--···0········0········0··1665756·2025-01-28·14:33:12.000000·data.tar.xz |
Offset 1, 13 lines modified | Offset 1, 13 lines modified | ||
1 | Package:·libtorrent-rasterbar-doc | 1 | Package:·libtorrent-rasterbar-doc |
2 | Source:·libtorrent-rasterbar | 2 | Source:·libtorrent-rasterbar |
3 | Version:·2.0.11-1 | 3 | Version:·2.0.11-1 |
4 | Architecture:·all | 4 | Architecture:·all |
5 | Maintainer:·Christian·Marillat·<marillat@debian.org> | 5 | Maintainer:·Christian·Marillat·<marillat@debian.org> |
6 | Installed-Size:·5 | 6 | Installed-Size:·5773 |
7 | Section:·doc | 7 | Section:·doc |
8 | Priority:·optional | 8 | Priority:·optional |
9 | Multi-Arch:·foreign | 9 | Multi-Arch:·foreign |
10 | Homepage:·https://libtorrent.org/ | 10 | Homepage:·https://libtorrent.org/ |
11 | Description:·Documentation·for·libtorrent-rasterbar | 11 | 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·to | 13 | ·libtorrent-rasterbar·is·a·C++·library·that·aims·to·be·a·good·alternative·to |
Offset 78, 38 lines modified | Offset 78, 38 lines modified | ||
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.png | 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.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.html | 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.html |
80 | -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 | 80 | -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.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.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.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.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.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.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.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.html |
85 | -rw-r--r--···0·root·········(0)·root·········(0)····274 | 85 | -rw-r--r--···0·root·········(0)·root·········(0)····27435·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.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.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.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.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.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.html |
89 | -rw-r--r--···0·root·········(0)·root·········(0)··· | 89 | -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.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.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.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.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.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.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.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.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.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.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.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.html |
96 | -rw-r--r--···0·root·········(0)·root·········(0)···1024 | 96 | -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.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.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.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.html |
99 | -rw-r--r--···0·root·········(0)·root·········(0)····568 | 99 | -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)···1298 | 100 | -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)····556 | 101 | -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)····48385·2025-01-28·14:33:12.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Status.html | 102 | -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)····164 | 103 | -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.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.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.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.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.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.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.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.html |
108 | -rw-r--r--···0·root·········(0)·root·········(0)··1 | 108 | -rw-r--r--···0·root·········(0)·root·········(0)··1274790·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.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.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.css | 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.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.html | 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.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.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.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.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.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.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.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.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.html |
Offset 28, 65 lines modified | Offset 28, 23 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> | ||
35 | <li><a·class="reference·internal"·href="#client-data-t"·id="toc-entry- | 36 | <li><a·class="reference·internal"·href="#client-data-t"·id="toc-entry-2">client_data_t</a><ul> |
36 | <li><a·class="reference·internal"·href="#client-data-t-1"·id="toc-entry- | 37 | <li><a·class="reference·internal"·href="#client-data-t-1"·id="toc-entry-3">client_data_t()</a></li> |
37 | <li><a·class="reference·internal"·href="# | 38 | <li><a·class="reference·internal"·href="#operator-void-const"·id="toc-entry-4">operator=()·void*()·const*()</a></li> |
38 | </ul> | 39 | </ul> |
39 | </li> | 40 | </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·"<a·class="reference·external"·href="include/libtorrent/client_data.hpp">libtorrent/client_data.hpp</a>"</p> | ||
46 | <p>A·thin·wrapper·around·a·void·pointer·used·as·"user·data".·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&·<strong>operator=</strong>·(T*·v); | ||
55 | ···T*·<strong>get</strong>·()·const; | ||
56 | ···explicit·operator·<strong>T</strong>·()·const; | ||
57 | ···operator·void·<strong>const*</strong>·()·const·=·delete; | ||
58 | ···operator·<strong>void*</strong>·()·const·=·delete; | ||
59 | ···client_data_t&·<strong>operator=</strong>·(void·const*)·=·delete; | ||
60 | ···client_data_t&·<strong>operator=</strong>·(void*)·=·delete; | ||
61 | ···template·<typename·T,·typename·<strong>U</strong>··=·typename·std::enable_if<std::is_pointer<T>::value>::type> | ||
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="void*()"></a> | ||
71 | <a·name="operator=()"></a> | ||
72 | <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> | ||
73 | <div·class="section"·id="void-operator-const"> | ||
74 | <h2>void*()·operator=()·const*()</h2> | ||
75 | <pre·class="literal-block"> | ||
76 | operator·void·<strong>const*</strong>·()·const·=·delete; | ||
77 | operator·<strong>void*</strong>·()·const·=·delete; | ||
78 | client_data_t&·<strong>operator=</strong>·(void·const*)·=·delete; | ||
79 | client_data_t&·<strong>operator=</strong>·(void*)·=·delete; | ||
80 | </pre> | ||
81 | <p>we·don't·allow·type-unsafe·operations</p> | ||
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>< | 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"> |
83 | </div> | ||
84 | <div·class="section"·id="add-torrent-params"> | ||
85 | <h1>add_torrent_params</h1> | 44 | <h1>add_torrent_params</h1> |
86 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/add_torrent_params.hpp">libtorrent/add_torrent_params.hpp</a>"</p> | 45 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/add_torrent_params.hpp">libtorrent/add_torrent_params.hpp</a>"</p> |
87 | <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 | 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·file |
88 | along·with·all·information·necessary·to·add·that·torrent·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>. | 47 | along·with·all·information·necessary·to·add·that·torrent·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>. |
89 | The·key·fields·when·adding·a·torrent·are:</p> | 48 | The·key·fields·when·adding·a·torrent·are:</p> |
90 | <ul·class="simple"> | 49 | <ul·class="simple"> |
91 | <li>ti·-·the·immutable·info-dict·part·of·the·torrent</li> | 50 | <li>ti·-·the·immutable·info-dict·part·of·the·torrent</li> |
Offset 399, 14 lines modified | Offset 357, 56 lines modified | ||
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"> | 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"> |
400 | <dt>last_download·last_upload</dt> | 358 | <dt>last_download·last_upload</dt> |
401 | <dd>the·posix·time·of·the·last·time·payload·was·received·or·sent·for·this | 359 | <dd>the·posix·time·of·the·last·time·payload·was·received·or·sent·for·this |
402 | torrent,·respectively.·A·value·of·0·means·we·don't·know·when·we·last | 360 | torrent,·respectively.·A·value·of·0·means·we·don't·know·when·we·last |
403 | uploaded·or·downloaded,·or·we·have·never·uploaded·or·downloaded·any | 361 | uploaded·or·downloaded,·or·we·have·never·uploaded·or·downloaded·any |
404 | payload·for·this·torrent.</dd> | 362 | payload·for·this·torrent.</dd> |
405 | </dl> | 363 | </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·"<a·class="reference·external"·href="include/libtorrent/client_data.hpp">libtorrent/client_data.hpp</a>"</p> | ||
368 | <p>A·thin·wrapper·around·a·void·pointer·used·as·"user·data".·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&·<strong>operator=</strong>·(T*·v); | ||
377 | ···explicit·operator·<strong>T</strong>·()·const; | ||
378 | ···T*·<strong>get</strong>·()·const; | ||
379 | ···operator·<strong>void*</strong>·()·const·=·delete; | ||
380 | ···client_data_t&·<strong>operator=</strong>·(void·const*)·=·delete; | ||
381 | ···client_data_t&·<strong>operator=</strong>·(void*)·=·delete; | ||
382 | ···operator·void·<strong>const*</strong>·()·const·=·delete; | ||
383 | ···template·<typename·T,·typename·<strong>U</strong>··=·typename·std::enable_if<std::is_pointer<T>::value>::type> | ||
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="operator=()"></a> | ||
393 | <a·name="void*()"></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%5Boperator%3D%28%29+void%2A%28%29+const%2A%28%29%5D&labels=documentation&body=Documentation+under+heading+%22client_data_t%3A%3A%5Boperator%3D%28%29+void%2A%28%29+const%2A%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | ||
395 | <div·class="section"·id="operator-void-const"> | ||
396 | <h2>operator=()·void*()·const*()</h2> | ||
397 | <pre·class="literal-block"> | ||
398 | operator·<strong>void*</strong>·()·const·=·delete; | ||
399 | client_data_t&·<strong>operator=</strong>·(void·const*)·=·delete; | ||
400 | client_data_t&·<strong>operator=</strong>·(void*)·=·delete; | ||
401 | operator·void·<strong>const*</strong>·()·const·=·delete; | ||
402 | </pre> | ||
403 | <p>we·don't·allow·type-unsafe·operations</p> | ||
404 | </div> | ||
406 | </div> | 405 | </div> |
407 | ····</div> | 406 | ····</div> |
408 | ····</div> | 407 | ····</div> |
409 | ····<div·id="gradient"></div> | 408 | ····<div·id="gradient"></div> |
410 | ····<div·id="filler"> | 409 | ····<div·id="filler"> |
411 | ····<div·id="footer"> | 410 | ····<div·id="footer"> |
Offset 1, 48 lines modified | Offset 1, 16 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
6 | ····*·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t | 7 | ····*·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t |
7 | ··········o·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8(_\x8) | 8 | ··········o·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8(_\x8) |
8 | ··········o·_\x8 | 9 | ··········o·_\x8o_.p_.e_.r_.a_.t_.o_.r_.=_.(_.)_.·_.v_.o_.i_.d_.*_\x8(_\x8)_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8*_\x8(_\x8) |
9 | ····*·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
10 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
11 | *\x8**\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
12 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8._\x8h_\x8p_\x8p" | ||
13 | A·thin·wrapper·around·a·void·pointer·used·as·"user·data".·i.e.·an·opaque·cookie | ||
14 | passed·in·to·libtorrent·and·returned·on·demand.·It·adds·type-safety·by | ||
15 | requiring·the·same·type·be·requested·out·of·it·as·was·assigned·to·it. | ||
16 | struct·client_data_t | ||
17 | { | ||
18 | ···c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t·()·=·default; | ||
19 | ···explicit·c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t·(T*·v); | ||
20 | ···client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(T*·v); | ||
21 | ···T*·g\x8ge\x8et\x8t·()·const; | ||
22 | ···explicit·operator·T\x8T·()·const; | ||
23 | ···operator·void·c\x8co\x8on\x8ns\x8st\x8t*\x8*·()·const·=·delete; | ||
24 | ···operator·v\x8vo\x8oi\x8id\x8d*\x8*·()·const·=·delete; | ||
25 | ···client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void·const*)·=·delete; | ||
26 | ···client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void*)·=·delete; | ||
27 | ···template·<typename·T,·typename·U\x8U··=·typename·std::enable_if<std:: | ||
28 | is_pointer<T>::value>::type> | ||
29 | }; | ||
30 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
31 | *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
32 | c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t·()·=·default; | ||
33 | construct·a·nullptr·client·data | ||
34 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
35 | *\x8**\x8**\x8**\x8**\x8*·v\x8vo\x8oi\x8id\x8d*\x8*(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·c\x8co\x8on\x8ns\x8st\x8t*\x8*(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
36 | operator·void·c\x8co\x8on\x8ns\x8st\x8t*\x8*·()·const·=·delete; | ||
37 | operator·v\x8vo\x8oi\x8id\x8d*\x8*·()·const·=·delete; | ||
38 | client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void·const*)·=·delete; | ||
39 | client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void*)·=·delete; | ||
40 | we·don't·allow·type-unsafe·operations | ||
41 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 10 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
42 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_p\x8pa\x8ar\x8ra\x8am\x8ms\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 11 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_p\x8pa\x8ar\x8ra\x8am\x8ms\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
43 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8._\x8h_\x8p_\x8p" | 12 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8._\x8h_\x8p_\x8p" |
44 | The·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s·contains·all·the·information·in·a·.torrent·file·along | 13 | The·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s·contains·all·the·information·in·a·.torrent·file·along |
45 | with·all·information·necessary·to·add·that·torrent·to·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n.·The·key·fields | 14 | with·all·information·necessary·to·add·that·torrent·to·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n.·The·key·fields |
46 | when·adding·a·torrent·are: | 15 | when·adding·a·torrent·are: |
47 | ····*·ti·-·the·immutable·info-dict·part·of·the·torrent | 16 | ····*·ti·-·the·immutable·info-dict·part·of·the·torrent |
Offset 291, 14 lines modified | Offset 259, 46 lines modified | ||
291 | ······applied·before·the·torrent·is·added. | 259 | ······applied·before·the·torrent·is·added. |
292 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 260 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
293 | ··last_download·last_upload | 261 | ··last_download·last_upload |
294 | ······the·posix·time·of·the·last·time·payload·was·received·or·sent·for·this | 262 | ······the·posix·time·of·the·last·time·payload·was·received·or·sent·for·this |
295 | ······torrent,·respectively.·A·value·of·0·means·we·don't·know·when·we·last | 263 | ······torrent,·respectively.·A·value·of·0·means·we·don't·know·when·we·last |
296 | ······uploaded·or·downloaded,·or·we·have·never·uploaded·or·downloaded·any | 264 | ······uploaded·or·downloaded,·or·we·have·never·uploaded·or·downloaded·any |
297 | ······payload·for·this·torrent. | 265 | ······payload·for·this·torrent. |
266 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
267 | *\x8**\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
268 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8._\x8h_\x8p_\x8p" | ||
269 | A·thin·wrapper·around·a·void·pointer·used·as·"user·data".·i.e.·an·opaque·cookie | ||
270 | passed·in·to·libtorrent·and·returned·on·demand.·It·adds·type-safety·by | ||
271 | requiring·the·same·type·be·requested·out·of·it·as·was·assigned·to·it. | ||
272 | struct·client_data_t | ||
273 | { | ||
274 | ···c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t·()·=·default; | ||
275 | ···explicit·c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t·(T*·v); | ||
276 | ···client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(T*·v); | ||
277 | ···explicit·operator·T\x8T·()·const; | ||
278 | ···T*·g\x8ge\x8et\x8t·()·const; | ||
279 | ···operator·v\x8vo\x8oi\x8id\x8d*\x8*·()·const·=·delete; | ||
280 | ···client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void·const*)·=·delete; | ||
281 | ···client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void*)·=·delete; | ||
282 | ···operator·void·c\x8co\x8on\x8ns\x8st\x8t*\x8*·()·const·=·delete; | ||
283 | ···template·<typename·T,·typename·U\x8U··=·typename·std::enable_if<std:: | ||
284 | is_pointer<T>::value>::type> | ||
285 | }; | ||
286 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
287 | *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
288 | c\x8cl\x8li\x8ie\x8en\x8nt\x8t_\x8_d\x8da\x8at\x8ta\x8a_\x8_t\x8t·()·=·default; | ||
289 | construct·a·nullptr·client·data | ||
290 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
291 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·v\x8vo\x8oi\x8id\x8d*\x8*(\x8()\x8)·c\x8co\x8on\x8ns\x8st\x8t*\x8*(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
292 | operator·v\x8vo\x8oi\x8id\x8d*\x8*·()·const·=·delete; | ||
293 | client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void·const*)·=·delete; | ||
294 | client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void*)·=·delete; | ||
295 | operator·void·c\x8co\x8on\x8ns\x8st\x8t*\x8*·()·const·=·delete; | ||
296 | we·don't·allow·type-unsafe·operations | ||
298 | _\x8h_\x8o_\x8m_\x8e | 297 | _\x8h_\x8o_\x8m_\x8e |
299 | _\x8b_\x8l_\x8o_\x8g | 298 | _\x8b_\x8l_\x8o_\x8g |
300 | _\x8u_\x8T_\x8P | 299 | _\x8u_\x8T_\x8P |
301 | _\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d | 300 | _\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d |
302 | _\x8d_\x8o_\x8c_\x8u_\x8m_\x8e_\x8n_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n | 301 | _\x8d_\x8o_\x8c_\x8u_\x8m_\x8e_\x8n_\x8t_\x8a_\x8t_\x8i_\x8o_\x8n |
303 | _\x8D_\x8H_\x8T_\x8·_\x8p_\x8u_\x8t_\x8·_\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n | 302 | _\x8D_\x8H_\x8T_\x8·_\x8p_\x8u_\x8t_\x8·_\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n |
304 | _\x8p_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8b_\x8i_\x8n_\x8d_\x8i_\x8n_\x8g_\x8s | 303 | _\x8p_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8b_\x8i_\x8n_\x8d_\x8i_\x8n_\x8g_\x8s |
Offset 2835, 27 lines modified | Offset 2835, 27 lines modified | ||
2835 | <p>posted·in·response·to·a·call·to·session::dht_live_nodes().·It·contains·the | 2835 | <p>posted·in·response·to·a·call·to·session::dht_live_nodes().·It·contains·the |
2836 | live·nodes·from·the·DHT·routing·table·of·one·of·the·DHT·nodes·running | 2836 | live·nodes·from·the·DHT·routing·table·of·one·of·the·DHT·nodes·running |
2837 | locally.</p> | 2837 | locally.</p> |
2838 | <pre·class="literal-block"> | 2838 | <pre·class="literal-block"> |
2839 | struct·dht_live_nodes_alert·final·:·alert | 2839 | struct·dht_live_nodes_alert·final·:·alert |
2840 | { | 2840 | { |
2841 | ···std::string·<strong>message</strong>·()·const·override; | 2841 | ···std::string·<strong>message</strong>·()·const·override; |
2842 | ···int·<strong>num_nodes</strong>·()·const; | ||
2843 | ···std::vector<std::pair<sha1_hash,·udp::endpoint>>·<strong>nodes</strong>·()·const; | 2842 | ···std::vector<std::pair<sha1_hash,·udp::endpoint>>·<strong>nodes</strong>·()·const; |
2843 | ···int·<strong>num_nodes</strong>·()·const; | ||
2844 | ···static·constexpr·alert_category_t·<strong>static_category</strong>··=·alert_category::dht; | 2844 | ···static·constexpr·alert_category_t·<strong>static_category</strong>··=·alert_category::dht; |
2845 | ···sha1_hash·node_id; | 2845 | ···sha1_hash·node_id; |
2846 | }; | 2846 | }; |
2847 | </pre> | 2847 | </pre> |
2848 | <a·name="nodes()"></a> | 2848 | <a·name="nodes()"></a> |
2849 | <a·name="num_nodes()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_live_nodes_alert%3A%3A%5Bnodes%28%29+num_nodes%28%29%5D&labels=documentation&body=Documentation+under+heading+%22dht_live_nodes_alert%3A%3A%5Bnodes%28%29+num_nodes%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="nodes-num-nodes"> | 2849 | <a·name="num_nodes()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_live_nodes_alert%3A%3A%5Bnodes%28%29+num_nodes%28%29%5D&labels=documentation&body=Documentation+under+heading+%22dht_live_nodes_alert%3A%3A%5Bnodes%28%29+num_nodes%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="nodes-num-nodes"> |
2850 | <h2>nodes()·num_nodes()</h2> | 2850 | <h2>nodes()·num_nodes()</h2> |
2851 | <pre·class="literal-block"> | 2851 | <pre·class="literal-block"> |
2852 | int·<strong>num_nodes</strong>·()·const; | ||
2853 | std::vector<std::pair<sha1_hash,·udp::endpoint>>·<strong>nodes</strong>·()·const; | 2852 | std::vector<std::pair<sha1_hash,·udp::endpoint>>·<strong>nodes</strong>·()·const; |
2853 | int·<strong>num_nodes</strong>·()·const; | ||
2854 | </pre> | 2854 | </pre> |
2855 | <p>the·number·of·nodes·in·the·routing·table·and·the·actual·nodes.</p> | 2855 | <p>the·number·of·nodes·in·the·routing·table·and·the·actual·nodes.</p> |
2856 | <a·name="node_id"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_live_nodes_alert%3A%3A%5Bnode_id%5D&labels=documentation&body=Documentation+under+heading+%22dht_live_nodes_alert%3A%3A%5Bnode_id%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | 2856 | <a·name="node_id"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_live_nodes_alert%3A%3A%5Bnode_id%5D&labels=documentation&body=Documentation+under+heading+%22dht_live_nodes_alert%3A%3A%5Bnode_id%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> |
2857 | <dt>node_id</dt> | 2857 | <dt>node_id</dt> |
2858 | <dd>the·local·DHT·node's·node-ID·this·routing·table·belongs·to</dd> | 2858 | <dd>the·local·DHT·node's·node-ID·this·routing·table·belongs·to</dd> |
2859 | </dl> | 2859 | </dl> |
2860 | <a·name="session_stats_header_alert"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session_stats_header_alert&labels=documentation&body=Documentation+under+heading+%22class+session_stats_header_alert%22+could+be+improved">report·issue</a>]</span></div> | 2860 | <a·name="session_stats_header_alert"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session_stats_header_alert&labels=documentation&body=Documentation+under+heading+%22class+session_stats_header_alert%22+could+be+improved">report·issue</a>]</span></div> |
Offset 2884, 32 lines modified | Offset 2884, 32 lines modified | ||
2884 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/alert_types.hpp">libtorrent/alert_types.hpp</a>"</p> | 2884 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/alert_types.hpp">libtorrent/alert_types.hpp</a>"</p> |
2885 | <p>posted·as·a·response·to·a·call·to·session::dht_sample_infohashes()·with | 2885 | <p>posted·as·a·response·to·a·call·to·session::dht_sample_infohashes()·with |
2886 | the·information·from·the·DHT·response·message.</p> | 2886 | the·information·from·the·DHT·response·message.</p> |
2887 | <pre·class="literal-block"> | 2887 | <pre·class="literal-block"> |
2888 | struct·dht_sample_infohashes_alert·final·:·alert | 2888 | struct·dht_sample_infohashes_alert·final·:·alert |
2889 | { | 2889 | { |
2890 | ···std::string·<strong>message</strong>·()·const·override; | 2890 | ···std::string·<strong>message</strong>·()·const·override; |
2891 | ···int·<strong>num_samples</strong>·()·const; | ||
2892 | ···std::vector<sha1_hash>·<strong>samples</strong>·()·const; | 2891 | ···std::vector<sha1_hash>·<strong>samples</strong>·()·const; |
2892 | ···int·<strong>num_samples</strong>·()·const; | ||
2893 | ···int·<strong>num_nodes</strong>·()·const; | 2893 | ···int·<strong>num_nodes</strong>·()·const; |
2894 | ···std::vector<std::pair<sha1_hash,·udp::endpoint>>·<strong>nodes</strong>·()·const; | 2894 | ···std::vector<std::pair<sha1_hash,·udp::endpoint>>·<strong>nodes</strong>·()·const; |
2895 | ···static·constexpr·alert_category_t·<strong>static_category</strong>··=·alert_category::dht_operation; | 2895 | ···static·constexpr·alert_category_t·<strong>static_category</strong>··=·alert_category::dht_operation; |
2896 | ···sha1_hash·node_id; | 2896 | ···sha1_hash·node_id; |
2897 | ···aux::noexcept_movable<udp::endpoint>·endpoint; | 2897 | ···aux::noexcept_movable<udp::endpoint>·endpoint; |
2898 | ···time_duration·const·interval; | 2898 | ···time_duration·const·interval; |
2899 | ···int·const·num_infohashes; | 2899 | ···int·const·num_infohashes; |
2900 | }; | 2900 | }; |
2901 | </pre> | 2901 | </pre> |
2902 | <a·name="num_samples()"></a> | 2902 | <a·name="num_samples()"></a> |
2903 | <a·name="samples()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_sample_infohashes_alert%3A%3A%5Bnum_samples%28%29+samples%28%29%5D&labels=documentation&body=Documentation+under+heading+%22dht_sample_infohashes_alert%3A%3A%5Bnum_samples%28%29+samples%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="num-samples-samples"> | 2903 | <a·name="samples()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_sample_infohashes_alert%3A%3A%5Bnum_samples%28%29+samples%28%29%5D&labels=documentation&body=Documentation+under+heading+%22dht_sample_infohashes_alert%3A%3A%5Bnum_samples%28%29+samples%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="num-samples-samples"> |
2904 | <h2>num_samples()·samples()</h2> | 2904 | <h2>num_samples()·samples()</h2> |
2905 | <pre·class="literal-block"> | 2905 | <pre·class="literal-block"> |
2906 | int·<strong>num_samples</strong>·()·const; | ||
2907 | std::vector<sha1_hash>·<strong>samples</strong>·()·const; | 2906 | std::vector<sha1_hash>·<strong>samples</strong>·()·const; |
2907 | int·<strong>num_samples</strong>·()·const; | ||
2908 | </pre> | 2908 | </pre> |
2909 | <p>returns·the·number·of·info-hashes·returned·by·the·node,·as·well·as·the | 2909 | <p>returns·the·number·of·info-hashes·returned·by·the·node,·as·well·as·the |
2910 | actual·info-hashes.·<tt·class="docutils·literal">num_samples()</tt>·is·more·efficient·than | 2910 | actual·info-hashes.·<tt·class="docutils·literal">num_samples()</tt>·is·more·efficient·than |
2911 | <tt·class="docutils·literal"><span·class="pre">samples().size()</span></tt>.</p> | 2911 | <tt·class="docutils·literal"><span·class="pre">samples().size()</span></tt>.</p> |
2912 | <a·name="num_nodes()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_sample_infohashes_alert%3A%3A%5Bnum_nodes%28%29%5D&labels=documentation&body=Documentation+under+heading+%22dht_sample_infohashes_alert%3A%3A%5Bnum_nodes%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 2912 | <a·name="num_nodes()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:dht_sample_infohashes_alert%3A%3A%5Bnum_nodes%28%29%5D&labels=documentation&body=Documentation+under+heading+%22dht_sample_infohashes_alert%3A%3A%5Bnum_nodes%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
2913 | <div·class="section"·id="num-nodes"> | 2913 | <div·class="section"·id="num-nodes"> |
2914 | <h2>num_nodes()</h2> | 2914 | <h2>num_nodes()</h2> |
Offset 2199, 24 lines modified | Offset 2199, 24 lines modified | ||
2199 | *\x8**\x8**\x8**\x8**\x8**\x8*·d\x8dh\x8ht\x8t_\x8_l\x8li\x8iv\x8ve\x8e_\x8_n\x8no\x8od\x8de\x8es\x8s_\x8_a\x8al\x8le\x8er\x8rt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 2199 | *\x8**\x8**\x8**\x8**\x8**\x8*·d\x8dh\x8ht\x8t_\x8_l\x8li\x8iv\x8ve\x8e_\x8_n\x8no\x8od\x8de\x8es\x8s_\x8_a\x8al\x8le\x8er\x8rt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
2200 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8s_\x8._\x8h_\x8p_\x8p" | 2200 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8s_\x8._\x8h_\x8p_\x8p" |
2201 | posted·in·response·to·a·call·to·session::dht_live_nodes().·It·contains·the·live | 2201 | posted·in·response·to·a·call·to·session::dht_live_nodes().·It·contains·the·live |
2202 | nodes·from·the·DHT·routing·table·of·one·of·the·DHT·nodes·running·locally. | 2202 | nodes·from·the·DHT·routing·table·of·one·of·the·DHT·nodes·running·locally. |
2203 | struct·dht_live_nodes_alert·final·:·alert | 2203 | struct·dht_live_nodes_alert·final·:·alert |
2204 | { | 2204 | { |
2205 | ···std::string·m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e·()·const·override; | 2205 | ···std::string·m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e·()·const·override; |
2206 | ···int·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s·()·const; | ||
2207 | ···std::vector<std::pair<sha1_hash,·udp::endpoint>>·n\x8no\x8od\x8de\x8es\x8s·()·const; | 2206 | ···std::vector<std::pair<sha1_hash,·udp::endpoint>>·n\x8no\x8od\x8de\x8es\x8s·()·const; |
2207 | ···int·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s·()·const; | ||
2208 | ···static·constexpr·alert_category_t·s\x8st\x8ta\x8at\x8ti\x8ic\x8c_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y··=·alert_category::dht; | 2208 | ···static·constexpr·alert_category_t·s\x8st\x8ta\x8at\x8ti\x8ic\x8c_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y··=·alert_category::dht; |
2209 | ···sha1_hash·node_id; | 2209 | ···sha1_hash·node_id; |
2210 | }; | 2210 | }; |
2211 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 2211 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
2212 | *\x8**\x8**\x8**\x8**\x8*·n\x8no\x8od\x8de\x8es\x8s(\x8()\x8)·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 2212 | *\x8**\x8**\x8**\x8**\x8*·n\x8no\x8od\x8de\x8es\x8s(\x8()\x8)·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
2213 | int·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s·()·const; | ||
2214 | std::vector<std::pair<sha1_hash,·udp::endpoint>>·n\x8no\x8od\x8de\x8es\x8s·()·const; | 2213 | std::vector<std::pair<sha1_hash,·udp::endpoint>>·n\x8no\x8od\x8de\x8es\x8s·()·const; |
2214 | int·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s·()·const; | ||
2215 | the·number·of·nodes·in·the·routing·table·and·the·actual·nodes. | 2215 | the·number·of·nodes·in·the·routing·table·and·the·actual·nodes. |
2216 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 2216 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
2217 | ··node_id | 2217 | ··node_id |
2218 | ······the·local·DHT·node's·node-ID·this·routing·table·belongs·to | 2218 | ······the·local·DHT·node's·node-ID·this·routing·table·belongs·to |
2219 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 2219 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
2220 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_h\x8he\x8ea\x8ad\x8de\x8er\x8r_\x8_a\x8al\x8le\x8er\x8rt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 2220 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_h\x8he\x8ea\x8ad\x8de\x8er\x8r_\x8_a\x8al\x8le\x8er\x8rt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
2221 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8s_\x8._\x8h_\x8p_\x8p" | 2221 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8s_\x8._\x8h_\x8p_\x8p" |
Offset 2237, 30 lines modified | Offset 2237, 30 lines modified | ||
2237 | *\x8**\x8**\x8**\x8**\x8**\x8*·d\x8dh\x8ht\x8t_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8in\x8nf\x8fo\x8oh\x8ha\x8as\x8sh\x8he\x8es\x8s_\x8_a\x8al\x8le\x8er\x8rt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 2237 | *\x8**\x8**\x8**\x8**\x8**\x8*·d\x8dh\x8ht\x8t_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8in\x8nf\x8fo\x8oh\x8ha\x8as\x8sh\x8he\x8es\x8s_\x8_a\x8al\x8le\x8er\x8rt\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
2238 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8s_\x8._\x8h_\x8p_\x8p" | 2238 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8s_\x8._\x8h_\x8p_\x8p" |
2239 | posted·as·a·response·to·a·call·to·session::dht_sample_infohashes()·with·the | 2239 | posted·as·a·response·to·a·call·to·session::dht_sample_infohashes()·with·the |
2240 | information·from·the·DHT·response·message. | 2240 | information·from·the·DHT·response·message. |
2241 | struct·dht_sample_infohashes_alert·final·:·alert | 2241 | struct·dht_sample_infohashes_alert·final·:·alert |
2242 | { | 2242 | { |
2243 | ···std::string·m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e·()·const·override; | 2243 | ···std::string·m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e·()·const·override; |
2244 | ···int·n\x8nu\x8um\x8m_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·()·const; | ||
2245 | ···std::vector<sha1_hash>·s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·()·const; | 2244 | ···std::vector<sha1_hash>·s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·()·const; |
2245 | ···int·n\x8nu\x8um\x8m_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·()·const; | ||
2246 | ···int·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s·()·const; | 2246 | ···int·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s·()·const; |
2247 | ···std::vector<std::pair<sha1_hash,·udp::endpoint>>·n\x8no\x8od\x8de\x8es\x8s·()·const; | 2247 | ···std::vector<std::pair<sha1_hash,·udp::endpoint>>·n\x8no\x8od\x8de\x8es\x8s·()·const; |
2248 | ···static·constexpr·alert_category_t·s\x8st\x8ta\x8at\x8ti\x8ic\x8c_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y··=·alert_category:: | 2248 | ···static·constexpr·alert_category_t·s\x8st\x8ta\x8at\x8ti\x8ic\x8c_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y··=·alert_category:: |
2249 | dht_operation; | 2249 | dht_operation; |
2250 | ···sha1_hash·node_id; | 2250 | ···sha1_hash·node_id; |
2251 | ···aux::noexcept_movable<udp::endpoint>·endpoint; | 2251 | ···aux::noexcept_movable<udp::endpoint>·endpoint; |
2252 | ···time_duration·const·interval; | 2252 | ···time_duration·const·interval; |
2253 | ···int·const·num_infohashes; | 2253 | ···int·const·num_infohashes; |
2254 | }; | 2254 | }; |
2255 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 2255 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
2256 | *\x8**\x8**\x8**\x8**\x8*·n\x8nu\x8um\x8m_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s(\x8()\x8)·s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 2256 | *\x8**\x8**\x8**\x8**\x8*·n\x8nu\x8um\x8m_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s(\x8()\x8)·s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
2257 | int·n\x8nu\x8um\x8m_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·()·const; | ||
2258 | std::vector<sha1_hash>·s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·()·const; | 2257 | std::vector<sha1_hash>·s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·()·const; |
2258 | int·n\x8nu\x8um\x8m_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8es\x8s·()·const; | ||
2259 | returns·the·number·of·info-hashes·returned·by·the·node,·as·well·as·the·actual | 2259 | returns·the·number·of·info-hashes·returned·by·the·node,·as·well·as·the·actual |
2260 | info-hashes.·num_samples()·is·more·efficient·than·samples().size(). | 2260 | info-hashes.·num_samples()·is·more·efficient·than·samples().size(). |
2261 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 2261 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
2262 | *\x8**\x8**\x8**\x8**\x8*·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 2262 | *\x8**\x8**\x8**\x8**\x8*·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
2263 | int·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s·()·const; | 2263 | int·n\x8nu\x8um\x8m_\x8_n\x8no\x8od\x8de\x8es\x8s·()·const; |
2264 | The·total·number·of·nodes·returned·by·nodes(). | 2264 | The·total·number·of·nodes·returned·by·nodes(). |
2265 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 2265 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
Offset 30, 23 lines modified | Offset 30, 23 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="#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="# | 37 | <li><a·class="reference·internal"·href="#operator-bdecode-node"·id="toc-entry-3">operator=()·bdecode_node()</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- | 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- | 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> |
43 | <li><a·class="reference·internal"·href="#dict-find-in | 43 | <li><a·class="reference·internal"·href="#dict-find-string-dict-find-dict-dict-find-dict-at-node-dict-find-int-dict-find-string-value-dict-at-dict-find-int-value-dict-size-dict-find-list"·id="toc-entry-9">dict_find_string()·dict_find_dict()·dict_find()·dict_at_node()·dict_find_int()·dict_find_string_value()[·...·truncated·by·diffoscope;·len:·59,·SHA:·f6bf9a0e4e788ceada22fd6c25034f4f20cdca97b65f8302d49b40ff9d65c025·...·]()</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- | 45 | <li><a·class="reference·internal"·href="#string-length-string-ptr-string-offset-string-value"·id="toc-entry-11">string_length()·string_ptr()·string_offset()·string_value()</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 57, 51 lines modified | Offset 57, 51 lines modified | ||
57 | </div> | 57 | </div> |
58 | <a·name="bdecode_node"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+bdecode_node&labels=documentation&body=Documentation+under+heading+%22class+bdecode_node%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="bdecode-node"> | 58 | <a·name="bdecode_node"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+bdecode_node&labels=documentation&body=Documentation+under+heading+%22class+bdecode_node%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="bdecode-node"> |
59 | <h1>bdecode_node</h1> | 59 | <h1>bdecode_node</h1> |
60 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/bdecode.hpp">libtorrent/bdecode.hpp</a>"</p> | 60 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/bdecode.hpp">libtorrent/bdecode.hpp</a>"</p> |
61 | <p>Sometimes·it's·important·to·get·a·non-owning·reference·to·the·root·node·( | 61 | <p>Sometimes·it's·important·to·get·a·non-owning·reference·to·the·root·node·( |
62 | to·be·able·to·copy·it·as·a·reference·for·instance).·For·that,·use·the | 62 | 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- | 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_node | 66 | struct·bdecode_node |
67 | { | 67 | { |
68 | ···<strong>bdecode_node</strong>·()·=·default; | 68 | ···<strong>bdecode_node</strong>·()·=·default; |
69 | ···<strong>bdecode_node</strong>·(bdecode_node·const&); | ||
70 | ···<strong>bdecode_node</strong>·(bdecode_node&&)·noexcept; | 69 | ···<strong>bdecode_node</strong>·(bdecode_node&&)·noexcept; |
71 | ···bdecode_node&·<strong>operator=</strong>·(bdecode_node·const&)·&; | 70 | ···bdecode_node&·<strong>operator=</strong>·(bdecode_node·const&)·&; |
72 | ···bdecode_node&·<strong>operator=</strong>·(bdecode_node&&)·&·=·default; | 71 | ···bdecode_node&·<strong>operator=</strong>·(bdecode_node&&)·&·=·default; |
72 | ···<strong>bdecode_node</strong>·(bdecode_node·const&); | ||
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 | ···std::ptrdiff_t·<strong>data_offset</strong>·()·const·noexcept; | ||
77 | ···span<char·const>·<strong>data_section</strong>·()·const·noexcept; | 76 | ···span<char·const>·<strong>data_section</strong>·()·const·noexcept; |
77 | ···std::ptrdiff_t·<strong>data_offset</strong>·()·const·noexcept; | ||
78 | ···std::int64_t·<strong>list_int_value_at</strong>·(int·i | ||
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; | ||
82 | ···string_view·<strong>list_string_value_at</strong>·(int·i | 78 | ···string_view·<strong>list_string_value_at</strong>·(int·i |
83 | ······,·string_view·default_val·=·string_view())·const; | 79 | ······,·string_view·default_val·=·string_view())·const; |
80 | ···bdecode_node·<strong>list_at</strong>·(int·i)·const; | ||
84 | ···int·<strong> | 81 | ···int·<strong>list_size</strong>·()·const; |
85 | ···bdecode_node·<strong>dict_find</strong>·(string_view·key)·const; | ||
86 | ···std::pair<bdecode_node,·bdecode_node>·<strong>dict_at_node</strong>·(int·i)·const; | ||
87 | ···string_view·<strong>dict_find_string_value</strong>·(string_view·key | ||
88 | ······,·string_view·default_value·=·string_view())·const; | ||
89 | ···std::int64_t·<strong> | 82 | ···std::int64_t·<strong>list_int_value_at</strong>·(int·i |
90 | ······,·std::int64_t·default_val·=·0)·const; | 83 | ······,·std::int64_t·default_val·=·0)·const; |
84 | ···bdecode_node·<strong>dict_find</strong>·(string_view·key)·const; | ||
85 | ···bdecode_node·<strong>dict_find_dict</strong>·(string_view·key)·const; | ||
91 | ···std::pair<string_view,·bdecode_node>·<strong>dict_at</strong>·(int·i)·const; | 86 | ···std::pair<string_view,·bdecode_node>·<strong>dict_at</strong>·(int·i)·const; |
87 | ···int·<strong>dict_size</strong>·()·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; |
93 | ···bdecode_node·<strong>dict_ | 89 | ···std::pair<bdecode_node,·bdecode_node>·<strong>dict_at_node</strong>·(int·i)·const; |
94 | ···bdecode_node·<strong>dict_find_list</strong>·(string_view·key)·const; | 90 | ···bdecode_node·<strong>dict_find_list</strong>·(string_view·key)·const; |
91 | ···std::int64_t·<strong>dict_find_int_value</strong>·(string_view·key | ||
92 | ······,·std::int64_t·default_val·=·0)·const; | ||
95 | ···bdecode_node·<strong>dict_find_int</strong>·(string_view·key)·const; | 93 | ···bdecode_node·<strong>dict_find_int</strong>·(string_view·key)·const; |
94 | ···string_view·<strong>dict_find_string_value</strong>·(string_view·key | ||
95 | ······,·string_view·default_value·=·string_view())·const; | ||
96 | ···std::int64_t·<strong>int_value</strong>·()·const; | 96 | ···std::int64_t·<strong>int_value</strong>·()·const; |
97 | ···in | 97 | ···string_view·<strong>string_value</strong>·()·const; |
98 | ···char·const*·<strong>string_ptr</strong>·()·const; | 98 | ···char·const*·<strong>string_ptr</strong>·()·const; |
99 | ···std::ptrdiff_t·<strong>string_offset</strong>·()·const; | 99 | ···std::ptrdiff_t·<strong>string_offset</strong>·()·const; |
100 | ··· | 100 | ···int·<strong>string_length</strong>·()·const; |
101 | ···void·<strong>clear</strong>·(); | 101 | ···void·<strong>clear</strong>·(); |
102 | ···void·<strong>swap</strong>·(bdecode_node&·n); | 102 | ···void·<strong>swap</strong>·(bdecode_node&·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<char>·error)·const; | 105 | ···bool·<strong>has_soft_error</strong>·(span<char>·error)·const; |
106 | ···enum·type_t | 106 | ···enum·type_t |
Offset 116, 33 lines modified | Offset 116, 33 lines modified | ||
116 | </pre> | 116 | </pre> |
117 | <a·name="bdecode_node()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Bbdecode_node%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bbdecode_node%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="bdecode-node-1"> | 117 | <a·name="bdecode_node()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Bbdecode_node%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bbdecode_node%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="bdecode-node-1"> |
118 | <h2>bdecode_node()</h2> | 118 | <h2>bdecode_node()</h2> |
119 | <pre·class="literal-block"> | 119 | <pre·class="literal-block"> |
120 | <strong>bdecode_node</strong>·()·=·default; | 120 | <strong>bdecode_node</strong>·()·=·default; |
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=" | 123 | <a·name="operator=()"></a> |
124 | <a·name=" | 124 | <a·name="bdecode_node()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Boperator%3D%28%29+bdecode_node%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bop[·...·truncated·by·diffoscope;·len:·28,·SHA:·deb87c97e621c8ece76c7a27afb3e810e962d7a2a7c555127aaa26935caf45ff·...·]%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
125 | <div·class="section"·id=" | 125 | <div·class="section"·id="operator-bdecode-node"> |
126 | <h2> | 126 | <h2>operator=()·bdecode_node()</h2> |
127 | <pre·class="literal-block"> | 127 | <pre·class="literal-block"> |
128 | <strong>bdecode_node</strong>·(bdecode_node·const&); | ||
129 | <strong>bdecode_node</strong>·(bdecode_node&&)·noexcept; | 128 | <strong>bdecode_node</strong>·(bdecode_node&&)·noexcept; |
130 | bdecode_node&·<strong>operator=</strong>·(bdecode_node·const&)·&; | 129 | bdecode_node&·<strong>operator=</strong>·(bdecode_node·const&)·&; |
131 | bdecode_node&·<strong>operator=</strong>·(bdecode_node&&)·&·=·default; | 130 | bdecode_node&·<strong>operator=</strong>·(bdecode_node&&)·&·=·default; |
131 | <strong>bdecode_node</strong>·(bdecode_node·const&); | ||
132 | </pre> | 132 | </pre> |
133 | <p>For·owning·nodes,·the·copy·will·create·a·copy·of·the·tree,·but·the | 133 | <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> |
138 | <pre·class="literal-block"> | 138 | <pre·class="literal-block"> |
139 | type_t·<strong>type</strong>·()·const·noexcept; | 139 | type_t·<strong>type</strong>·()·const·noexcept; |
140 | </pre> | 140 | </pre> |
141 | <p>the·type·of·this·node.·See·<a·class="reference·external"·href="reference- | 141 | <p>the·type·of·this·node.·See·<a·class="reference·external"·href="reference-Bdecoding.html#type_t">type_t</a>.</p> |
142 | <a·name="bool()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Bbool%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bbool%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 142 | <a·name="bool()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bdecode_node%3A%3A%5Bbool%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bdecode_node%3A%3A%5Bbool%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
143 | <div·class="section"·id="bool"> | 143 | <div·class="section"·id="bool"> |
144 | <h2>bool()</h2> | 144 | <h2>bool()</h2> |
145 | <pre·class="literal-block"> | 145 | <pre·class="literal-block"> |
146 | explicit·operator·<strong>bool</strong>·()·const·noexcept; | 146 | explicit·operator·<strong>bool</strong>·()·const·noexcept; |
147 | </pre> | 147 | </pre> |
148 | <p>returns·true·if·<a·class="reference·external"·href="reference-Plugins.html#type()">type()</a>·!=·none_t.</p> | 148 | <p>returns·true·if·<a·class="reference·external"·href="reference-Plugins.html#type()">type()</a>·!=·none_t.</p> |
Offset 150, 71 lines modified | Offset 150, 71 lines modified | ||
150 | <div·class="section"·id="non-owning"> | 150 | <div·class="section"·id="non-owning"> |
151 | <h2>non_owning()</h2> | 151 | <h2>non_owning()</h2> |
152 | <pre·class="literal-block"> | 152 | <pre·class="literal-block"> |
153 | bdecode_node·<strong>non_owning</strong>·()·const; | 153 | bdecode_node·<strong>non_owning</strong>·()·const; |
154 | </pre> | 154 | </pre> |
155 | <p>return·a·non-owning·reference·to·this·node.·This·is·useful·to·refer·to | 155 | <p>return·a·non-owning·reference·to·this·node.·This·is·useful·to·refer·to |
Max diff block lines reached; 12829/24120 bytes (53.19%) of diff not shown. |
Offset 1, 25 lines modified | Offset 1, 25 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e | 6 | ····*·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e |
7 | ··········o·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) | 7 | ··········o·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) |
8 | ··········o·_\x8 | 8 | ··········o·_\x8o_.p_.e_.r_.a_.t_.o_.r_.=_.(_.)_.·_.b_.d_.e_.c_.o_.d_.e_.__.n_.o_.d_.e_\x8(_\x8) |
9 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) | 9 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) |
10 | ··········o·_\x8b_\x8o_\x8o_\x8l_\x8(_\x8) | 10 | ··········o·_\x8b_\x8o_\x8o_\x8l_\x8(_\x8) |
11 | ··········o·_\x8n_\x8o_\x8n_\x8__\x8o_\x8w_\x8n_\x8i_\x8n_\x8g_\x8(_\x8) | 11 | ··········o·_\x8n_\x8o_\x8n_\x8__\x8o_\x8w_\x8n_\x8i_\x8n_\x8g_\x8(_\x8) |
12 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\x8(_\x8)_\x8·_\x8d_\x8a_\x8t_\x8a_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) | ||
13 | ··········o·_\x8 | 12 | ··········o·_\x8d_.a_.t_.a_.__.s_.e_.c_.t_.i_.o_.n_.(_.)_.·_.d_.a_.t_.a_.__.o_.f_.f_.s_.e_.t_\x8(_\x8) |
13 | ··········o·_\x8l_\x8i_\x8s_\x8t_\x8__\x8a_\x8t_\x8(_\x8)_\x8·_\x8l_\x8i_\x8s_\x8t_\x8__\x8i_\x8n_\x8t_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8__\x8a_\x8t_\x8(_\x8)_\x8·_\x8l_\x8i_\x8s_\x8t_\x8__\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8__\x8a_\x8t_\x8(_\x8)_\x8·_\x8l_\x8i_\x8s_\x8t_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | ||
14 | ··········o·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8d_\x8i_\x8c_\x8t_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8a_\x8t_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) | ||
15 | ············_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8i_\x8n_\x8t_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8a_\x8t_\x8(_\x8) | ||
14 | ·········· | 16 | ············_.d_.i_.c_.t_.__.f_.i_.n_.d_.__.i_.n_.t_.__.v_.a_.l_.u_.e_.(_.)_.·_.d_.i_.c_.t_.__.s_.i_.z_.e_.(_.)_.·_.d_.i_.c_.t_.__.f_.i_.n_.d_.__.l_.i_.s_\x8t_\x8(_\x8) |
15 | ············_\x8d_\x8i_\x8c_\x8t_\x8__\x8a_\x8t_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8(_\x8) | ||
16 | ············_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8d_\x8i_\x8c_\x8t_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8l_\x8i_\x8s_\x8t_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | ||
17 | ··········o·_\x8i_\x8n_\x8t_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8(_\x8) | 17 | ··········o·_\x8i_\x8n_\x8t_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8(_\x8) |
18 | ··········o·_\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8 | 18 | ··········o·_\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8l_.e_.n_.g_.t_.h_.(_.)_.·_.s_.t_.r_.i_.n_.g_.__.p_.t_.r_.(_.)_.·_.s_.t_.r_.i_.n_.g_.__.o_.f_.f_.s_.e_.t_.(_.)_.·_.s_.t_.r_.i_.n_.g_.__.v_.a_.l_.u_.e_\x8(_\x8) |
19 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) | 19 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) |
20 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) | 20 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) |
21 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8(_\x8) | 21 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8(_\x8) |
22 | ··········o·_\x8s_\x8w_\x8i_\x8t_\x8c_\x8h_\x8__\x8u_\x8n_\x8d_\x8e_\x8r_\x8l_\x8y_\x8i_\x8n_\x8g_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8) | 22 | ··········o·_\x8s_\x8w_\x8i_\x8t_\x8c_\x8h_\x8__\x8u_\x8n_\x8d_\x8e_\x8r_\x8l_\x8y_\x8i_\x8n_\x8g_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8) |
23 | ··········o·_\x8h_\x8a_\x8s_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8(_\x8) | 23 | ··········o·_\x8h_\x8a_\x8s_\x8__\x8s_\x8o_\x8f_\x8t_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8(_\x8) |
24 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8t_\x8y_\x8p_\x8e_\x8__\x8t | 24 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8t_\x8y_\x8p_\x8e_\x8__\x8t |
25 | ····*·_\x8p_\x8r_\x8i_\x8n_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | 25 | ····*·_\x8p_\x8r_\x8i_\x8n_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) |
Offset 30, 46 lines modified | Offset 30, 46 lines modified | ||
30 | Sometimes·it's·important·to·get·a·non-owning·reference·to·the·root·node·(·to·be | 30 | Sometimes·it's·important·to·get·a·non-owning·reference·to·the·root·node·(·to·be |
31 | able·to·copy·it·as·a·reference·for·instance).·For·that,·use·the·_\x8n_\x8o_\x8n_\x8__\x8o_\x8w_\x8n_\x8i_\x8n_\x8g_\x8(_\x8) | 31 | able·to·copy·it·as·a·reference·for·instance).·For·that,·use·the·_\x8n_\x8o_\x8n_\x8__\x8o_\x8w_\x8n_\x8i_\x8n_\x8g_\x8(_\x8) |
32 | member·function. | 32 | member·function. |
33 | There·are·5·different·types·of·nodes,·see·_\x8t_\x8y_\x8p_\x8e_\x8__\x8t. | 33 | There·are·5·different·types·of·nodes,·see·_\x8t_\x8y_\x8p_\x8e_\x8__\x8t. |
34 | struct·bdecode_node | 34 | struct·bdecode_node |
35 | { | 35 | { |
36 | ···b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·()·=·default; | 36 | ···b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·()·=·default; |
37 | ···b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·(bdecode_node·const&); | ||
38 | ···b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·(bdecode_node&&)·noexcept; | 37 | ···b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·(bdecode_node&&)·noexcept; |
39 | ···bdecode_node&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node·const&)·&; | 38 | ···bdecode_node&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node·const&)·&; |
40 | ···bdecode_node&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node&&)·&·=·default; | 39 | ···bdecode_node&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node&&)·&·=·default; |
40 | ···b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·(bdecode_node·const&); | ||
41 | ···type_t·t\x8ty\x8yp\x8pe\x8e·()·const·noexcept; | 41 | ···type_t·t\x8ty\x8yp\x8pe\x8e·()·const·noexcept; |
42 | ···explicit·operator·b\x8bo\x8oo\x8ol\x8l·()·const·noexcept; | 42 | ···explicit·operator·b\x8bo\x8oo\x8ol\x8l·()·const·noexcept; |
43 | ···bdecode_node·n\x8no\x8on\x8n_\x8_o\x8ow\x8wn\x8ni\x8in\x8ng\x8g·()·const; | 43 | ···bdecode_node·n\x8no\x8on\x8n_\x8_o\x8ow\x8wn\x8ni\x8in\x8ng\x8g·()·const; |
44 | ···std::ptrdiff_t·d\x8da\x8at\x8ta\x8a_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·()·const·noexcept; | ||
45 | ···span<char·const>·d\x8da\x8at\x8ta\x8a_\x8_s\x8se\x8ec\x8ct\x8ti\x8io\x8on\x8n·()·const·noexcept; | 44 | ···span<char·const>·d\x8da\x8at\x8ta\x8a_\x8_s\x8se\x8ec\x8ct\x8ti\x8io\x8on\x8n·()·const·noexcept; |
45 | ···std::ptrdiff_t·d\x8da\x8at\x8ta\x8a_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·()·const·noexcept; | ||
46 | ···std::int64_t·l\x8li\x8is\x8st\x8t_\x8_i\x8in\x8nt\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e_\x8_a\x8at\x8t·(int·i | ||
47 | ······,·std::int64_t·default_val·=·0)·const; | ||
48 | ···bdecode_node·l\x8li\x8is\x8st\x8t_\x8_a\x8at\x8t·(int·i)·const; | ||
49 | ···int·l\x8li\x8is\x8st\x8t_\x8_s\x8si\x8iz\x8ze\x8e·()·const; | ||
50 | ···string_view·l\x8li\x8is\x8st\x8t_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e_\x8_a\x8at\x8t·(int·i | 46 | ···string_view·l\x8li\x8is\x8st\x8t_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e_\x8_a\x8at\x8t·(int·i |
51 | ······,·string_view·default_val·=·string_view())·const; | 47 | ······,·string_view·default_val·=·string_view())·const; |
48 | ···bdecode_node·l\x8li\x8is\x8st\x8t_\x8_a\x8at\x8t·(int·i)·const; | ||
52 | ···int· | 49 | ···int·l.li.is.st\x8t_\x8_s\x8si\x8iz\x8ze\x8e·()·const; |
50 | ···std::int64_t·l\x8li\x8is\x8st\x8t_\x8_i\x8in\x8nt\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e_\x8_a\x8at\x8t·(int·i | ||
53 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d·(string_view·key)·const; | ||
54 | ···std::pair<bdecode_node,·bdecode_node>·d\x8di\x8ic\x8ct\x8t_\x8_a\x8at\x8t_\x8_n\x8no\x8od\x8de\x8e·(int·i)·const; | ||
55 | ···string_view·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e·(string_view·key | ||
56 | ······,·string_view·default_value·=·string_view())·const; | ||
57 | ···std::int64_t·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_i\x8in\x8nt\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e·(string_view·key | ||
58 | ······,·std::int64_t·default_val·=·0)·const; | 51 | ······,·std::int64_t·default_val·=·0)·const; |
52 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d·(string_view·key)·const; | ||
53 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_d\x8di\x8ic\x8ct\x8t·(string_view·key)·const; | ||
59 | ···std::pair<string_view,·bdecode_node>·d\x8di\x8ic\x8ct\x8t_\x8_a\x8at\x8t·(int·i)·const; | 54 | ···std::pair<string_view,·bdecode_node>·d\x8di\x8ic\x8ct\x8t_\x8_a\x8at\x8t·(int·i)·const; |
55 | ···int·d\x8di\x8ic\x8ct\x8t_\x8_s\x8si\x8iz\x8ze\x8e·()·const; | ||
60 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g·(string_view·key)·const; | 56 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g·(string_view·key)·const; |
61 | ···bdecode_node | 57 | ···std::pair<bdecode_node,·bdecode_node>·d.di.ic.ct.t_._a.at.t_._n.no.od.de.e·(int·i)·const; |
62 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_l\x8li\x8is\x8st\x8t·(string_view·key)·const; | 58 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_l\x8li\x8is\x8st\x8t·(string_view·key)·const; |
59 | ···std::int64_t·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_i\x8in\x8nt\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e·(string_view·key | ||
60 | ······,·std::int64_t·default_val·=·0)·const; | ||
63 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_i\x8in\x8nt\x8t·(string_view·key)·const; | 61 | ···bdecode_node·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_i\x8in\x8nt\x8t·(string_view·key)·const; |
62 | ···string_view·d\x8di\x8ic\x8ct\x8t_\x8_f\x8fi\x8in\x8nd\x8d_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g_\x8_v\x8va\x8al\x8lu\x8ue\x8e·(string_view·key | ||
63 | ······,·string_view·default_value·=·string_view())·const; | ||
64 | ···std::int64_t·i\x8in\x8nt\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e·()·const; | 64 | ···std::int64_t·i\x8in\x8nt\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e·()·const; |
65 | ···in | 65 | ···string_view·s.st.tr.ri.in.ng.g_._v.va.al.lu.ue.e·()·const; |
66 | ···char·const*·s\x8st\x8tr\x8ri\x8in\x8ng\x8g_\x8_p\x8pt\x8tr\x8r·()·const; | 66 | ···char·const*·s\x8st\x8tr\x8ri\x8in\x8ng\x8g_\x8_p\x8pt\x8tr\x8r·()·const; |
67 | ···std::ptrdiff_t·s\x8st\x8tr\x8ri\x8in\x8ng\x8g_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·()·const; | 67 | ···std::ptrdiff_t·s\x8st\x8tr\x8ri\x8in\x8ng\x8g_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·()·const; |
68 | ··· | 68 | ···int·s.st.tr.ri.in.ng.g_._l.le.en.ng.gt.th.h·()·const; |
69 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r·(); | 69 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r·(); |
70 | ···void·s\x8sw\x8wa\x8ap\x8p·(bdecode_node&·n); | 70 | ···void·s\x8sw\x8wa\x8ap\x8p·(bdecode_node&·n); |
71 | ···void·r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e·(int·tokens); | 71 | ···void·r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e·(int·tokens); |
72 | ···void·s\x8sw\x8wi\x8it\x8tc\x8ch\x8h_\x8_u\x8un\x8nd\x8de\x8er\x8rl\x8ly\x8yi\x8in\x8ng\x8g_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·(char·const*·buf)·noexcept; | 72 | ···void·s\x8sw\x8wi\x8it\x8tc\x8ch\x8h_\x8_u\x8un\x8nd\x8de\x8er\x8rl\x8ly\x8yi\x8in\x8ng\x8g_\x8_b\x8bu\x8uf\x8ff\x8fe\x8er\x8r·(char·const*·buf)·noexcept; |
73 | ···bool·h\x8ha\x8as\x8s_\x8_s\x8so\x8of\x8ft\x8t_\x8_e\x8er\x8rr\x8ro\x8or\x8r·(span<char>·error)·const; | 73 | ···bool·h\x8ha\x8as\x8s_\x8_s\x8so\x8of\x8ft\x8t_\x8_e\x8er\x8rr\x8ro\x8or\x8r·(span<char>·error)·const; |
74 | ···enum·type_t | 74 | ···enum·type_t |
Offset 82, 19 lines modified | Offset 82, 19 lines modified | ||
82 | ···}; | 82 | ···}; |
83 | }; | 83 | }; |
84 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 84 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
85 | *\x8**\x8**\x8**\x8**\x8*·b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 85 | *\x8**\x8**\x8**\x8**\x8*·b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
86 | b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·()·=·default; | 86 | b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·()·=·default; |
87 | creates·a·default·constructed·node,·it·will·have·the·type·none_t. | 87 | creates·a·default·constructed·node,·it·will·have·the·type·none_t. |
88 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 88 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
89 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
89 | *\x8**\x8**\x8**\x8**\x8*·b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
90 | b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·(bdecode_node·const&); | ||
91 | b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·(bdecode_node&&)·noexcept; | 90 | b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·(bdecode_node&&)·noexcept; |
92 | bdecode_node&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node·const&)·&; | 91 | bdecode_node&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node·const&)·&; |
93 | bdecode_node&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node&&)·&·=·default; | 92 | bdecode_node&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node&&)·&·=·default; |
93 | b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_n\x8no\x8od\x8de\x8e·(bdecode_node·const&); | ||
94 | For·owning·nodes,·the·copy·will·create·a·copy·of·the·tree,·but·the·underlying | 94 | For·owning·nodes,·the·copy·will·create·a·copy·of·the·tree,·but·the·underlying |
95 | buffer·remains·the·same. | 95 | buffer·remains·the·same. |
96 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 96 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
97 | *\x8**\x8**\x8**\x8**\x8*·t\x8ty\x8yp\x8pe\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 97 | *\x8**\x8**\x8**\x8**\x8*·t\x8ty\x8yp\x8pe\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
98 | type_t·t\x8ty\x8yp\x8pe\x8e·()·const·noexcept; | 98 | type_t·t\x8ty\x8yp\x8pe\x8e·()·const·noexcept; |
99 | the·type·of·this·node.·See·_\x8t_\x8y_\x8p_\x8e_\x8__\x8t. | 99 | the·type·of·this·node.·See·_\x8t_\x8y_\x8p_\x8e_\x8__\x8t. |
100 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 100 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
Offset 103, 50 lines modified | Offset 103, 50 lines modified | ||
103 | returns·true·if·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8)·!=·none_t. | 103 | returns·true·if·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8)·!=·none_t. |
104 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 104 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
105 | *\x8**\x8**\x8**\x8**\x8*·n\x8no\x8on\x8n_\x8_o\x8ow\x8wn\x8ni\x8in\x8ng\x8g(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 105 | *\x8**\x8**\x8**\x8**\x8*·n\x8no\x8on\x8n_\x8_o\x8ow\x8wn\x8ni\x8in\x8ng\x8g(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
106 | bdecode_node·n\x8no\x8on\x8n_\x8_o\x8ow\x8wn\x8ni\x8in\x8ng\x8g·()·const; | 106 | bdecode_node·n\x8no\x8on\x8n_\x8_o\x8ow\x8wn\x8ni\x8in\x8ng\x8g·()·const; |
107 | return·a·non-owning·reference·to·this·node.·This·is·useful·to·refer·to·the·root | 107 | return·a·non-owning·reference·to·this·node.·This·is·useful·to·refer·to·the·root |
108 | node·without·copying·it·in·assignments. | 108 | node·without·copying·it·in·assignments. |
109 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 109 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
110 | *\x8**\x8**\x8**\x8**\x8*·d\x8da\x8at\x8ta\x8a_\x8_s\x8se\x8ec\x8ct\x8ti\x8io\x8on\x8n(\x8()\x8)·d\x8da\x8at\x8ta\x8a_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
110 | *\x8**\x8**\x8**\x8**\x8*·d\x8da\x8at\x8ta\x8a_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t(\x8()\x8)·d\x8da\x8at\x8ta\x8a_\x8_s\x8se\x8ec\x8ct\x8ti\x8io\x8on\x8n(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
111 | std::ptrdiff_t·d\x8da\x8at\x8ta\x8a_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·()·const·noexcept; | ||
112 | span<char·const>·d\x8da\x8at\x8ta\x8a_\x8_s\x8se\x8ec\x8ct\x8ti\x8io\x8on\x8n·()·const·noexcept; | 111 | span<char·const>·d\x8da\x8at\x8ta\x8a_\x8_s\x8se\x8ec\x8ct\x8ti\x8io\x8on\x8n·()·const·noexcept; |
112 | std::ptrdiff_t·d\x8da\x8at\x8ta\x8a_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·()·const·noexcept; | ||
113 | returns·the·buffer·and·length·of·the·section·in·the·original·bencoded·buffer | 113 | returns·the·buffer·and·length·of·the·section·in·the·original·bencoded·buffer |
114 | where·this·node·is·defined.·For·a·dictionary·for·instance,·this·starts·with·d | 114 | where·this·node·is·defined.·For·a·dictionary·for·instance,·this·starts·with·d |
115 | and·ends·with·e,·and·has·all·the·content·of·the·dictionary·in·between.·the | 115 | and·ends·with·e,·and·has·all·the·content·of·the·dictionary·in·between.·the |
116 | data_offset()·function·returns·the·byte-offset·to·this·node·in,·starting·from | 116 | data_offset()·function·returns·the·byte-offset·to·this·node·in,·starting·from |
117 | the·beginning·of·the·buffer·that·was·parsed. | 117 | the·beginning·of·the·buffer·that·was·parsed. |
118 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 118 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
Max diff block lines reached; 6256/16279 bytes (38.43%) of diff not shown. |
Offset 34, 15 lines modified | Offset 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="#string-i | 41 | <li><a·class="reference·internal"·href="#integer-string-dict-list-preformatted"·id="toc-entry-7">integer()·string()·dict()·list()·preformatted()</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, 41 lines modified | Offset 69, 41 lines modified | ||
69 | <p>The·<tt·class="docutils·literal">entry</tt>·class·represents·one·node·in·a·bencoded·hierarchy.·It·works·as·a | 69 | <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·integer | 70 | 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·entry | 73 | class·entry |
74 | { | 74 | { |
75 | ···data_type·<strong>type</strong>·()·const; | 75 | ···data_type·<strong>type</strong>·()·const; |
76 | ···<strong>entry</strong>·(span<char·const>); | ||
76 | ···<strong>entry</strong>·(preformatted_type); | ||
77 | ···<strong>entry</strong>·(integer_type); | ||
78 | ···<strong>entry</strong>·(list_type); | 77 | ···<strong>entry</strong>·(list_type); |
79 | ···<strong>entry</strong>·(dictionary_type); | 78 | ···<strong>entry</strong>·(dictionary_type); |
80 | ···<strong>entry</strong>·( | 79 | ···<strong>entry</strong>·(preformatted_type); |
80 | ···<strong>entry</strong>·(integer_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&·n); | 83 | ···<strong>entry</strong>·(bdecode_node·const&·n); |
84 | ···entry&·<strong>operator=</strong>·(list_type)·&; | ||
85 | ···entry&·<strong>operator=</strong>·(entry·const&)·&; | ||
84 | ···entry&·<strong>operator=</strong>·(dictionary_type)·&; | 86 | ···entry&·<strong>operator=</strong>·(dictionary_type)·&; |
85 | ···entry&·<strong>operator=</strong>·(span<char·const>)·&; | ||
86 | ···entry&·<strong>operator=</strong>·(integer_type)·&; | 87 | ···entry&·<strong>operator=</strong>·(integer_type)·&; |
87 | ···entry&·<strong>operator=</strong>·(entry·const&)·&; | ||
88 | ···entry&·<strong>operator=</strong>·(list_type)·&; | ||
89 | ···entry&·<strong>operator=</strong>·(entry&&)·&·noexcept; | 88 | ···entry&·<strong>operator=</strong>·(entry&&)·&·noexcept; |
90 | ···entry&·<strong>operator=</strong>·(bdecode_node·const&)·&; | ||
91 | ···entry&·<strong>operator=</strong>·(preformatted_type)·&; | 89 | ···entry&·<strong>operator=</strong>·(preformatted_type)·&; |
90 | ···entry&·<strong>operator=</strong>·(bdecode_node·const&)·&; | ||
91 | ···entry&·<strong>operator=</strong>·(span<char·const>)·&; | ||
92 | ···entry&·<strong>operator=</strong>·(U·v)·&; | 92 | ···entry&·<strong>operator=</strong>·(U·v)·&; |
93 | ···list_type&·<strong>list</strong>·(); | ||
94 | ···string_type&·<strong>string</strong>·(); | 93 | ···string_type&·<strong>string</strong>·(); |
94 | ···dictionary_type·const&·<strong>dict</strong>·()·const; | ||
95 | ···integer_type&·<strong>integer</strong>·(); | ||
95 | ···list_type·const&·<strong>list</strong>·()·const; | 96 | ···list_type·const&·<strong>list</strong>·()·const; |
96 | ··· | 97 | ···dictionary_type&·<strong>dict</strong>·(); |
97 | ···preformatted_type&·<strong>preformatted</strong>·(); | 98 | ···preformatted_type&·<strong>preformatted</strong>·(); |
98 | ···integer_type&·<strong>integer</strong>·(); | ||
99 | ···string_type·const&·<strong>string</strong>·()·const; | 99 | ···string_type·const&·<strong>string</strong>·()·const; |
100 | ···dictionary_type&·<strong>dict</strong>·(); | ||
101 | ···dictionary_type·const&·<strong>dict</strong>·()·const; | ||
102 | ···integer_type·const&·<strong>integer</strong>·()·const; | 100 | ···integer_type·const&·<strong>integer</strong>·()·const; |
101 | ···list_type&·<strong>list</strong>·(); | ||
102 | ···preformatted_type·const&·<strong>preformatted</strong>·()·const; | ||
103 | ···void·<strong>swap</strong>·(entry&·e); | 103 | ···void·<strong>swap</strong>·(entry&·e); |
104 | ···entry·const&·<strong>operator[]</strong>·(string_view·key)·const; | 104 | ···entry·const&·<strong>operator[]</strong>·(string_view·key)·const; |
105 | ···entry&·<strong>operator[]</strong>·(string_view·key); | 105 | ···entry&·<strong>operator[]</strong>·(string_view·key); |
106 | ···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); | 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; |
Offset 124, 19 lines modified | Offset 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<char·const>); | ||
131 | <strong>entry</strong>·(preformatted_type); | ||
132 | <strong>entry</strong>·(integer_type); | ||
133 | <strong>entry</strong>·(list_type); | 132 | <strong>entry</strong>·(list_type); |
134 | <strong>entry</strong>·(dictionary_type); | 133 | <strong>entry</strong>·(dictionary_type); |
135 | <strong>entry</strong>·( | 134 | <strong>entry</strong>·(preformatted_type); |
135 | <strong>entry</strong>·(integer_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·the | 138 | 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 modified | Offset 152, 43 lines modified | ||
152 | <strong>entry</strong>·(bdecode_node·const&·n); | 152 | <strong>entry</strong>·(bdecode_node·const&·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&·<strong>operator=</strong>·(list_type)·&; | ||
160 | entry&·<strong>operator=</strong>·(entry·const&)·&; | ||
159 | entry&·<strong>operator=</strong>·(dictionary_type)·&; | 161 | entry&·<strong>operator=</strong>·(dictionary_type)·&; |
160 | entry&·<strong>operator=</strong>·(span<char·const>)·&; | ||
161 | entry&·<strong>operator=</strong>·(integer_type)·&; | 162 | entry&·<strong>operator=</strong>·(integer_type)·&; |
162 | entry&·<strong>operator=</strong>·(entry·const&)·&; | ||
163 | entry&·<strong>operator=</strong>·(list_type)·&; | ||
164 | entry&·<strong>operator=</strong>·(entry&&)·&·noexcept; | 163 | entry&·<strong>operator=</strong>·(entry&&)·&·noexcept; |
165 | entry&·<strong>operator=</strong>·(bdecode_node·const&)·&; | ||
166 | entry&·<strong>operator=</strong>·(preformatted_type)·&; | 164 | entry&·<strong>operator=</strong>·(preformatted_type)·&; |
165 | entry&·<strong>operator=</strong>·(bdecode_node·const&)·&; | ||
166 | entry&·<strong>operator=</strong>·(span<char·const>)·&; | ||
167 | </pre> | 167 | </pre> |
168 | <p>copies·the·structure·of·the·right·hand·side·into·this | 168 | <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="string()"></a> | ||
171 | <a·name="integer()"></a> | 170 | <a·name="integer()"></a> |
171 | <a·name="string()"></a> | ||
172 | <a·name="dict()"></a> | 172 | <a·name="dict()"></a> |
173 | <a·name=" | 173 | <a·name="list()"></a> |
174 | <a·name=" | 174 | <a·name="preformatted()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:entry%3A%3A%5Binteger%28%29+string%28%29+dict%28%29+list%28%29+preformatted%28%29%5D&labels=documentation&body=Documentation+under+heading+%2[·...·truncated·by·diffoscope;·len:·76,·SHA:·2e54f8e12168344612be9d2839b999a65bd0148c0eb2e3573f0ea2990853139c·...·]%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
175 | <div·class="section"·id="string-i | 175 | <div·class="section"·id="integer-string-dict-list-preformatted"> |
176 | <h2>string()·i | 176 | <h2>integer()·string()·dict()·list()·preformatted()</h2> |
177 | <pre·class="literal-block"> | 177 | <pre·class="literal-block"> |
178 | list_type&·<strong>list</strong>·(); | ||
179 | string_type&·<strong>string</strong>·(); | 178 | string_type&·<strong>string</strong>·(); |
179 | dictionary_type·const&·<strong>dict</strong>·()·const; | ||
180 | integer_type&·<strong>integer</strong>·(); | ||
180 | list_type·const&·<strong>list</strong>·()·const; | 181 | list_type·const&·<strong>list</strong>·()·const; |
181 | 182 | dictionary_type&·<strong>dict</strong>·(); | |
Max diff block lines reached; 1001/10093 bytes (9.92%) of diff not shown. |
Offset 5, 15 lines modified | Offset 5, 15 lines modified | ||
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8e_\x8n_\x8t_\x8r_\x8y | 6 | ····*·_\x8e_\x8n_\x8t_\x8r_\x8y |
7 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) | 7 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) |
8 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | 8 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) |
9 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | 9 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) |
10 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | 10 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) |
11 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | 11 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) |
12 | ··········o·_\x8 | 12 | ··········o·_\x8i_.n_.t_.e_.g_.e_.r_.(_.)_.·_.s_.t_.r_.i_.n_.g_.(_.)_.·_.d_.i_.c_.t_.(_.)_.·_.l_.i_.s_.t_.(_.)_.·_.p_.r_.e_.f_.o_.r_.m_.a_.t_.t_.e_.d_\x8(_\x8) |
13 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) | 13 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) |
14 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8[_\x8]_\x8(_\x8) | 14 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8[_\x8]_\x8(_\x8) |
15 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8k_\x8e_\x8y_\x8(_\x8) | 15 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8k_\x8e_\x8y_\x8(_\x8) |
16 | ··········o·_\x8t_\x8o_\x8__\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8(_\x8) | 16 | ··········o·_\x8t_\x8o_\x8__\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8(_\x8) |
17 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8y_\x8p_\x8e | 17 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8y_\x8p_\x8e |
18 | ····*·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_\x8<_\x8(_\x8) | 18 | ····*·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_\x8<_\x8(_\x8) |
19 | ····*·_\x8b_\x8e_\x8n_\x8c_\x8o_\x8d_\x8e_\x8(_\x8) | 19 | ····*·_\x8b_\x8e_\x8n_\x8c_\x8o_\x8d_\x8e_\x8(_\x8) |
Offset 35, 41 lines modified | Offset 35, 41 lines modified | ||
35 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8e_\x8n_\x8t_\x8r_\x8y_\x8._\x8h_\x8p_\x8p" | 35 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8e_\x8n_\x8t_\x8r_\x8y_\x8._\x8h_\x8p_\x8p" |
36 | The·entry·class·represents·one·node·in·a·bencoded·hierarchy.·It·works·as·a | 36 | The·entry·class·represents·one·node·in·a·bencoded·hierarchy.·It·works·as·a |
37 | variant·type,·it·can·be·either·a·list,·a·dictionary·(std::map),·an·integer·or·a | 37 | variant·type,·it·can·be·either·a·list,·a·dictionary·(std::map),·an·integer·or·a |
38 | string. | 38 | string. |
39 | class·entry | 39 | class·entry |
40 | { | 40 | { |
41 | ···data_type·t\x8ty\x8yp\x8pe\x8e·()·const; | 41 | ···data_type·t\x8ty\x8yp\x8pe\x8e·()·const; |
42 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(span<char·const>); | ||
42 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(preformatted_type); | ||
43 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(integer_type); | ||
44 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(list_type); | 43 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(list_type); |
45 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(dictionary_type); | 44 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(dictionary_type); |
46 | ···e\x8en\x8nt\x8tr\x8ry\x8y·( | 45 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(preformatted_type); |
46 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(integer_type); | ||
47 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(U·v); | 47 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(U·v); |
48 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(data_type·t); | 48 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(data_type·t); |
49 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(bdecode_node·const&·n); | 49 | ···e\x8en\x8nt\x8tr\x8ry\x8y·(bdecode_node·const&·n); |
50 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(list_type)·&; | ||
51 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(entry·const&)·&; | ||
50 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(dictionary_type)·&; | 52 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(dictionary_type)·&; |
51 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(span<char·const>)·&; | ||
52 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(integer_type)·&; | 53 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(integer_type)·&; |
53 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(entry·const&)·&; | ||
54 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(list_type)·&; | ||
55 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(entry&&)·&·noexcept; | 54 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(entry&&)·&·noexcept; |
56 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node·const&)·&; | ||
57 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(preformatted_type)·&; | 55 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(preformatted_type)·&; |
56 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node·const&)·&; | ||
57 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(span<char·const>)·&; | ||
58 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(U·v)·&; | 58 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(U·v)·&; |
59 | ···list_type&·l\x8li\x8is\x8st\x8t·(); | ||
60 | ···string_type&·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·(); | 59 | ···string_type&·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·(); |
60 | ···dictionary_type·const&·d\x8di\x8ic\x8ct\x8t·()·const; | ||
61 | ···integer_type&·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r·(); | ||
61 | ···list_type·const&·l\x8li\x8is\x8st\x8t·()·const; | 62 | ···list_type·const&·l\x8li\x8is\x8st\x8t·()·const; |
62 | ··· | 63 | ···dictionary_type&·d.di.ic.ct.t·(); |
63 | ···preformatted_type&·p\x8pr\x8re\x8ef\x8fo\x8or\x8rm\x8ma\x8at\x8tt\x8te\x8ed\x8d·(); | 64 | ···preformatted_type&·p\x8pr\x8re\x8ef\x8fo\x8or\x8rm\x8ma\x8at\x8tt\x8te\x8ed\x8d·(); |
64 | ···integer_type&·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r·(); | ||
65 | ···string_type·const&·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·()·const; | 65 | ···string_type·const&·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·()·const; |
66 | ···dictionary_type&·d\x8di\x8ic\x8ct\x8t·(); | ||
67 | ···dictionary_type·const&·d\x8di\x8ic\x8ct\x8t·()·const; | ||
68 | ···integer_type·const&·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r·()·const; | 66 | ···integer_type·const&·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r·()·const; |
67 | ···list_type&·l\x8li\x8is\x8st\x8t·(); | ||
68 | ···preformatted_type·const&·p\x8pr\x8re\x8ef\x8fo\x8or\x8rm\x8ma\x8at\x8tt\x8te\x8ed\x8d·()·const; | ||
69 | ···void·s\x8sw\x8wa\x8ap\x8p·(entry&·e); | 69 | ···void·s\x8sw\x8wa\x8ap\x8p·(entry&·e); |
70 | ···entry·const&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(string_view·key)·const; | 70 | ···entry·const&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(string_view·key)·const; |
71 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(string_view·key); | 71 | ···entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(string_view·key); |
72 | ···entry·const*·f\x8fi\x8in\x8nd\x8d_\x8_k\x8ke\x8ey\x8y·(string_view·key)·const; | 72 | ···entry·const*·f\x8fi\x8in\x8nd\x8d_\x8_k\x8ke\x8ey\x8y·(string_view·key)·const; |
73 | ···entry*·f\x8fi\x8in\x8nd\x8d_\x8_k\x8ke\x8ey\x8y·(string_view·key); | 73 | ···entry*·f\x8fi\x8in\x8nd\x8d_\x8_k\x8ke\x8ey\x8y·(string_view·key); |
74 | ···std::string·t\x8to\x8o_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g·(bool·single_line·=·false)·const; | 74 | ···std::string·t\x8to\x8o_\x8_s\x8st\x8tr\x8ri\x8in\x8ng\x8g·(bool·single_line·=·false)·const; |
Offset 85, 52 lines modified | Offset 85, 52 lines modified | ||
85 | }; | 85 | }; |
86 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 86 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
87 | *\x8**\x8**\x8**\x8**\x8*·t\x8ty\x8yp\x8pe\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 87 | *\x8**\x8**\x8**\x8**\x8*·t\x8ty\x8yp\x8pe\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
88 | data_type·t\x8ty\x8yp\x8pe\x8e·()·const; | 88 | data_type·t\x8ty\x8yp\x8pe\x8e·()·const; |
89 | returns·the·concrete·type·of·the·_\x8e_\x8n_\x8t_\x8r_\x8y | 89 | returns·the·concrete·type·of·the·_\x8e_\x8n_\x8t_\x8r_\x8y |
90 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 90 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
91 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nt\x8tr\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 91 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nt\x8tr\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
92 | e\x8en\x8nt\x8tr\x8ry\x8y·(span<char·const>); | ||
92 | e\x8en\x8nt\x8tr\x8ry\x8y·(preformatted_type); | ||
93 | e\x8en\x8nt\x8tr\x8ry\x8y·(integer_type); | ||
94 | e\x8en\x8nt\x8tr\x8ry\x8y·(list_type); | 93 | e\x8en\x8nt\x8tr\x8ry\x8y·(list_type); |
95 | e\x8en\x8nt\x8tr\x8ry\x8y·(dictionary_type); | 94 | e\x8en\x8nt\x8tr\x8ry\x8y·(dictionary_type); |
96 | e\x8en\x8nt\x8tr\x8ry\x8y·( | 95 | e\x8en\x8nt\x8tr\x8ry\x8y·(preformatted_type); |
96 | e\x8en\x8nt\x8tr\x8ry\x8y·(integer_type); | ||
97 | constructors·directly·from·a·specific·type.·The·content·of·the·argument·is | 97 | constructors·directly·from·a·specific·type.·The·content·of·the·argument·is |
98 | copied·into·the·newly·constructed·_\x8e_\x8n_\x8t_\x8r_\x8y | 98 | copied·into·the·newly·constructed·_\x8e_\x8n_\x8t_\x8r_\x8y |
99 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 99 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
100 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nt\x8tr\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 100 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nt\x8tr\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
101 | e\x8en\x8nt\x8tr\x8ry\x8y·(data_type·t); | 101 | e\x8en\x8nt\x8tr\x8ry\x8y·(data_type·t); |
102 | construct·an·empty·_\x8e_\x8n_\x8t_\x8r_\x8y·of·the·specified·type.·see·_\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8y_\x8p_\x8e·enum. | 102 | construct·an·empty·_\x8e_\x8n_\x8t_\x8r_\x8y·of·the·specified·type.·see·_\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8y_\x8p_\x8e·enum. |
103 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 103 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
104 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nt\x8tr\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 104 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nt\x8tr\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
105 | e\x8en\x8nt\x8tr\x8ry\x8y·(bdecode_node·const&·n); | 105 | e\x8en\x8nt\x8tr\x8ry\x8y·(bdecode_node·const&·n); |
106 | construct·from·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e·parsed·form·(see·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8(_\x8)) | 106 | construct·from·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e·parsed·form·(see·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8(_\x8)) |
107 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 107 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
108 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 108 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
109 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(list_type)·&; | ||
110 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(entry·const&)·&; | ||
109 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(dictionary_type)·&; | 111 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(dictionary_type)·&; |
110 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(span<char·const>)·&; | ||
111 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(integer_type)·&; | 112 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(integer_type)·&; |
112 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(entry·const&)·&; | ||
113 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(list_type)·&; | ||
114 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(entry&&)·&·noexcept; | 113 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(entry&&)·&·noexcept; |
115 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node·const&)·&; | ||
116 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(preformatted_type)·&; | 114 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(preformatted_type)·&; |
115 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(bdecode_node·const&)·&; | ||
116 | entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(span<char·const>)·&; | ||
117 | copies·the·structure·of·the·right·hand·side·into·this·_\x8e_\x8n_\x8t_\x8r_\x8y. | 117 | copies·the·structure·of·the·right·hand·side·into·this·_\x8e_\x8n_\x8t_\x8r_\x8y. |
118 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 118 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
119 | *\x8**\x8**\x8**\x8**\x8*·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r(\x8()\x8)·s\x8st\x8tr\x8ri\x8in\x8ng\x8g(\x8()\x8)·d\x8di\x8ic\x8ct\x8t(\x8()\x8)·l\x8li\x8is\x8st\x8t(\x8()\x8)·p\x8pr\x8re\x8ef\x8fo\x8or\x8rm\x8ma\x8at\x8tt\x8te\x8ed\x8d(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
119 | *\x8**\x8**\x8**\x8**\x8*·s\x8st\x8tr\x8ri\x8in\x8ng\x8g(\x8()\x8)·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r(\x8()\x8)·d\x8di\x8ic\x8ct\x8t(\x8()\x8)·p\x8pr\x8re\x8ef\x8fo\x8or\x8rm\x8ma\x8at\x8tt\x8te\x8ed\x8d(\x8()\x8)·l\x8li\x8is\x8st\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
120 | list_type&·l\x8li\x8is\x8st\x8t·(); | ||
121 | string_type&·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·(); | 120 | string_type&·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·(); |
121 | dictionary_type·const&·d\x8di\x8ic\x8ct\x8t·()·const; | ||
122 | integer_type&·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r·(); | ||
122 | list_type·const&·l\x8li\x8is\x8st\x8t·()·const; | 123 | list_type·const&·l\x8li\x8is\x8st\x8t·()·const; |
123 | 124 | dictionary_type&·d.di.ic.ct.t·(); | |
124 | preformatted_type&·p\x8pr\x8re\x8ef\x8fo\x8or\x8rm\x8ma\x8at\x8tt\x8te\x8ed\x8d·(); | 125 | preformatted_type&·p\x8pr\x8re\x8ef\x8fo\x8or\x8rm\x8ma\x8at\x8tt\x8te\x8ed\x8d·(); |
125 | integer_type&·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r·(); | ||
126 | string_type·const&·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·()·const; | 126 | string_type·const&·s\x8st\x8tr\x8ri\x8in\x8ng\x8g·()·const; |
127 | dictionary_type&·d\x8di\x8ic\x8ct\x8t·(); | ||
128 | dictionary_type·const&·d\x8di\x8ic\x8ct\x8t·()·const; | ||
129 | integer_type·const&·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r·()·const; | 127 | integer_type·const&·i\x8in\x8nt\x8te\x8eg\x8ge\x8er\x8r·()·const; |
128 | list_type&·l\x8li\x8is\x8st\x8t·(); | ||
129 | preformatted_type·const&·p\x8pr\x8re\x8ef\x8fo\x8or\x8rm\x8ma\x8at\x8tt\x8te\x8ed\x8d·()·const; | ||
130 | The·integer(),·string(),·list()·and·dict()·functions·are·accessors·that·return | 130 | The·integer(),·string(),·list()·and·dict()·functions·are·accessors·that·return |
131 | the·respective·type.·If·the·entry·object·isn't·of·the·type·you·request,·the | 131 | the·respective·type.·If·the·entry·object·isn't·of·the·type·you·request,·the |
132 | accessor·will·throw·system_error.·You·can·ask·an·entry·for·its·type·through·the | 132 | accessor·will·throw·system_error.·You·can·ask·an·entry·for·its·type·through·the |
Max diff block lines reached; 215/7011 bytes (3.07%) of diff not shown. |
Offset 28, 68 lines modified | Offset 28, 122 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="#piece-block"·id="toc-entry-1">piece_block</a></li> | ||
35 | <li><a·class="reference·internal"·href="# | 36 | <li><a·class="reference·internal"·href="#peer-request"·id="toc-entry-2">peer_request</a><ul> |
36 | <li><a·class="reference·internal"·href="#info-hash-t-1"·id="toc-entry-2">info_hash_t()</a></li> | ||
37 | <li><a·class="reference·internal"·href="#has-has-v1-has-v2"·id="toc-entry-3">has()·has_v1()·has_v2()</a></li> | ||
38 | <li><a·class="reference·internal"·href="# | 37 | <li><a·class="reference·internal"·href="#operator"·id="toc-entry-3">operator==()</a></li> |
39 | <li><a·class="reference·internal"·href="#get-best"·id="toc-entry-5">get_best()</a></li> | ||
40 | <li><a·class="reference·internal"·href="#for-each"·id="toc-entry-6">for_each()</a></li> | ||
41 | </ul> | 38 | </ul> |
42 | </li> | 39 | </li> |
43 | <li><a·class="reference·internal"·href="#piece-block"·id="toc-entry-7">piece_block</a></li> | ||
44 | <li><a·class="reference·internal"·href="# | 40 | <li><a·class="reference·internal"·href="#info-hash-t"·id="toc-entry-4">info_hash_t</a><ul> |
41 | <li><a·class="reference·internal"·href="#info-hash-t-1"·id="toc-entry-5">info_hash_t()</a></li> | ||
42 | <li><a·class="reference·internal"·href="#has-has-v1-has-v2"·id="toc-entry-6">has()·has_v1()·has_v2()</a></li> | ||
45 | <li><a·class="reference·internal"·href="# | 43 | <li><a·class="reference·internal"·href="#get"·id="toc-entry-7">get()</a></li> |
44 | <li><a·class="reference·internal"·href="#get-best"·id="toc-entry-8">get_best()</a></li> | ||
45 | <li><a·class="reference·internal"·href="#for-each"·id="toc-entry-9">for_each()</a></li> | ||
46 | </ul> | 46 | </ul> |
47 | </li> | 47 | </li> |
48 | <li><a·class="reference·internal"·href="#peer-info"·id="toc-entry-10">peer_info</a><ul> | 48 | <li><a·class="reference·internal"·href="#peer-info"·id="toc-entry-10">peer_info</a><ul> |
49 | <li><a·class="reference·internal"·href="#i2p-destination"·id="toc-entry-11">i2p_destination()</a></li> | 49 | <li><a·class="reference·internal"·href="#i2p-destination"·id="toc-entry-11">i2p_destination()</a></li> |
50 | </ul> | 50 | </ul> |
51 | </li> | 51 | </li> |
52 | <li><a·class="reference·internal"·href="#load-torrent-parsed-load-torrent-buffer-load-torrent-file"·id="toc-entry-12">load_torrent_parsed()·load_torrent_buffer()·load_torrent_file()</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> | ||
56 | <li><a·class="reference·internal"·href="#version"·id="toc-entry-16">version()</a></li> | ||
57 | <li><a·class="reference·internal"·href="#torrent-peer-equal"·id="toc-entry-1 | 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="#version"·id="toc-entry-13">version()</a></li> | ||
54 | <li><a·class="reference·internal"·href="#truncate-files"·id="toc-entry-14">truncate_files()</a></li> | ||
55 | <li><a·class="reference·internal"·href="#make-magnet-uri"·id="toc-entry-15">make_magnet_uri()</a></li> | ||
56 | <li><a·class="reference·internal"·href="#parse-magnet-uri"·id="toc-entry-16">parse_magnet_uri()</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- | 58 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-18">enum·socket_type_t</a></li> |
59 | <li><a·class="reference·internal"·href="#enum-protocol-version"·id="toc-entry-19">enum·protocol_version</a></li> | 59 | <li><a·class="reference·internal"·href="#enum-protocol-version"·id="toc-entry-19">enum·protocol_version</a></li> |
60 | <li><a·class="reference·internal"·href="#enum-event-t"·id="toc-entry-20">enum·event_t</a></li> | 60 | <li><a·class="reference·internal"·href="#enum-event-t"·id="toc-entry-20">enum·event_t</a></li> |
61 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-21">enum·socket_type_t</a></li> | ||
62 | <li><a·class="reference·internal"·href="#enum-portmap-transport"·id="toc-entry-2 | 61 | <li><a·class="reference·internal"·href="#enum-portmap-transport"·id="toc-entry-21">enum·portmap_transport</a></li> |
63 | <li><a·class="reference·internal"·href="#enum-portmap-protocol"·id="toc-entry-2 | 62 | <li><a·class="reference·internal"·href="#enum-portmap-protocol"·id="toc-entry-22">enum·portmap_protocol</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="#int"·id="toc-entry-24">int</a></li> | 64 | <li><a·class="reference·internal"·href="#int"·id="toc-entry-24">int</a></li> |
65 | <li><a·class="reference·internal"·href="#char-const"·id="toc-entry-25">char·const*</a></li> | ||
65 | <li><a·class="reference·internal"·href="#t | 66 | <li><a·class="reference·internal"·href="#std-uint64-t"·id="toc-entry-26">std::uint64_t</a></li> |
66 | <li><a·class="reference·internal"·href="#download-priority-t"·id="toc-entry-2 | 67 | <li><a·class="reference·internal"·href="#download-priority-t"·id="toc-entry-27">download_priority_t</a></li> |
67 | <li><a·class="reference·internal"·href="#pex-flags-t"·id="toc-entry-2 | 68 | <li><a·class="reference·internal"·href="#pex-flags-t"·id="toc-entry-28">pex_flags_t</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="# | 69 | <li><a·class="reference·internal"·href="#torrent-flags-t"·id="toc-entry-29">torrent_flags_t</a></li> |
70 | </ul> | 70 | </ul> |
71 | </div> | 71 | </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"> | ||
73 | <h1>piece_block</h1> | ||
74 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/piece_block.hpp">libtorrent/piece_block.hpp</a>"</p> | ||
75 | <pre·class="literal-block"> | ||
76 | struct·piece_block | ||
77 | { | ||
78 | ···<strong>piece_block</strong>·(piece_index_t·p_index,·int·b_index); | ||
79 | ···<strong>piece_block</strong>·()·=·default; | ||
80 | ···bool·<strong>operator<</strong>·(piece_block·const&·b)·const; | ||
81 | ···bool·<strong>operator==</strong>·(piece_block·const&·b)·const; | ||
82 | ···bool·<strong>operator!=</strong>·(piece_block·const&·b)·const; | ||
83 | ···static·const·piece_block·invalid; | ||
84 | ···piece_index_t·piece_index·{0}; | ||
85 | ···int·<strong>block_index</strong>··=·0; | ||
86 | }; | ||
87 | </pre> | ||
88 | <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> | ||
89 | <div·class="section"·id="peer-request"> | ||
90 | <h1>peer_request</h1> | ||
91 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/peer_request.hpp">libtorrent/peer_request.hpp</a>"</p> | ||
92 | <p>represents·a·byte·range·within·a·piece.·Internally·this·is·is·used·for | ||
93 | incoming·piece·requests.</p> | ||
94 | <pre·class="literal-block"> | ||
95 | struct·peer_request | ||
96 | { | ||
97 | ···bool·<strong>operator==</strong>·(peer_request·const&·r)·const; | ||
98 | ···piece_index_t·piece; | ||
99 | ···int·start; | ||
100 | ···int·length; | ||
101 | }; | ||
102 | </pre> | ||
103 | <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"> | ||
104 | <h2>operator==()</h2> | ||
105 | <pre·class="literal-block"> | ||
106 | bool·<strong>operator==</strong>·(peer_request·const&·r)·const; | ||
107 | </pre> | ||
108 | <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 | ||
109 | range·as·this·does.</p> | ||
110 | <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"> | ||
111 | <dt>piece</dt> | ||
112 | <dd>The·index·of·the·piece·in·which·the·range·starts.</dd> | ||
113 | </dl> | ||
114 | <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"> | ||
115 | <dt>start</dt> | ||
116 | <dd>The·byte·offset·within·that·piece·where·the·range·starts.</dd> | ||
117 | </dl> | ||
118 | <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"> | ||
119 | <dt>length</dt> | ||
120 | <dd>The·size·of·the·range,·in·bytes.</dd> | ||
121 | </dl> | ||
72 | <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>< | 122 | <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> |
123 | </div> | ||
124 | <div·class="section"·id="info-hash-t"> | ||
73 | <h1>info_hash_t</h1> | 125 | <h1>info_hash_t</h1> |
74 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/info_hash.hpp">libtorrent/info_hash.hpp</a>"</p> | 126 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/info_hash.hpp">libtorrent/info_hash.hpp</a>"</p> |
75 | <p>class·holding·the·info-hash·of·a·torrent.·It·can·hold·a·v1·info-hash | 127 | <p>class·holding·the·info-hash·of·a·torrent.·It·can·hold·a·v1·info-hash |
76 | (SHA-1)·or·a·v2·info-hash·(SHA-256)·or·both.</p> | 128 | (SHA-1)·or·a·v2·info-hash·(SHA-256)·or·both.</p> |
77 | <div·class="admonition·note"> | 129 | <div·class="admonition·note"> |
78 | <p·class="first·admonition-title">Note</p> | 130 | <p·class="first·admonition-title">Note</p> |
79 | <p·class="last">If·<tt·class="docutils·literal">has_v2()</tt>·is·false·then·the·v1·hash·might·actually·be·a·truncated | 131 | <p·class="last">If·<tt·class="docutils·literal">has_v2()</tt>·is·false·then·the·v1·hash·might·actually·be·a·truncated |
80 | v2·hash</p> | 132 | v2·hash</p> |
81 | </div> | 133 | </div> |
82 | <pre·class="literal-block"> | 134 | <pre·class="literal-block"> |
83 | struct·info_hash_t | 135 | struct·info_hash_t |
84 | { | 136 | { |
85 | ···explicit·<strong>info_hash_t</strong>·(sha256_hash·h2)·noexcept; | ||
86 | ···explicit·<strong>info_hash_t</strong>·(sha1_hash·h1)·noexcept; | 137 | ···explicit·<strong>info_hash_t</strong>·(sha1_hash·h1)·noexcept; |
87 | ···<strong>info_hash_t</strong>·(sha1_hash·h1,·sha256_hash·h2)·noexcept; | ||
88 | ···<strong>info_hash_t</strong>·()·noexcept·=·default; | 138 | ···<strong>info_hash_t</strong>·()·noexcept·=·default; |
Max diff block lines reached; 34022/44932 bytes (75.72%) of diff not shown. |
Offset 1, 54 lines modified | Offset 1, 96 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k | ||
7 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t | ||
8 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8=_\x8(_\x8) | ||
6 | ····*·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t | 9 | ····*·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t |
7 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t_\x8(_\x8) | 10 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t_\x8(_\x8) |
8 | ··········o·_\x8h_\x8a_\x8s_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8__\x8v_\x81_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8__\x8v_\x82_\x8(_\x8) | 11 | ··········o·_\x8h_\x8a_\x8s_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8__\x8v_\x81_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8__\x8v_\x82_\x8(_\x8) |
9 | ··········o·_\x8g_\x8e_\x8t_\x8(_\x8) | 12 | ··········o·_\x8g_\x8e_\x8t_\x8(_\x8) |
10 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8b_\x8e_\x8s_\x8t_\x8(_\x8) | 13 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8b_\x8e_\x8s_\x8t_\x8(_\x8) |
11 | ··········o·_\x8f_\x8o_\x8r_\x8__\x8e_\x8a_\x8c_\x8h_\x8(_\x8) | 14 | ··········o·_\x8f_\x8o_\x8r_\x8__\x8e_\x8a_\x8c_\x8h_\x8(_\x8) |
12 | ····*·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k | ||
13 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t | ||
14 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8=_\x8(_\x8) | ||
15 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | 15 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o |
16 | ··········o·_\x8i_\x82_\x8p_\x8__\x8d_\x8e_\x8s_\x8t_\x8i_\x8n_\x8a_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) | 16 | ··········o·_\x8i_\x82_\x8p_\x8__\x8d_\x8e_\x8s_\x8t_\x8i_\x8n_\x8a_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) |
17 | ····*·_\x8 | 17 | ····*·_\x8t_.o_.r_.r_.e_.n_.t_.__.p_.e_.e_.r_.__.e_.q_.u_.a_.l_\x8(_\x8) |
18 | ····*·_\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
19 | ····*·_\x8t_\x8r_\x8u_\x8n_\x8c_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
18 | ····*·_\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | 20 | ····*·_\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) |
19 | ····*·_\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | 21 | ····*·_\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) |
22 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8)_\x8·_\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8)_\x8·_\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8s_\x8e_\x8d_\x8(_\x8) | ||
20 | ····*·_\x8t_\x8r_\x8u_\x8n_\x8c_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
21 | ····*·_\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
22 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8e_\x8q_\x8u_\x8a_\x8l_\x8(_\x8) | ||
23 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8 | 23 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_.o_.c_.k_.e_.t_.__.t_.y_.p_.e_.__.t |
24 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n | 24 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n |
25 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t | 25 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t |
26 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | ||
27 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t | 26 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t |
28 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l | 27 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l |
28 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8y_\x8p_\x8e | ||
29 | ····*·_\x8i_\x8n_\x8t | 29 | ····*·_\x8i_\x8n_\x8t |
30 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
31 | ····*·_\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8__\x8t | ||
32 | ····*·_\x8p_\x8e_\x8x_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
33 | ····*·_\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* | 30 | ····*·_\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* |
34 | ····*·_\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t | 31 | ····*·_\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t |
32 | ····*·_\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8__\x8t | ||
33 | ····*·_\x8p_\x8e_\x8x_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
34 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
35 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
36 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
37 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8._\x8h_\x8p_\x8p" | ||
38 | struct·piece_block | ||
39 | { | ||
40 | ···p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·(piece_index_t·p_index,·int·b_index); | ||
41 | ···p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·()·=·default; | ||
42 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r<\x8<·(piece_block·const&·b)·const; | ||
43 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(piece_block·const&·b)·const; | ||
44 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r!\x8!=\x8=·(piece_block·const&·b)·const; | ||
45 | ···static·const·piece_block·invalid; | ||
46 | ···piece_index_t·piece_index·{0}; | ||
47 | ···int·b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_i\x8in\x8nd\x8de\x8ex\x8x··=·0; | ||
48 | }; | ||
49 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
50 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8pe\x8ee\x8er\x8r_\x8_r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
51 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8._\x8h_\x8p_\x8p" | ||
52 | represents·a·byte·range·within·a·piece.·Internally·this·is·is·used·for·incoming | ||
53 | piece·requests. | ||
54 | struct·peer_request | ||
55 | { | ||
56 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(peer_request·const&·r)·const; | ||
57 | ···piece_index_t·piece; | ||
58 | ···int·start; | ||
59 | ···int·length; | ||
60 | }; | ||
61 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
62 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
63 | bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(peer_request·const&·r)·const; | ||
64 | returns·true·if·the·right·hand·side·_\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t·refers·to·the·same·range·as | ||
65 | this·does. | ||
66 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
67 | ··piece | ||
68 | ······The·index·of·the·piece·in·which·the·range·starts. | ||
69 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
70 | ··start | ||
71 | ······The·byte·offset·within·that·piece·where·the·range·starts. | ||
72 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
73 | ··length | ||
74 | ······The·size·of·the·range,·in·bytes. | ||
35 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 75 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
36 | *\x8**\x8**\x8**\x8**\x8**\x8*·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* | 76 | *\x8**\x8**\x8**\x8**\x8**\x8*·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·*\x8**\x8**\x8**\x8**\x8**\x8* |
37 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8._\x8h_\x8p_\x8p" | 77 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8._\x8h_\x8p_\x8p" |
38 | class·holding·the·info-hash·of·a·torrent.·It·can·hold·a·v1·info-hash·(SHA-1)·or | 78 | class·holding·the·info-hash·of·a·torrent.·It·can·hold·a·v1·info-hash·(SHA-1)·or |
39 | a·v2·info-hash·(SHA-256)·or·both. | 79 | a·v2·info-hash·(SHA-256)·or·both. |
40 | Note | 80 | Note |
41 | If·has_v2()·is·false·then·the·v1·hash·might·actually·be·a·truncated·v2·hash | 81 | If·has_v2()·is·false·then·the·v1·hash·might·actually·be·a·truncated·v2·hash |
42 | struct·info_hash_t | 82 | struct·info_hash_t |
43 | { | 83 | { |
44 | ···explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha256_hash·h2)·noexcept; | ||
45 | ···explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1)·noexcept; | 84 | ···explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1)·noexcept; |
46 | ···i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1,·sha256_hash·h2)·noexcept; | ||
47 | ···i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·()·noexcept·=·default; | 85 | ···i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·()·noexcept·=·default; |
86 | ···explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha256_hash·h2)·noexcept; | ||
87 | ···i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1,·sha256_hash·h2)·noexcept; | ||
48 | ···bool·h\x8ha\x8as\x8s_\x8_v\x8v2\x82·()·const; | 88 | ···bool·h\x8ha\x8as\x8s_\x8_v\x8v2\x82·()·const; |
49 | ···bool·h\x8ha\x8as\x8s_\x8_v\x8v1\x81·()·const; | 89 | ···bool·h\x8ha\x8as\x8s_\x8_v\x8v1\x81·()·const; |
50 | ···bool·h\x8ha\x8as\x8s·(protocol_version·v)·const; | 90 | ···bool·h\x8ha\x8as\x8s·(protocol_version·v)·const; |
51 | ···sha1_hash·g\x8ge\x8et\x8t·(protocol_version·v)·const; | 91 | ···sha1_hash·g\x8ge\x8et\x8t·(protocol_version·v)·const; |
52 | ···sha1_hash·g\x8ge\x8et\x8t_\x8_b\x8be\x8es\x8st\x8t·()·const; | 92 | ···sha1_hash·g\x8ge\x8et\x8t_\x8_b\x8be\x8es\x8st\x8t·()·const; |
53 | ···friend·bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r!\x8!=\x8=·(info_hash_t·const&·lhs,·info_hash_t·const&·rhs); | 93 | ···friend·bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r!\x8!=\x8=·(info_hash_t·const&·lhs,·info_hash_t·const&·rhs); |
54 | ···friend·bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(info_hash_t·const&·lhs,·info_hash_t·const&·rhs) | 94 | ···friend·bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(info_hash_t·const&·lhs,·info_hash_t·const&·rhs) |
Offset 58, 18 lines modified | Offset 100, 18 lines modified | ||
58 | ···friend·std::ostream&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r<\x8<<\x8<·(std::ostream&·os,·info_hash_t·const&·ih); | 100 | ···friend·std::ostream&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r<\x8<<\x8<·(std::ostream&·os,·info_hash_t·const&·ih); |
59 | ···sha1_hash·v1; | 101 | ···sha1_hash·v1; |
60 | ···sha256_hash·v2; | 102 | ···sha256_hash·v2; |
61 | }; | 103 | }; |
62 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 104 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
63 | *\x8**\x8**\x8**\x8**\x8*·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 105 | *\x8**\x8**\x8**\x8**\x8*·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
64 | explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha256_hash·h2)·noexcept; | ||
65 | explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1)·noexcept; | 106 | explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1)·noexcept; |
66 | i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1,·sha256_hash·h2)·noexcept; | ||
67 | i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·()·noexcept·=·default; | 107 | i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·()·noexcept·=·default; |
108 | explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha256_hash·h2)·noexcept; | ||
109 | i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1,·sha256_hash·h2)·noexcept; | ||
68 | The·default·constructor·creates·an·object·that·has·neither·a·v1·or·v2·hash. | 110 | The·default·constructor·creates·an·object·that·has·neither·a·v1·or·v2·hash. |
69 | For·backwards·compatibility,·make·it·possible·to·construct·directly·from·a·v1 | 111 | For·backwards·compatibility,·make·it·possible·to·construct·directly·from·a·v1 |
70 | hash.·This·constructor·allows·i\x8im\x8mp\x8pl\x8li\x8ic\x8ci\x8it\x8t·conversion·from·a·v1·hash,·but·the | 112 | hash.·This·constructor·allows·i\x8im\x8mp\x8pl\x8li\x8ic\x8ci\x8it\x8t·conversion·from·a·v1·hash,·but·the |
71 | implicitness·is·deprecated. | 113 | implicitness·is·deprecated. |
72 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 114 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
Max diff block lines reached; 22983/29717 bytes (77.34%) of diff not shown. |
Offset 37, 25 lines modified | Offset 37, 25 lines modified | ||
37 | <li><a·class="reference·internal"·href="#generate-generate-buf"·id="toc-entry-3">generate()·generate_buf()</a></li> | 37 | <li><a·class="reference·internal"·href="#generate-generate-buf"·id="toc-entry-3">generate()·generate_buf()</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- | 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> |
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="# | 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- | 54 | <li><a·class="reference·internal"·href="#piece-size-piece-length"·id="toc-entry-20">piece_size()·piece_length()</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 105, 17 lines modified | Offset 105, 17 lines modified | ||
105 | <p>This·class·holds·state·for·creating·a·torrent.·After·having·added | 105 | <p>This·class·holds·state·for·creating·a·torrent.·After·having·added |
106 | all·information·to·it,·call·<a·class="reference·external"·href="reference-Create_Torrents.html#generate()">create_torrent::generate()</a>·to·generate | 106 | all·information·to·it,·call·<a·class="reference·external"·href="reference-Create_Torrents.html#generate()">create_torrent::generate()</a>·to·generate |
107 | the·torrent.·The·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>·that's·returned·can·then·be·bencoded·into·a | 107 | the·torrent.·The·<a·class="reference·external"·href="reference-Bencoding.html#entry">entry</a>·that's·returned·can·then·be·bencoded·into·a |
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_torrent | 110 | struct·create_torrent |
111 | { | 111 | { |
112 | ···explicit·<strong>create_torrent</strong>·(torrent_info·const&·ti); | ||
112 | ···explicit·<strong>create_torrent</strong>·(file_storage&·fs,·int·piece_size·=·0 | 113 | ···explicit·<strong>create_torrent</strong>·(file_storage&·fs,·int·piece_size·=·0 |
113 | ······,·create_flags_t·flags·=·{}); | 114 | ······,·create_flags_t·flags·=·{}); |
114 | ···explicit·<strong>create_torrent</strong>·(torrent_info·const&·ti); | ||
115 | ···std::vector<char>·<strong>generate_buf</strong>·()·const; | 115 | ···std::vector<char>·<strong>generate_buf</strong>·()·const; |
116 | ···entry·<strong>generate</strong>·()·const; | 116 | ···entry·<strong>generate</strong>·()·const; |
117 | ···file_storage·const&·<strong>files</strong>·()·const; | 117 | ···file_storage·const&·<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&·h); | 121 | ···void·<strong>set_hash</strong>·(piece_index_t·index,·sha1_hash·const&·h); |
Offset 123, 16 lines modified | Offset 123, 16 lines modified | ||
123 | ···void·<strong>add_url_seed</strong>·(string_view·url); | 123 | ···void·<strong>add_url_seed</strong>·(string_view·url); |
124 | ···void·<strong>add_http_seed</strong>·(string_view·url); | 124 | ···void·<strong>add_http_seed</strong>·(string_view·url); |
125 | ···void·<strong>add_node</strong>·(std::pair<std::string,·int>·node); | 125 | ···void·<strong>add_node</strong>·(std::pair<std::string,·int>·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 | ···void·<strong>set_priv</strong>·(bool·p); | 128 | ···void·<strong>set_priv</strong>·(bool·p); |
129 | ···bool·<strong>priv</strong>·()·const; | 129 | ···bool·<strong>priv</strong>·()·const; |
130 | ···bool·<strong>is_v1_only</strong>·()·const; | ||
131 | ···bool·<strong>is_v2_only</strong>·()·const; | 130 | ···bool·<strong>is_v2_only</strong>·()·const; |
131 | ···bool·<strong>is_v1_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<piece_index_t>·<strong>piece_range</strong>·()·const·noexcept; | 134 | ···index_range<piece_index_t>·<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<file_index_t>·<strong>file_range</strong>·()·const·noexcept; | 136 | ···index_range<file_index_t>·<strong>file_range</strong>·()·const·noexcept; |
137 | ···index_range<piece_index_t::diff_type>·<strong>file_piece_range</strong>·(file_index_t·f); | 137 | ···index_range<piece_index_t::diff_type>·<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; |
Offset 149, 17 lines modified | Offset 149, 17 lines modified | ||
149 | ···static·constexpr·create_flags_t·<strong>no_attributes</strong>··=·8_bit; | 149 | ···static·constexpr·create_flags_t·<strong>no_attributes</strong>··=·8_bit; |
150 | ···static·constexpr·create_flags_t·<strong>canonical_files_no_tail_padding</strong>··=·9_bit; | 150 | ···static·constexpr·create_flags_t·<strong>canonical_files_no_tail_padding</strong>··=·9_bit; |
151 | }; | 151 | }; |
152 | </pre> | 152 | </pre> |
153 | <a·name="create_torrent()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Bcreate_torrent%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5Bcreate_torrent%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="create-torrent-1"> | 153 | <a·name="create_torrent()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Bcreate_torrent%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5Bcreate_torrent%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="create-torrent-1"> |
154 | <h2>create_torrent()</h2> | 154 | <h2>create_torrent()</h2> |
155 | <pre·class="literal-block"> | 155 | <pre·class="literal-block"> |
156 | explicit·<strong>create_torrent</strong>·(torrent_info·const&·ti); | ||
156 | explicit·<strong>create_torrent</strong>·(file_storage&·fs,·int·piece_size·=·0 | 157 | explicit·<strong>create_torrent</strong>·(file_storage&·fs,·int·piece_size·=·0 |
157 | ······,·create_flags_t·flags·=·{}); | 158 | ······,·create_flags_t·flags·=·{}); |
158 | explicit·<strong>create_torrent</strong>·(torrent_info·const&·ti); | ||
159 | </pre> | 159 | </pre> |
160 | <p>The·<tt·class="docutils·literal">piece_size</tt>·is·the·size·of·each·piece·in·bytes.·It·must·be·a | 160 | <p>The·<tt·class="docutils·literal">piece_size</tt>·is·the·size·of·each·piece·in·bytes.·It·must·be·a |
161 | power·of·2·and·a·minimum·of·16·kiB.·If·a·piece·size·of·0·is | 161 | power·of·2·and·a·minimum·of·16·kiB.·If·a·piece·size·of·0·is |
162 | specified,·a·piece_size·will·be·set·automatically. | 162 | specified,·a·piece_size·will·be·set·automatically. |
163 | Piece·sizes·greater·than·128·MiB·are·considered·unreasonable·and·will | 163 | Piece·sizes·greater·than·128·MiB·are·considered·unreasonable·and·will |
164 | be·rejected·(with·an·lt::system_error·exception).</p> | 164 | be·rejected·(with·an·lt::system_error·exception).</p> |
165 | <p>The·<tt·class="docutils·literal">flags</tt>·arguments·specifies·options·for·the·torrent·creation.·It·can | 165 | <p>The·<tt·class="docutils·literal">flags</tt>·arguments·specifies·options·for·the·torrent·creation.·It·can |
Offset 272, 18 lines modified | Offset 272, 18 lines modified | ||
272 | 16·kiB·blocks.·Note·that·piece·sizes·must·be·powers-of-2,·so·all | 272 | 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·hash | 274 | 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·set | 275 | 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·an | 277 | 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_ | 279 | <a·name="add_http_seed()"></a> |
280 | <a·name="add_ | 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> |
281 | <div·class="section"·id="add- | 281 | <div·class="section"·id="add-http-seed-add-url-seed"> |
282 | <h2>add_ | 282 | <h2>add_http_seed()·add_url_seed()</h2> |
283 | <pre·class="literal-block"> | 283 | <pre·class="literal-block"> |
284 | void·<strong>add_url_seed</strong>·(string_view·url); | 284 | void·<strong>add_url_seed</strong>·(string_view·url); |
285 | void·<strong>add_http_seed</strong>·(string_view·url); | 285 | void·<strong>add_http_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·a | 287 | <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·identical | 288 | 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·to | 289 | content·as·the·file·of·the·torrent.·For·a·multi-file·torrent,·it·should·point·to |
Offset 320, 18 lines modified | Offset 320, 18 lines modified | ||
320 | </pre> | 320 | </pre> |
321 | <p>This·function·sets·an·X.509·certificate·in·PEM·format·to·the·torrent.·This·makes·the | 321 | <p>This·function·sets·an·X.509·certificate·in·PEM·format·to·the·torrent.·This·makes·the |
322 | torrent·an·<em>SSL·torrent</em>.·An·SSL·torrent·requires·that·each·peer·has·a·valid·certificate | 322 | torrent·an·<em>SSL·torrent</em>.·An·SSL·torrent·requires·that·each·peer·has·a·valid·certificate |
323 | signed·by·this·root·certificate.·For·SSL·torrents,·all·peers·are·connecting·over·SSL | 323 | signed·by·this·root·certificate.·For·SSL·torrents,·all·peers·are·connecting·over·SSL |
324 | connections.·For·more·information,·see·the·section·on·<a·class="reference·external"·href="manual-ref.html#ssl-torrents">ssl·torrents</a>.</p> | 324 | connections.·For·more·information,·see·the·section·on·<a·class="reference·external"·href="manual-ref.html#ssl-torrents">ssl·torrents</a>.</p> |
325 | <p>The·string·is·not·the·path·to·the·cert,·it's·the·actual·content·of·the | 325 | <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=" | 327 | <a·name="priv()"></a> |
328 | <a·name="priv()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5B | 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+se[·...·truncated·by·diffoscope;·len:·2,·SHA:·032beb669f27bd2bbc9f02b3546079a3a7ce253bc0fc0ef590cc76f040ec384c·...·]priv%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
329 | <div·class="section"·id=" | 329 | <div·class="section"·id="priv-set-priv"> |
330 | <h2> | 330 | <h2>priv()·set_priv()</h2> |
331 | <pre·class="literal-block"> | 331 | <pre·class="literal-block"> |
332 | void·<strong>set_priv</strong>·(bool·p); | 332 | void·<strong>set_priv</strong>·(bool·p); |
333 | bool·<strong>priv</strong>·()·const; | 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·other | 336 | Torrents·with·the·private·flag·set·ask·the·client·to·not·use·any·other |
337 | sources·than·the·tracker·for·peers,·and·to·not·use·DHT·to·advertise·itself·publicly, | 337 | sources·than·the·tracker·for·peers,·and·to·not·use·DHT·to·advertise·itself·publicly, |
Offset 369, 18 lines modified | Offset 369, 18 lines modified | ||
369 | <a·name="total_size()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Btotal_size%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5Btotal_size%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 369 | <a·name="total_size()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:create_torrent%3A%3A%5Btotal_size%28%29%5D&labels=documentation&body=Documentation+under+heading+%22create_torrent%3A%3A%5Btotal_size%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
370 | <div·class="section"·id="total-size"> | 370 | <div·class="section"·id="total-size"> |
371 | <h2>total_size()</h2> | 371 | <h2>total_size()</h2> |
372 | <pre·class="literal-block"> | 372 | <pre·class="literal-block"> |
373 | std::int64_t·<strong>total_size</strong>·()·const; | 373 | std::int64_t·<strong>total_size</strong>·()·const; |
374 | </pre> | 374 | </pre> |
375 | <p>the·total·number·of·bytes·of·all·files·and·pad·files</p> | 375 | <p>the·total·number·of·bytes·of·all·files·and·pad·files</p> |
Max diff block lines reached; 3176/14575 bytes (21.79%) of diff not shown. |
Offset 8, 25 lines modified | Offset 8, 25 lines modified | ||
8 | ··········o·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8(_\x8)_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8__\x8b_\x8u_\x8f_\x8(_\x8) | 8 | ··········o·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8(_\x8)_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8__\x8b_\x8u_\x8f_\x8(_\x8) |
9 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 9 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
10 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8c_\x8o_\x8m_\x8m_\x8e_\x8n_\x8t_\x8(_\x8) | 10 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8c_\x8o_\x8m_\x8m_\x8e_\x8n_\x8t_\x8(_\x8) |
11 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8o_\x8r_\x8(_\x8) | 11 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8o_\x8r_\x8(_\x8) |
12 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | 12 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8c_\x8r_\x8e_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8d_\x8a_\x8t_\x8e_\x8(_\x8) |
13 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8) | 13 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8) |
14 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8h_\x8a_\x8s_\x8h_\x82_\x8(_\x8) | 14 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8h_\x8a_\x8s_\x8h_\x82_\x8(_\x8) |
15 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8 | 15 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8h_.t_.t_.p_.__.s_.e_.e_.d_.(_.)_.·_.a_.d_.d_.__.u_.r_.l_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8) |
16 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) | 16 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) |
17 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8(_\x8) | 17 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8(_\x8) |
18 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8r_\x8o_\x8o_\x8t_\x8__\x8c_\x8e_\x8r_\x8t_\x8(_\x8) | 18 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8r_\x8o_\x8o_\x8t_\x8__\x8c_\x8e_\x8r_\x8t_\x8(_\x8) |
19 | ··········o·_\x8 | 19 | ··········o·_\x8p_.r_.i_.v_.(_.)_.·_.s_.e_.t_.__\x8p_\x8r_\x8i_\x8v_\x8(_\x8) |
20 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8) | 20 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8) |
21 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) | 21 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) |
22 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) | 22 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) |
23 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) | 23 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) |
24 | ··········o·_\x8t_\x8o_\x8t_\x8a_\x8l_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | 24 | ··········o·_\x8t_\x8o_\x8t_\x8a_\x8l_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) |
25 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8 | 25 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_.i_.z_.e_.(_.)_.·_.p_.i_.e_.c_.e_.__.l_.e_.n_.g_.t_.h_\x8(_\x8) |
26 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8s_\x8i_\x8m_\x8i_\x8l_\x8a_\x8r_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8)_\x8·_\x8a_\x8d_\x8d_\x8__\x8c_\x8o_\x8l_\x8l_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) | 26 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8s_\x8i_\x8m_\x8i_\x8l_\x8a_\x8r_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8)_\x8·_\x8a_\x8d_\x8d_\x8__\x8c_\x8o_\x8l_\x8l_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) |
27 | ····*·_\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 27 | ····*·_\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
28 | ····*·_\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) | 28 | ····*·_\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) |
29 | This·section·describes·the·functions·and·classes·that·are·used·to·create | 29 | This·section·describes·the·functions·and·classes·that·are·used·to·create |
30 | torrent·files.·It·is·a·layered·API·with·low·level·classes·and·higher·level | 30 | torrent·files.·It·is·a·layered·API·with·low·level·classes·and·higher·level |
31 | convenience·functions.·A·torrent·is·created·in·4·steps: | 31 | convenience·functions.·A·torrent·is·created·in·4·steps: |
32 | ···1.·first·the·files·that·will·be·part·of·the·torrent·are·determined. | 32 | ···1.·first·the·files·that·will·be·part·of·the·torrent·are·determined. |
Offset 66, 17 lines modified | Offset 66, 17 lines modified | ||
66 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8._\x8h_\x8p_\x8p" | 66 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8._\x8h_\x8p_\x8p" |
67 | This·class·holds·state·for·creating·a·torrent.·After·having·added·all | 67 | This·class·holds·state·for·creating·a·torrent.·After·having·added·all |
68 | information·to·it,·call·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8:_\x8:_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8(_\x8)·to·generate·the·torrent.·The | 68 | information·to·it,·call·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8:_\x8:_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8(_\x8)·to·generate·the·torrent.·The |
69 | _\x8e_\x8n_\x8t_\x8r_\x8y·that's·returned·can·then·be·bencoded·into·a·.torrent·file·using·_\x8b_\x8e_\x8n_\x8c_\x8o_\x8d_\x8e | 69 | _\x8e_\x8n_\x8t_\x8r_\x8y·that's·returned·can·then·be·bencoded·into·a·.torrent·file·using·_\x8b_\x8e_\x8n_\x8c_\x8o_\x8d_\x8e |
70 | _\x8(_\x8). | 70 | _\x8(_\x8). |
71 | struct·create_torrent | 71 | struct·create_torrent |
72 | { | 72 | { |
73 | ···explicit·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(torrent_info·const&·ti); | ||
73 | ···explicit·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(file_storage&·fs,·int·piece_size·=·0 | 74 | ···explicit·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(file_storage&·fs,·int·piece_size·=·0 |
74 | ······,·create_flags_t·flags·=·{}); | 75 | ······,·create_flags_t·flags·=·{}); |
75 | ···explicit·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(torrent_info·const&·ti); | ||
76 | ···std::vector<char>·g\x8ge\x8en\x8ne\x8er\x8ra\x8at\x8te\x8e_\x8_b\x8bu\x8uf\x8f·()·const; | 76 | ···std::vector<char>·g\x8ge\x8en\x8ne\x8er\x8ra\x8at\x8te\x8e_\x8_b\x8bu\x8uf\x8f·()·const; |
77 | ···entry·g\x8ge\x8en\x8ne\x8er\x8ra\x8at\x8te\x8e·()·const; | 77 | ···entry·g\x8ge\x8en\x8ne\x8er\x8ra\x8at\x8te\x8e·()·const; |
78 | ···file_storage·const&·f\x8fi\x8il\x8le\x8es\x8s·()·const; | 78 | ···file_storage·const&·f\x8fi\x8il\x8le\x8es\x8s·()·const; |
79 | ···void·s\x8se\x8et\x8t_\x8_c\x8co\x8om\x8mm\x8me\x8en\x8nt\x8t·(char·const*·str); | 79 | ···void·s\x8se\x8et\x8t_\x8_c\x8co\x8om\x8mm\x8me\x8en\x8nt\x8t·(char·const*·str); |
80 | ···void·s\x8se\x8et\x8t_\x8_c\x8cr\x8re\x8ea\x8at\x8to\x8or\x8r·(char·const*·str); | 80 | ···void·s\x8se\x8et\x8t_\x8_c\x8cr\x8re\x8ea\x8at\x8to\x8or\x8r·(char·const*·str); |
81 | ···void·s\x8se\x8et\x8t_\x8_c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n_\x8_d\x8da\x8at\x8te\x8e·(std::time_t·timestamp); | 81 | ···void·s\x8se\x8et\x8t_\x8_c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n_\x8_d\x8da\x8at\x8te\x8e·(std::time_t·timestamp); |
82 | ···void·s\x8se\x8et\x8t_\x8_h\x8ha\x8as\x8sh\x8h·(piece_index_t·index,·sha1_hash·const&·h); | 82 | ···void·s\x8se\x8et\x8t_\x8_h\x8ha\x8as\x8sh\x8h·(piece_index_t·index,·sha1_hash·const&·h); |
Offset 85, 16 lines modified | Offset 85, 16 lines modified | ||
85 | ···void·a\x8ad\x8dd\x8d_\x8_u\x8ur\x8rl\x8l_\x8_s\x8se\x8ee\x8ed\x8d·(string_view·url); | 85 | ···void·a\x8ad\x8dd\x8d_\x8_u\x8ur\x8rl\x8l_\x8_s\x8se\x8ee\x8ed\x8d·(string_view·url); |
86 | ···void·a\x8ad\x8dd\x8d_\x8_h\x8ht\x8tt\x8tp\x8p_\x8_s\x8se\x8ee\x8ed\x8d·(string_view·url); | 86 | ···void·a\x8ad\x8dd\x8d_\x8_h\x8ht\x8tt\x8tp\x8p_\x8_s\x8se\x8ee\x8ed\x8d·(string_view·url); |
87 | ···void·a\x8ad\x8dd\x8d_\x8_n\x8no\x8od\x8de\x8e·(std::pair<std::string,·int>·node); | 87 | ···void·a\x8ad\x8dd\x8d_\x8_n\x8no\x8od\x8de\x8e·(std::pair<std::string,·int>·node); |
88 | ···void·a\x8ad\x8dd\x8d_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r·(string_view·url,·int·tier·=·0); | 88 | ···void·a\x8ad\x8dd\x8d_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r·(string_view·url,·int·tier·=·0); |
89 | ···void·s\x8se\x8et\x8t_\x8_r\x8ro\x8oo\x8ot\x8t_\x8_c\x8ce\x8er\x8rt\x8t·(string_view·cert); | 89 | ···void·s\x8se\x8et\x8t_\x8_r\x8ro\x8oo\x8ot\x8t_\x8_c\x8ce\x8er\x8rt\x8t·(string_view·cert); |
90 | ···void·s\x8se\x8et\x8t_\x8_p\x8pr\x8ri\x8iv\x8v·(bool·p); | 90 | ···void·s\x8se\x8et\x8t_\x8_p\x8pr\x8ri\x8iv\x8v·(bool·p); |
91 | ···bool·p\x8pr\x8ri\x8iv\x8v·()·const; | 91 | ···bool·p\x8pr\x8ri\x8iv\x8v·()·const; |
92 | ···bool·i\x8is\x8s_\x8_v\x8v1\x81_\x8_o\x8on\x8nl\x8ly\x8y·()·const; | ||
93 | ···bool·i\x8is\x8s_\x8_v\x8v2\x82_\x8_o\x8on\x8nl\x8ly\x8y·()·const; | 92 | ···bool·i\x8is\x8s_\x8_v\x8v2\x82_\x8_o\x8on\x8nl\x8ly\x8y·()·const; |
93 | ···bool·i\x8is\x8s_\x8_v\x8v1\x81_\x8_o\x8on\x8nl\x8ly\x8y·()·const; | ||
94 | ···int·n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·()·const; | 94 | ···int·n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·()·const; |
95 | ···piece_index_t·e\x8en\x8nd\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; | 95 | ···piece_index_t·e\x8en\x8nd\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; |
96 | ···index_range<piece_index_t>·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const·noexcept; | 96 | ···index_range<piece_index_t>·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const·noexcept; |
97 | ···file_index_t·e\x8en\x8nd\x8d_\x8_f\x8fi\x8il\x8le\x8e·()·const; | 97 | ···file_index_t·e\x8en\x8nd\x8d_\x8_f\x8fi\x8il\x8le\x8e·()·const; |
98 | ···index_range<file_index_t>·f\x8fi\x8il\x8le\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const·noexcept; | 98 | ···index_range<file_index_t>·f\x8fi\x8il\x8le\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const·noexcept; |
99 | ···index_range<piece_index_t::diff_type>·f\x8fi\x8il\x8le\x8e_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·(file_index_t·f); | 99 | ···index_range<piece_index_t::diff_type>·f\x8fi\x8il\x8le\x8e_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·(file_index_t·f); |
100 | ···std::int64_t·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e·()·const; | 100 | ···std::int64_t·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e·()·const; |
Offset 109, 17 lines modified | Offset 109, 17 lines modified | ||
109 | ···static·constexpr·create_flags_t·v\x8v1\x81_\x8_o\x8on\x8nl\x8ly\x8y··=·6_bit; | 109 | ···static·constexpr·create_flags_t·v\x8v1\x81_\x8_o\x8on\x8nl\x8ly\x8y··=·6_bit; |
110 | ···static·constexpr·create_flags_t·c\x8ca\x8an\x8no\x8on\x8ni\x8ic\x8ca\x8al\x8l_\x8_f\x8fi\x8il\x8le\x8es\x8s··=·7_bit; | 110 | ···static·constexpr·create_flags_t·c\x8ca\x8an\x8no\x8on\x8ni\x8ic\x8ca\x8al\x8l_\x8_f\x8fi\x8il\x8le\x8es\x8s··=·7_bit; |
111 | ···static·constexpr·create_flags_t·n\x8no\x8o_\x8_a\x8at\x8tt\x8tr\x8ri\x8ib\x8bu\x8ut\x8te\x8es\x8s··=·8_bit; | 111 | ···static·constexpr·create_flags_t·n\x8no\x8o_\x8_a\x8at\x8tt\x8tr\x8ri\x8ib\x8bu\x8ut\x8te\x8es\x8s··=·8_bit; |
112 | ···static·constexpr·create_flags_t·c\x8ca\x8an\x8no\x8on\x8ni\x8ic\x8ca\x8al\x8l_\x8_f\x8fi\x8il\x8le\x8es\x8s_\x8_n\x8no\x8o_\x8_t\x8ta\x8ai\x8il\x8l_\x8_p\x8pa\x8ad\x8dd\x8di\x8in\x8ng\x8g··=·9_bit; | 112 | ···static·constexpr·create_flags_t·c\x8ca\x8an\x8no\x8on\x8ni\x8ic\x8ca\x8al\x8l_\x8_f\x8fi\x8il\x8le\x8es\x8s_\x8_n\x8no\x8o_\x8_t\x8ta\x8ai\x8il\x8l_\x8_p\x8pa\x8ad\x8dd\x8di\x8in\x8ng\x8g··=·9_bit; |
113 | }; | 113 | }; |
114 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 114 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
115 | *\x8**\x8**\x8**\x8**\x8*·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 115 | *\x8**\x8**\x8**\x8**\x8*·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
116 | explicit·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(torrent_info·const&·ti); | ||
116 | explicit·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(file_storage&·fs,·int·piece_size·=·0 | 117 | explicit·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(file_storage&·fs,·int·piece_size·=·0 |
117 | ······,·create_flags_t·flags·=·{}); | 118 | ······,·create_flags_t·flags·=·{}); |
118 | explicit·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(torrent_info·const&·ti); | ||
119 | The·piece_size·is·the·size·of·each·piece·in·bytes.·It·must·be·a·power·of·2·and | 119 | The·piece_size·is·the·size·of·each·piece·in·bytes.·It·must·be·a·power·of·2·and |
120 | a·minimum·of·16·kiB.·If·a·piece·size·of·0·is·specified,·a·piece_size·will·be | 120 | a·minimum·of·16·kiB.·If·a·piece·size·of·0·is·specified,·a·piece_size·will·be |
121 | set·automatically.·Piece·sizes·greater·than·128·MiB·are·considered·unreasonable | 121 | set·automatically.·Piece·sizes·greater·than·128·MiB·are·considered·unreasonable |
122 | and·will·be·rejected·(with·an·lt::system_error·exception). | 122 | and·will·be·rejected·(with·an·lt::system_error·exception). |
123 | The·flags·arguments·specifies·options·for·the·torrent·creation.·It·can·be·any | 123 | The·flags·arguments·specifies·options·for·the·torrent·creation.·It·can·be·any |
124 | combination·of·the·flags·defined·by·create_flags_t. | 124 | combination·of·the·flags·defined·by·create_flags_t. |
125 | The·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e·(fs)·parameter·defines·the·files,·sizes·and·their·properties | 125 | The·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e·(fs)·parameter·defines·the·files,·sizes·and·their·properties |
Offset 198, 15 lines modified | Offset 198, 15 lines modified | ||
198 | the·merkle·tree·formed·by·the·piece's·16·kiB·blocks.·Note·that·piece·sizes·must | 198 | the·merkle·tree·formed·by·the·piece's·16·kiB·blocks.·Note·that·piece·sizes·must |
199 | be·powers-of-2,·so·all·per-piece·merkle·trees·are·complete.·A·SHA-256·hash·of | 199 | be·powers-of-2,·so·all·per-piece·merkle·trees·are·complete.·A·SHA-256·hash·of |
200 | all·zeros·is·internally·used·to·indicate·a·hash·that·has·not·been·set.·Setting | 200 | all·zeros·is·internally·used·to·indicate·a·hash·that·has·not·been·set.·Setting |
201 | such·hash·will·not·be·considered·set·when·calling·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8(_\x8).·This·function | 201 | such·hash·will·not·be·considered·set·when·calling·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8(_\x8).·This·function |
202 | will·throw·std::system_error·if·it·is·called·on·an·object·constructed·with·the | 202 | will·throw·std::system_error·if·it·is·called·on·an·object·constructed·with·the |
203 | v1_only·flag. | 203 | v1_only·flag. |
204 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 204 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
205 | *\x8**\x8**\x8**\x8**\x8*·a\x8ad\x8dd\x8d_\x8_ | 205 | *\x8**\x8**\x8**\x8**\x8*·a\x8ad\x8dd\x8d_\x8_h.ht.tt.tp.p_._s.se.ee.ed.d(.().)·a.ad.dd.d_._u.ur.rl.l_\x8_s\x8se\x8ee\x8ed\x8d(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
206 | void·a\x8ad\x8dd\x8d_\x8_u\x8ur\x8rl\x8l_\x8_s\x8se\x8ee\x8ed\x8d·(string_view·url); | 206 | void·a\x8ad\x8dd\x8d_\x8_u\x8ur\x8rl\x8l_\x8_s\x8se\x8ee\x8ed\x8d·(string_view·url); |
207 | void·a\x8ad\x8dd\x8d_\x8_h\x8ht\x8tt\x8tp\x8p_\x8_s\x8se\x8ee\x8ed\x8d·(string_view·url); | 207 | void·a\x8ad\x8dd\x8d_\x8_h\x8ht\x8tt\x8tp\x8p_\x8_s\x8se\x8ee\x8ed\x8d·(string_view·url); |
208 | This·adds·a·url·seed·to·the·torrent.·You·can·have·any·number·of·url·seeds.·For | 208 | This·adds·a·url·seed·to·the·torrent.·You·can·have·any·number·of·url·seeds.·For |
209 | a·single·file·torrent,·this·should·be·an·HTTP·url,·pointing·to·a·file·with | 209 | a·single·file·torrent,·this·should·be·an·HTTP·url,·pointing·to·a·file·with |
210 | identical·content·as·the·file·of·the·torrent.·For·a·multi-file·torrent,·it | 210 | identical·content·as·the·file·of·the·torrent.·For·a·multi-file·torrent,·it |
211 | should·point·to·a·directory·containing·a·directory·with·the·same·name·as·this | 211 | should·point·to·a·directory·containing·a·directory·with·the·same·name·as·this |
212 | torrent,·and·all·the·files·of·the·torrent·in·it. | 212 | torrent,·and·all·the·files·of·the·torrent·in·it. |
Offset 235, 15 lines modified | Offset 235, 15 lines modified | ||
235 | makes·the·torrent·an·S\x8SS\x8SL\x8L·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t.·An·SSL·torrent·requires·that·each·peer·has·a | 235 | makes·the·torrent·an·S\x8SS\x8SL\x8L·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t.·An·SSL·torrent·requires·that·each·peer·has·a |
236 | valid·certificate·signed·by·this·root·certificate.·For·SSL·torrents,·all·peers | 236 | valid·certificate·signed·by·this·root·certificate.·For·SSL·torrents,·all·peers |
237 | are·connecting·over·SSL·connections.·For·more·information,·see·the·section·on | 237 | are·connecting·over·SSL·connections.·For·more·information,·see·the·section·on |
238 | _\x8s_\x8s_\x8l_\x8·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8s. | 238 | _\x8s_\x8s_\x8l_\x8·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8s. |
239 | The·string·is·not·the·path·to·the·cert,·it's·the·actual·content·of·the | 239 | The·string·is·not·the·path·to·the·cert,·it's·the·actual·content·of·the |
240 | certificate. | 240 | certificate. |
241 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 241 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
242 | *\x8**\x8**\x8**\x8**\x8*· | 242 | *\x8**\x8**\x8**\x8**\x8*·p.pr.ri.iv.v(.().)·s.se.et.t_._p\x8pr\x8ri\x8iv\x8v(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
243 | void·s\x8se\x8et\x8t_\x8_p\x8pr\x8ri\x8iv\x8v·(bool·p); | 243 | void·s\x8se\x8et\x8t_\x8_p\x8pr\x8ri\x8iv\x8v·(bool·p); |
244 | bool·p\x8pr\x8ri\x8iv\x8v·()·const; | 244 | bool·p\x8pr\x8ri\x8iv\x8v·()·const; |
245 | Sets·and·queries·the·private·flag·of·the·torrent.·Torrents·with·the·private | 245 | Sets·and·queries·the·private·flag·of·the·torrent.·Torrents·with·the·private |
246 | flag·set·ask·the·client·to·not·use·any·other·sources·than·the·tracker·for | 246 | flag·set·ask·the·client·to·not·use·any·other·sources·than·the·tracker·for |
247 | peers,·and·to·not·use·DHT·to·advertise·itself·publicly,·only·the·tracker. | 247 | peers,·and·to·not·use·DHT·to·advertise·itself·publicly,·only·the·tracker. |
248 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 248 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
249 | *\x8**\x8**\x8**\x8**\x8*·n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 249 | *\x8**\x8**\x8**\x8**\x8*·n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
Offset 263, 15 lines modified | Offset 263, 15 lines modified | ||
263 | for·v2·and·hybrid·torrents·only,·the·pieces·in·the·specified·file,·specified·as | 263 | for·v2·and·hybrid·torrents·only,·the·pieces·in·the·specified·file,·specified·as |
264 | delta·from·the·first·piece·in·the·file.·i.e.·the·first·index·is·0. | 264 | delta·from·the·first·piece·in·the·file.·i.e.·the·first·index·is·0. |
265 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 265 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
266 | *\x8**\x8**\x8**\x8**\x8*·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 266 | *\x8**\x8**\x8**\x8**\x8*·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
267 | std::int64_t·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e·()·const; | 267 | std::int64_t·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e·()·const; |
268 | the·total·number·of·bytes·of·all·files·and·pad·files | 268 | the·total·number·of·bytes·of·all·files·and·pad·files |
269 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 269 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
270 | *\x8**\x8**\x8**\x8**\x8*·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_ | 270 | *\x8**\x8**\x8**\x8**\x8*·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s.si.iz.ze.e(.().)·p.pi.ie.ec.ce.e_._l.le.en.ng.gt.th.h(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
271 | int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·()·const; | 271 | int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·()·const; |
272 | int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s\x8si\x8iz\x8ze\x8e·(piece_index_t·i)·const; | 272 | int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s\x8si\x8iz\x8ze\x8e·(piece_index_t·i)·const; |
273 | piece_length()·returns·the·piece·size·of·all·pieces·but·the·last·one. | 273 | piece_length()·returns·the·piece·size·of·all·pieces·but·the·last·one. |
274 | piece_size()·returns·the·size·of·the·specified·piece.·these·functions·are·just | 274 | piece_size()·returns·the·size·of·the·specified·piece.·these·functions·are·just |
275 | forwarding·to·the·associated·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e. | 275 | forwarding·to·the·associated·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e. |
Max diff block lines reached; 2630/11425 bytes (23.02%) of diff not shown. |
Offset 28, 364 lines modified | Offset 28, 69 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="#buffer-allocator-interface"·id="toc-entry-1">buffer_allocator_interface</a></li> | ||
35 | <li><a·class="reference·internal"·href="#disk- | 36 | <li><a·class="reference·internal"·href="#disk-buffer-holder"·id="toc-entry-2">disk_buffer_holder</a><ul> |
37 | <li><a·class="reference·internal"·href="#disk-buffer-holder-1"·id="toc-entry-3">disk_buffer_holder()</a></li> | ||
38 | <li><a·class="reference·internal"·href="#disk-buffer-holder-2"·id="toc-entry-4">disk_buffer_holder()</a></li> | ||
39 | <li><a·class="reference·internal"·href="#disk-buffer-holder-3"·id="toc-entry-5">~disk_buffer_holder()</a></li> | ||
36 | <li><a·class="reference·internal"·href="# | 40 | <li><a·class="reference·internal"·href="#data"·id="toc-entry-6">data()</a></li> |
41 | <li><a·class="reference·internal"·href="#reset"·id="toc-entry-7">reset()</a></li> | ||
42 | <li><a·class="reference·internal"·href="#swap"·id="toc-entry-8">swap()</a></li> | ||
43 | <li><a·class="reference·internal"·href="#is-mutable"·id="toc-entry-9">is_mutable()</a></li> | ||
44 | <li><a·class="reference·internal"·href="#bool"·id="toc-entry-10">bool()</a></li> | ||
37 | </ul> | 45 | </ul> |
38 | </li> | 46 | </li> |
39 | <li><a·class="reference·internal"·href="#settings-interface"·id="toc-entry-3">settings_interface</a></li> | ||
40 | <li><a·class="reference·internal"·href="#buffer-allocator-interface"·id="toc-entry-4">buffer_allocator_interface</a></li> | ||
41 | <li><a·class="reference·internal"·href="#disk- | 47 | <li><a·class="reference·internal"·href="#disk-observer"·id="toc-entry-11">disk_observer</a><ul> |
42 | <li><a·class="reference·internal"·href="#disk-buffer-holder-1"·id="toc-entry-6">disk_buffer_holder()</a></li> | ||
43 | <li><a·class="reference·internal"·href="#disk-buffer-holder-2"·id="toc-entry-7">disk_buffer_holder()</a></li> | ||
44 | <li><a·class="reference·internal"·href="#disk-buffer-holder-3"·id="toc-entry-8">~disk_buffer_holder()</a></li> | ||
45 | <li><a·class="reference·internal"·href="#data"·id="toc-entry-9">data()</a></li> | ||
46 | <li><a·class="reference·internal"·href="#reset"·id="toc-entry-10">reset()</a></li> | ||
47 | <li><a·class="reference·internal"·href="# | 48 | <li><a·class="reference·internal"·href="#on-disk"·id="toc-entry-12">on_disk()</a></li> |
48 | <li><a·class="reference·internal"·href="#is-mutable"·id="toc-entry-12">is_mutable()</a></li> | ||
49 | <li><a·class="reference·internal"·href="#bool"·id="toc-entry-13">bool()</a></li> | ||
50 | </ul> | 49 | </ul> |
51 | </li> | 50 | </li> |
52 | <li><a·class="reference·internal"·href="#open-file-state"·id="toc-entry-1 | 51 | <li><a·class="reference·internal"·href="#open-file-state"·id="toc-entry-13">open_file_state</a></li> |
53 | <li><a·class="reference·internal"·href="#disk-interface"·id="toc-entry-1 | 52 | <li><a·class="reference·internal"·href="#disk-interface"·id="toc-entry-14">disk_interface</a><ul> |
54 | <li><a·class="reference·internal"·href="#new-torrent"·id="toc-entry-1 | 53 | <li><a·class="reference·internal"·href="#new-torrent"·id="toc-entry-15">new_torrent()</a></li> |
55 | <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-1 | 54 | <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-16">remove_torrent()</a></li> |
56 | <li><a·class="reference·internal"·href="#async- | 55 | <li><a·class="reference·internal"·href="#async-read-async-write"·id="toc-entry-17">async_read()·async_write()</a></li> |
56 | <li><a·class="reference·internal"·href="#async-hash"·id="toc-entry-18">async_hash()</a></li> | ||
57 | <li><a·class="reference·internal"·href="#async-hash"·id="toc-entry-19">async_hash()</a></li> | 57 | <li><a·class="reference·internal"·href="#async-hash2"·id="toc-entry-19">async_hash2()</a></li> |
58 | <li><a·class="reference·internal"·href="#async-hash2"·id="toc-entry-20">async_hash2()</a></li> | ||
59 | <li><a·class="reference·internal"·href="#async-move-storage"·id="toc-entry-2 | 58 | <li><a·class="reference·internal"·href="#async-move-storage"·id="toc-entry-20">async_move_storage()</a></li> |
60 | <li><a·class="reference·internal"·href="#async-release-files"·id="toc-entry-2 | 59 | <li><a·class="reference·internal"·href="#async-release-files"·id="toc-entry-21">async_release_files()</a></li> |
61 | <li><a·class="reference·internal"·href="#async-check-files"·id="toc-entry-2 | 60 | <li><a·class="reference·internal"·href="#async-check-files"·id="toc-entry-22">async_check_files()</a></li> |
62 | <li><a·class="reference·internal"·href="#async-stop-torrent"·id="toc-entry-2 | 61 | <li><a·class="reference·internal"·href="#async-stop-torrent"·id="toc-entry-23">async_stop_torrent()</a></li> |
63 | <li><a·class="reference·internal"·href="#async-rename-file"·id="toc-entry-2 | 62 | <li><a·class="reference·internal"·href="#async-rename-file"·id="toc-entry-24">async_rename_file()</a></li> |
64 | <li><a·class="reference·internal"·href="#async-delete-files"·id="toc-entry-2 | 63 | <li><a·class="reference·internal"·href="#async-delete-files"·id="toc-entry-25">async_delete_files()</a></li> |
65 | <li><a·class="reference·internal"·href="#async-set-file-priority"·id="toc-entry-2 | 64 | <li><a·class="reference·internal"·href="#async-set-file-priority"·id="toc-entry-26">async_set_file_priority()</a></li> |
66 | <li><a·class="reference·internal"·href="#async-clear-piece"·id="toc-entry-2 | 65 | <li><a·class="reference·internal"·href="#async-clear-piece"·id="toc-entry-27">async_clear_piece()</a></li> |
67 | <li><a·class="reference·internal"·href="#update-stats-counters"·id="toc-entry-2 | 66 | <li><a·class="reference·internal"·href="#update-stats-counters"·id="toc-entry-28">update_stats_counters()</a></li> |
68 | <li><a·class="reference·internal"·href="#get-status"·id="toc-entry- | 67 | <li><a·class="reference·internal"·href="#get-status"·id="toc-entry-29">get_status()</a></li> |
69 | <li><a·class="reference·internal"·href="#abort"·id="toc-entry-3 | 68 | <li><a·class="reference·internal"·href="#abort"·id="toc-entry-30">abort()</a></li> |
70 | <li><a·class="reference·internal"·href="#submit-jobs"·id="toc-entry-3 | 69 | <li><a·class="reference·internal"·href="#submit-jobs"·id="toc-entry-31">submit_jobs()</a></li> |
71 | <li><a·class="reference·internal"·href="#settings-updated"·id="toc-entry-3 | 70 | <li><a·class="reference·internal"·href="#settings-updated"·id="toc-entry-32">settings_updated()</a></li> |
72 | </ul> | 71 | </ul> |
73 | </li> | 72 | </li> |
74 | <li><a·class="reference·internal"·href="#storage-holder"·id="toc-entry-3 | 73 | <li><a·class="reference·internal"·href="#storage-holder"·id="toc-entry-33">storage_holder</a></li> |
74 | <li><a·class="reference·internal"·href="#settings-interface"·id="toc-entry-34">settings_interface</a></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">&</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"><</span><span·class="keyword·type">char</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="operator">></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">&</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">-></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"> | ||
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">-></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">-></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"><</span><span·class="keyword·type">char</span><span·class="whitespace">·</span><span·class="keyword">const</span><span·class="operator">></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">&</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"><=</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"><</span><span·class="name">lt</span><span·class="operator">::</span><span·class="name">sha256_hash</span><span·class="operator">></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">&</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"> | ||
Max diff block lines reached; 10930/110094 bytes (9.93%) of diff not shown. |
Offset 1, 30 lines modified | Offset 1, 29 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8o_\x8b_\x8s_\x8e_\x8r_\x8v_\x8e_\x8r | ||
7 | ··········o·_\x8o_\x8n_\x8__\x8d_\x8i_\x8s_\x8k_\x8(_\x8) | ||
8 | ····*·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | ||
9 | ····*·_\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8a_\x8l_\x8l_\x8o_\x8c_\x8a_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 6 | ····*·_\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8a_\x8l_\x8l_\x8o_\x8c_\x8a_\x8t_\x8o_\x8r_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
10 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r | 7 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r |
11 | ··········o·_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r_\x8(_\x8) | 8 | ··········o·_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r_\x8(_\x8) |
12 | ··········o·_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r_\x8(_\x8) | 9 | ··········o·_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r_\x8(_\x8) |
13 | ··········o·_\x8~_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r_\x8(_\x8) | 10 | ··········o·_\x8~_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r_\x8(_\x8) |
14 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 11 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
15 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) | 12 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) |
16 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) | 13 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) |
17 | ··········o·_\x8i_\x8s_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8(_\x8) | 14 | ··········o·_\x8i_\x8s_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8(_\x8) |
18 | ··········o·_\x8b_\x8o_\x8o_\x8l_\x8(_\x8) | 15 | ··········o·_\x8b_\x8o_\x8o_\x8l_\x8(_\x8) |
16 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8o_\x8b_\x8s_\x8e_\x8r_\x8v_\x8e_\x8r | ||
17 | ··········o·_\x8o_\x8n_\x8__\x8d_\x8i_\x8s_\x8k_\x8(_\x8) | ||
19 | ····*·_\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e | 18 | ····*·_\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
20 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 19 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
21 | ··········o·_\x8n_\x8e_\x8w_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) | 20 | ··········o·_\x8n_\x8e_\x8w_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) |
22 | ··········o·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) | 21 | ··········o·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) |
23 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8 | 22 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8r_.e_.a_.d_.(_.)_.·_.a_.s_.y_.n_.c_.__.w_.r_.i_.t_.e_\x8(_\x8) |
24 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8) | 23 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8) |
25 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8h_\x8a_\x8s_\x8h_\x82_\x8(_\x8) | 24 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8h_\x8a_\x8s_\x8h_\x82_\x8(_\x8) |
26 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8m_\x8o_\x8v_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8(_\x8) | 25 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8m_\x8o_\x8v_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8(_\x8) |
27 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8r_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 26 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8r_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
28 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8c_\x8h_\x8e_\x8c_\x8k_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 27 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8c_\x8h_\x8e_\x8c_\x8k_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
29 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) | 28 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8s_\x8t_\x8o_\x8p_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) |
30 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 29 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
Offset 33, 334 lines modified | Offset 32, 28 lines modified | ||
33 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 32 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
34 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s_\x8(_\x8) | 33 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s_\x8(_\x8) |
35 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8) | 34 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8) |
36 | ··········o·_\x8a_\x8b_\x8o_\x8r_\x8t_\x8(_\x8) | 35 | ··········o·_\x8a_\x8b_\x8o_\x8r_\x8t_\x8(_\x8) |
37 | ··········o·_\x8s_\x8u_\x8b_\x8m_\x8i_\x8t_\x8__\x8j_\x8o_\x8b_\x8s_\x8(_\x8) | 36 | ··········o·_\x8s_\x8u_\x8b_\x8m_\x8i_\x8t_\x8__\x8j_\x8o_\x8b_\x8s_\x8(_\x8) |
38 | ··········o·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8d_\x8(_\x8) | 37 | ··········o·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8d_\x8(_\x8) |
39 | ····*·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r | 38 | ····*·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r |
39 | ····*·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | ||
40 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t | 40 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8o_\x8p_\x8e_\x8n_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t |
41 | You·have·some·control·over·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·configuration·through·the·session:: | ||
42 | apply_settings()·member·function.·To·change·one·or·more·configuration·options, | ||
43 | create·a·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k·object·and·fill·it·with·the·settings·to·be·set·and·pass | ||
44 | it·in·to·session::apply_settings(). | ||
45 | The·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k·object·is·a·collection·of·settings·updates·that·are·applied | ||
46 | to·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·when·passed·to·session::apply_settings().·It's·empty·when | ||
47 | constructed. | ||
48 | You·have·control·over·proxy·and·authorization·settings·and·also·the·user-agent | ||
49 | that·will·be·sent·to·the·tracker.·The·user-agent·will·also·be·used·to·identify | ||
50 | the·client·with·other·peers. | ||
51 | Each·configuration·option·is·named·with·an·enum·value·inside·the·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k | ||
52 | class.·These·are·the·available·settings: | ||
41 | The·disk·I/O·can·be·customized·in·libtorrent.·In·previous·versions,·the | ||
42 | customization·was·at·the·level·of·each·torrent.·Now,·the·customization·point·is | ||
43 | at·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·level.·All·torrents·added·to·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·will·use·the·same·disk·I/ | ||
44 | O·subsystem,·as·determined·by·the·disk_io_constructor·(in·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s). | ||
45 | This·allows·the·disk·subsystem·to·also·customize·threading·and·disk·job | ||
46 | management. | ||
47 | To·customize·the·disk·subsystem,·implement·_\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e·and·provide·a·factory | ||
48 | function·to·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·constructor·(via·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s). | ||
49 | Example·use: | ||
50 | struct·temp_storage | ||
51 | { | ||
52 | ··explicit·temp_storage(lt::file_storage·const&·fs)·:·m_files(fs)·{} | ||
53 | ··lt::span<char·const>·readv(lt::peer_request·const·r,·lt::storage_error&·ec) | ||
54 | const | ||
55 | ··{ | ||
56 | ····auto·const·i·=·m_file_data.find(r.piece); | ||
57 | ····if·(i·==·m_file_data.end()) | ||
58 | ····{ | ||
59 | ······ec.operation·=·lt::operation_t::file_read; | ||
60 | ······ec.ec·=·boost::asio::error::eof; | ||
61 | ······return·{}; | ||
62 | ····} | ||
63 | ····if·(int(i->second.size())·<=·r.start) | ||
64 | ····{ | ||
65 | ······ec.operation·=·lt::operation_t::file_read; | ||
66 | ······ec.ec·=·boost::asio::error::eof; | ||
67 | ······return·{}; | ||
68 | ····} | ||
69 | ····return·{·i->second.data()·+·r.start,·std::min(r.length,·int(i->second.size | ||
70 | ())·-·r.start)·}; | ||
71 | ··} | ||
72 | ··void·writev(lt::span<char·const>·const·b,·lt::piece_index_t·const·piece,·int | ||
73 | const·offset) | ||
74 | ··{ | ||
75 | ····auto&·data·=·m_file_data[piece]; | ||
76 | ····if·(data.empty()) | ||
77 | ····{ | ||
78 | ······//·allocate·the·whole·piece,·otherwise·we'll·invalidate·the·pointers | ||
79 | ······//·we·have·returned·back·to·libtorrent | ||
80 | ······int·const·size·=·piece_size(piece); | ||
81 | ······data.resize(std::size_t(size)); | ||
82 | ····} | ||
83 | ····TORRENT_ASSERT(offset·+·b.size()·<=·int(data.size())); | ||
84 | ····std::memcpy(data.data()·+·offset,·b.data(),·std::size_t(b.size())); | ||
85 | ··} | ||
86 | ··lt::sha1_hash·hash(lt::piece_index_t·const·piece | ||
87 | ····,·lt::span<lt::sha256_hash>·const·block_hashes,·lt::storage_error&·ec) | ||
88 | const | ||
89 | ··{ | ||
90 | ····auto·const·i·=·m_file_data.find(piece); | ||
91 | ····if·(i·==·m_file_data.end()) | ||
92 | ····{ | ||
93 | ······ec.operation·=·lt::operation_t::file_read; | ||
94 | ······ec.ec·=·boost::asio::error::eof; | ||
95 | ······return·{}; | ||
96 | ····} | ||
97 | ····if·(!block_hashes.empty()) | ||
98 | ····{ | ||
99 | ······int·const·piece_size2·=·m_files.piece_size2(piece); | ||
100 | ······int·const·blocks_in_piece2·=·m_files.blocks_in_piece2(piece); | ||
101 | ······char·const*·buf·=·i->second.data(); | ||
102 | ······std::int64_t·offset·=·0; | ||
103 | ······for·(int·k·=·0;·k·<·blocks_in_piece2;·++k) | ||
104 | ······{ | ||
105 | ········lt::hasher256·h2; | ||
106 | ········std::ptrdiff_t·const·len2·=·std::min(lt::default_block_size,·int | ||
107 | (piece_size2·-·offset)); | ||
108 | ········h2.update({·buf,·len2·}); | ||
109 | ········buf·+=·len2; | ||
110 | ········offset·+=·len2; | ||
111 | ········block_hashes[k]·=·h2.final(); | ||
112 | ······} | ||
Max diff block lines reached; 8540/22939 bytes (37.23%) of diff not shown. |
Offset 33, 44 lines modified | Offset 33, 44 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="#socks-category"·id="toc-entry-4">socks_category()</a></li> | ||
40 | <li><a·class="reference·internal"·href="# | 41 | <li><a·class="reference·internal"·href="#i2p-category"·id="toc-entry-5">i2p_category()</a></li> |
42 | <li><a·class="reference·internal"·href="#libtorrent-category"·id="toc-entry-6">libtorrent_category()</a></li> | ||
43 | <li><a·class="reference·internal"·href="#http-category"·id="toc-entry-7">http_category()</a></li> | ||
41 | <li><a·class="reference·internal"·href="#bdecode-category"·id="toc-entry- | 44 | <li><a·class="reference·internal"·href="#bdecode-category"·id="toc-entry-8">bdecode_category()</a></li> |
42 | <li><a·class="reference·internal"·href="#socks-category"·id="toc-entry-6">socks_category()</a></li> | ||
43 | <li><a·class="reference·internal"·href="#upnp-category"·id="toc-entry- | 45 | <li><a·class="reference·internal"·href="#upnp-category"·id="toc-entry-9">upnp_category()</a></li> |
44 | <li><a·class="reference·internal"·href="#gzip-category"·id="toc-entry- | 46 | <li><a·class="reference·internal"·href="#gzip-category"·id="toc-entry-10">gzip_category()</a></li> |
45 | <li><a·class="reference·internal"·href="#i2p-category"·id="toc-entry-9">i2p_category()</a></li> | ||
46 | <li><a·class="reference·internal"·href="#libtorrent-category"·id="toc-entry-10">libtorrent_category()</a></li> | ||
47 | <li><a·class="reference·internal"·href="# | 47 | <li><a·class="reference·internal"·href="#pcp-category"·id="toc-entry-11">pcp_category()</a></li> |
48 | <li><a·class="reference·internal"·href="#enum-pcp-errors"·id="toc-entry-12">enum·pcp_errors</a></li> | ||
49 | <li><a·class="reference·internal"·href="#enum-error-code-enum"·id="toc-entry-13">enum·error_code_enum</a></li> | ||
50 | <li><a·class="reference·internal"·href="#enum-socks-error-code"·id="toc-entry-1 | 48 | <li><a·class="reference·internal"·href="#enum-socks-error-code"·id="toc-entry-12">enum·socks_error_code</a></li> |
49 | <li><a·class="reference·internal"·href="#enum-i2p-error-code"·id="toc-entry-13">enum·i2p_error_code</a></li> | ||
50 | <li><a·class="reference·internal"·href="#enum-error-code-enum"·id="toc-entry-14">enum·error_code_enum</a></li> | ||
51 | <li><a·class="reference·internal"·href="#enum-http-errors"·id="toc-entry-15">enum·http_errors</a></li> | ||
51 | <li><a·class="reference·internal"·href="#enum-error-code-enum-1"·id="toc-entry-1 | 52 | <li><a·class="reference·internal"·href="#enum-error-code-enum-1"·id="toc-entry-16">enum·error_code_enum</a></li> |
52 | <li><a·class="reference·internal"·href="#enum-error-code-enum-2"·id="toc-entry-1 | 53 | <li><a·class="reference·internal"·href="#enum-error-code-enum-2"·id="toc-entry-17">enum·error_code_enum</a></li> |
53 | <li><a·class="reference·internal"·href="#enum-i2p-error-code"·id="toc-entry-17">enum·i2p_error_code</a></li> | ||
54 | <li><a·class="reference·internal"·href="#enum-error-code-enum-3"·id="toc-entry-18">enum·error_code_enum</a></li> | 54 | <li><a·class="reference·internal"·href="#enum-error-code-enum-3"·id="toc-entry-18">enum·error_code_enum</a></li> |
55 | <li><a·class="reference·internal"·href="#enum- | 55 | <li><a·class="reference·internal"·href="#enum-pcp-errors"·id="toc-entry-19">enum·pcp_errors</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·"<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>"</p> | 60 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>"</p> |
61 | <p>used·by·storage·to·return·errors | 61 | <p>used·by·storage·to·return·errors |
62 | also·includes·which·underlying·file·the | 62 | also·includes·which·underlying·file·the |
63 | error·happened·on</p> | 63 | error·happened·on</p> |
64 | <pre·class="literal-block"> | 64 | <pre·class="literal-block"> |
65 | struct·storage_error | 65 | struct·storage_error |
66 | { | 66 | { |
67 | ···explicit·operator·<strong>bool</strong>·()·const; | 67 | ···explicit·operator·<strong>bool</strong>·()·const; |
68 | ···file_index_t·<strong>file</strong>·()·const; | ||
69 | ···void·<strong>file</strong>·(file_index_t·f); | 68 | ···void·<strong>file</strong>·(file_index_t·f); |
69 | ···file_index_t·<strong>file</strong>·()·const; | ||
70 | ···error_code·ec; | 70 | ···error_code·ec; |
71 | ···operation_t·operation; | 71 | ···operation_t·operation; |
72 | }; | 72 | }; |
73 | </pre> | 73 | </pre> |
74 | <a·name="bool()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:storage_error%3A%3A%5Bbool%28%29%5D&labels=documentation&body=Documentation+under+heading+%22storage_error%3A%3A%5Bbool%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="bool"> | 74 | <a·name="bool()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:storage_error%3A%3A%5Bbool%28%29%5D&labels=documentation&body=Documentation+under+heading+%22storage_error%3A%3A%5Bbool%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="bool"> |
75 | <h2>bool()</h2> | 75 | <h2>bool()</h2> |
Offset 79, 68 lines modified | Offset 79, 38 lines modified | ||
79 | </pre> | 79 | </pre> |
80 | <p>explicitly·converts·to·true·if·this·object·represents·an·error,·and | 80 | <p>explicitly·converts·to·true·if·this·object·represents·an·error,·and |
81 | false·if·it·does·not.</p> | 81 | false·if·it·does·not.</p> |
82 | <a·name="file()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:storage_error%3A%3A%5Bfile%28%29%5D&labels=documentation&body=Documentation+under+heading+%22storage_error%3A%3A%5Bfile%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 82 | <a·name="file()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:storage_error%3A%3A%5Bfile%28%29%5D&labels=documentation&body=Documentation+under+heading+%22storage_error%3A%3A%5Bfile%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
83 | <div·class="section"·id="file"> | 83 | <div·class="section"·id="file"> |
84 | <h2>file()</h2> | 84 | <h2>file()</h2> |
85 | <pre·class="literal-block"> | 85 | <pre·class="literal-block"> |
86 | file_index_t·<strong>file</strong>·()·const; | ||
87 | void·<strong>file</strong>·(file_index_t·f); | 86 | void·<strong>file</strong>·(file_index_t·f); |
87 | file_index_t·<strong>file</strong>·()·const; | ||
88 | </pre> | 88 | </pre> |
89 | <p>set·and·query·the·index·(in·the·torrent)·of·the·file·this·error | 89 | <p>set·and·query·the·index·(in·the·torrent)·of·the·file·this·error |
90 | occurred·on.·This·may·also·have·special·values·defined·in | 90 | occurred·on.·This·may·also·have·special·values·defined·in |
91 | <a·class="reference·external"·href="reference-Torrent_Status.html#torrent_status">torrent_status</a>.</p> | 91 | <a·class="reference·external"·href="reference-Torrent_Status.html#torrent_status">torrent_status</a>.</p> |
92 | <a·name="ec"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:storage_error%3A%3A%5Bec%5D&labels=documentation&body=Documentation+under+heading+%22storage_error%3A%3A%5Bec%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | 92 | <a·name="ec"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:storage_error%3A%3A%5Bec%5D&labels=documentation&body=Documentation+under+heading+%22storage_error%3A%3A%5Bec%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> |
93 | <dt>ec</dt> | 93 | <dt>ec</dt> |
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·what | 98 | <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="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> | ||
102 | </div> | ||
103 | <div·class="section"·id="pcp-category"> | ||
104 | <h1>pcp_category()</h1> | ||
105 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/natpmp.hpp">libtorrent/natpmp.hpp</a>"</p> | ||
106 | <pre·class="literal-block"> | ||
107 | boost::system::error_category&·<strong>pcp_category</strong>·(); | ||
108 | </pre> | ||
109 | <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> | ||
110 | <div·class="section"·id="bdecode-category"> | ||
111 | <h1>bdecode_category()</h1> | ||
112 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/bdecode.hpp">libtorrent/bdecode.hpp</a>"</p> | ||
113 | <pre·class="literal-block"> | ||
114 | boost::system::error_category&·<strong>bdecode_category</strong>·(); | ||
115 | </pre> | ||
116 | <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> | 101 | <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> |
102 | </div> | ||
117 | <div·class="section"·id="socks-category"> | 103 | <div·class="section"·id="socks-category"> |
118 | <h1>socks_category()</h1> | 104 | <h1>socks_category()</h1> |
119 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/socks5_stream.hpp">libtorrent/socks5_stream.hpp</a>"</p> | 105 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/socks5_stream.hpp">libtorrent/socks5_stream.hpp</a>"</p> |
120 | <pre·class="literal-block"> | 106 | <pre·class="literal-block"> |
121 | boost::system::error_category&·<strong>socks_category</strong>·(); | 107 | boost::system::error_category&·<strong>socks_category</strong>·(); |
122 | </pre> | 108 | </pre> |
123 | <p>returns·the·error_category·for·SOCKS5·errors</p> | 109 | <p>returns·the·error_category·for·SOCKS5·errors</p> |
124 | <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> | ||
125 | <div·class="section"·id="upnp-category"> | ||
126 | <h1>upnp_category()</h1> | ||
127 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/upnp.hpp">libtorrent/upnp.hpp</a>"</p> | ||
128 | <pre·class="literal-block"> | ||
129 | boost::system::error_category&·<strong>upnp_category</strong>·(); | ||
130 | </pre> | ||
131 | <p>the·boost.system·error·category·for·UPnP·errors</p> | ||
132 | <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> | ||
133 | <div·class="section"·id="gzip-category"> | ||
134 | <h1>gzip_category()</h1> | ||
135 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/gzip.hpp">libtorrent/gzip.hpp</a>"</p> | ||
136 | <pre·class="literal-block"> | ||
137 | boost::system::error_category&·<strong>gzip_category</strong>·(); | ||
138 | </pre> | ||
139 | <p>get·the·<tt·class="docutils·literal">error_category</tt>·for·zip·errors</p> | ||
140 | <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> | 110 | <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> |
141 | <div·class="section"·id="i2p-category"> | 111 | <div·class="section"·id="i2p-category"> |
142 | <h1>i2p_category()</h1> | 112 | <h1>i2p_category()</h1> |
143 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/i2p_stream.hpp">libtorrent/i2p_stream.hpp</a>"</p> | 113 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/i2p_stream.hpp">libtorrent/i2p_stream.hpp</a>"</p> |
144 | <pre·class="literal-block"> | 114 | <pre·class="literal-block"> |
145 | boost::system::error_category&·<strong>i2p_category</strong>·(); | 115 | boost::system::error_category&·<strong>i2p_category</strong>·(); |
146 | </pre> | 116 | </pre> |
Offset 158, 144 lines modified | Offset 128, 44 lines modified | ||
158 | <div·class="section"·id="http-category"> | 128 | <div·class="section"·id="http-category"> |
159 | <h1>http_category()</h1> | 129 | <h1>http_category()</h1> |
160 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>"</p> | 130 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/error_code.hpp">libtorrent/error_code.hpp</a>"</p> |
161 | <pre·class="literal-block"> | 131 | <pre·class="literal-block"> |
Max diff block lines reached; 21675/32297 bytes (67.11%) of diff not shown. |
Offset 2, 85 lines modified | Offset 2, 67 lines modified | ||
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8e_\x8r_\x8r_\x8o_\x8r | 6 | ····*·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8e_\x8r_\x8r_\x8o_\x8r |
7 | ··········o·_\x8b_\x8o_\x8o_\x8l_\x8(_\x8) | 7 | ··········o·_\x8b_\x8o_\x8o_\x8l_\x8(_\x8) |
8 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 8 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
9 | ····*·_\x8p_\x8c_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
10 | ····*·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
11 | ····*·_\x8s_\x8o_\x8c_\x8k_\x8s_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | 9 | ····*·_\x8s_\x8o_\x8c_\x8k_\x8s_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) |
12 | ····*·_\x8u_\x8p_\x8n_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
13 | ····*·_\x8g_\x8z_\x8i_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
14 | ····*·_\x8i_\x82_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | 10 | ····*·_\x8i_\x82_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) |
15 | ····*·_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | 11 | ····*·_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) |
16 | ····*·_\x8h_\x8t_\x8t_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | 12 | ····*·_\x8h_\x8t_\x8t_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) |
17 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8c_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8s | ||
18 | ····*·_\x8 | 13 | ····*·_\x8b_.d_.e_.c_.o_.d_.e_.__.c_.a_.t_.e_.g_.o_.r_.y_.(_.) |
14 | ····*·_\x8u_\x8p_\x8n_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
15 | ····*·_\x8g_\x8z_\x8i_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
16 | ····*·_\x8p_\x8c_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
19 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8s_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e | 17 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8s_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e |
20 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m | ||
21 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m | ||
22 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8i_\x82_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e | 18 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8i_\x82_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e |
23 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m | 19 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m |
24 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8h_\x8t_\x8t_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8s | 20 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8h_\x8t_\x8t_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8s |
21 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m | ||
22 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m | ||
23 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m | ||
24 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8c_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8s | ||
25 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 25 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
26 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8st\x8to\x8or\x8ra\x8ag\x8ge\x8e_\x8_e\x8er\x8rr\x8ro\x8or\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 26 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8st\x8to\x8or\x8ra\x8ag\x8ge\x8e_\x8_e\x8er\x8rr\x8ro\x8or\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
27 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" | 27 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" |
28 | used·by·storage·to·return·errors·also·includes·which·underlying·file·the·error | 28 | used·by·storage·to·return·errors·also·includes·which·underlying·file·the·error |
29 | happened·on | 29 | happened·on |
30 | struct·storage_error | 30 | struct·storage_error |
31 | { | 31 | { |
32 | ···explicit·operator·b\x8bo\x8oo\x8ol\x8l·()·const; | 32 | ···explicit·operator·b\x8bo\x8oo\x8ol\x8l·()·const; |
33 | ···file_index_t·f\x8fi\x8il\x8le\x8e·()·const; | ||
34 | ···void·f\x8fi\x8il\x8le\x8e·(file_index_t·f); | 33 | ···void·f\x8fi\x8il\x8le\x8e·(file_index_t·f); |
34 | ···file_index_t·f\x8fi\x8il\x8le\x8e·()·const; | ||
35 | ···error_code·ec; | 35 | ···error_code·ec; |
36 | ···operation_t·operation; | 36 | ···operation_t·operation; |
37 | }; | 37 | }; |
38 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 38 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
39 | *\x8**\x8**\x8**\x8**\x8*·b\x8bo\x8oo\x8ol\x8l(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 39 | *\x8**\x8**\x8**\x8**\x8*·b\x8bo\x8oo\x8ol\x8l(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
40 | explicit·operator·b\x8bo\x8oo\x8ol\x8l·()·const; | 40 | explicit·operator·b\x8bo\x8oo\x8ol\x8l·()·const; |
41 | explicitly·converts·to·true·if·this·object·represents·an·error,·and·false·if·it | 41 | explicitly·converts·to·true·if·this·object·represents·an·error,·and·false·if·it |
42 | does·not. | 42 | does·not. |
43 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 43 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
44 | *\x8**\x8**\x8**\x8**\x8*·f\x8fi\x8il\x8le\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 44 | *\x8**\x8**\x8**\x8**\x8*·f\x8fi\x8il\x8le\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
45 | file_index_t·f\x8fi\x8il\x8le\x8e·()·const; | ||
46 | void·f\x8fi\x8il\x8le\x8e·(file_index_t·f); | 45 | void·f\x8fi\x8il\x8le\x8e·(file_index_t·f); |
46 | file_index_t·f\x8fi\x8il\x8le\x8e·()·const; | ||
47 | set·and·query·the·index·(in·the·torrent)·of·the·file·this·error·occurred·on. | 47 | set·and·query·the·index·(in·the·torrent)·of·the·file·this·error·occurred·on. |
48 | This·may·also·have·special·values·defined·in·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s. | 48 | This·may·also·have·special·values·defined·in·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s. |
49 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 49 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
50 | ··ec | 50 | ··ec |
51 | ······the·error·that·occurred | 51 | ······the·error·that·occurred |
52 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 52 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
53 | ··operation | 53 | ··operation |
54 | ······A·code·from·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8t·enum,·indicating·what·kind·of·operation·failed. | 54 | ······A·code·from·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8t·enum,·indicating·what·kind·of·operation·failed. |
55 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 55 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
56 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8pc\x8cp\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
57 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8n_\x8a_\x8t_\x8p_\x8m_\x8p_\x8._\x8h_\x8p_\x8p" | ||
58 | boost::system::error_category&·p\x8pc\x8cp\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); | ||
59 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
60 | *\x8**\x8**\x8**\x8**\x8**\x8*·b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
61 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" | ||
62 | boost::system::error_category&·b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); | ||
63 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
64 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8so\x8oc\x8ck\x8ks\x8s_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | 56 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8so\x8oc\x8ck\x8ks\x8s_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
65 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8o_\x8c_\x8k_\x8s_\x85_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8._\x8h_\x8p_\x8p" | 57 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8o_\x8c_\x8k_\x8s_\x85_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8._\x8h_\x8p_\x8p" |
66 | boost::system::error_category&·s\x8so\x8oc\x8ck\x8ks\x8s_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); | 58 | boost::system::error_category&·s\x8so\x8oc\x8ck\x8ks\x8s_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); |
67 | returns·the·error_category·for·SOCKS5·errors | 59 | returns·the·error_category·for·SOCKS5·errors |
68 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 60 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
69 | *\x8**\x8**\x8**\x8**\x8**\x8*·u\x8up\x8pn\x8np\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
70 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8u_\x8p_\x8n_\x8p_\x8._\x8h_\x8p_\x8p" | ||
71 | boost::system::error_category&·u\x8up\x8pn\x8np\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); | ||
72 | the·boost.system·error·category·for·UPnP·errors | ||
73 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
74 | *\x8**\x8**\x8**\x8**\x8**\x8*·g\x8gz\x8zi\x8ip\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
75 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8g_\x8z_\x8i_\x8p_\x8._\x8h_\x8p_\x8p" | ||
76 | boost::system::error_category&·g\x8gz\x8zi\x8ip\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); | ||
77 | get·the·error_category·for·zip·errors | ||
78 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
79 | *\x8**\x8**\x8**\x8**\x8**\x8*·i\x8i2\x82p\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | 61 | *\x8**\x8**\x8**\x8**\x8**\x8*·i\x8i2\x82p\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
80 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8i_\x82_\x8p_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8._\x8h_\x8p_\x8p" | 62 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8i_\x82_\x8p_\x8__\x8s_\x8t_\x8r_\x8e_\x8a_\x8m_\x8._\x8h_\x8p_\x8p" |
81 | boost::system::error_category&·i\x8i2\x82p\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); | 63 | boost::system::error_category&·i\x8i2\x82p\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); |
82 | returns·the·error·category·for·I2P·errors | 64 | returns·the·error·category·for·I2P·errors |
83 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 65 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
84 | *\x8**\x8**\x8**\x8**\x8**\x8*·l\x8li\x8ib\x8bt\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | 66 | *\x8**\x8**\x8**\x8**\x8**\x8*·l\x8li\x8ib\x8bt\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
85 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" | 67 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" |
Offset 89, 47 lines modified | Offset 71, 31 lines modified | ||
89 | error·codes·to·human·readable·error·messages. | 71 | error·codes·to·human·readable·error·messages. |
90 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 72 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
91 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tt\x8tp\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | 73 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ht\x8tt\x8tp\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
92 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" | 74 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" |
93 | boost::system::error_category&·h\x8ht\x8tt\x8tp\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); | 75 | boost::system::error_category&·h\x8ht\x8tt\x8tp\x8p_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y·(); |
94 | returns·the·error_category·for·HTTP·errors | 76 | returns·the·error_category·for·HTTP·errors |
95 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 77 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
78 | *\x8**\x8**\x8**\x8**\x8**\x8*·b\x8bd\x8de\x8ec\x8co\x8od\x8de\x8e_\x8_c\x8ca\x8at\x8te\x8eg\x8go\x8or\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
96 | *\x8**\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nu\x8um\x8m·p\x8pc\x8cp\x8p_\x8_e\x8er\x8rr\x8ro\x8or\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
97 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8n_\x8a_\x8t_\x8p_\x8m_\x8p_\x8._\x8h_\x8p_\x8p" | ||
98 | ·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8· | ||
99 | |_\x8n\x8n_\x8a\x8a_\x8m\x8m_\x8e\x8e_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8v\x8v_\x8a\x8a_\x8l\x8l_\x8u\x8u_\x8e\x8e_\x8|_\x8d\x8d_\x8e\x8e_\x8s\x8s_\x8c\x8c_\x8r\x8r_\x8i\x8i_\x8p\x8p_\x8t\x8t_\x8i\x8i_\x8o\x8o_\x8n\x8n| | ||
100 | |_\x8p_\x8c_\x8p_\x8__\x8s_\x8u_\x8c_\x8c_\x8e_\x8s_\x8s_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x80_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
101 | |_\x8p_\x8c_\x8p_\x8__\x8u_\x8n_\x8s_\x8u_\x8p_\x8p_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x81_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
102 | |_\x8p_\x8c_\x8p_\x8__\x8n_\x8o_\x8t_\x8__\x8a_\x8u_\x8t_\x8h_\x8o_\x8r_\x8i_\x8z_\x8e_\x8d_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x82_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
103 | |_\x8p_\x8c_\x8p_\x8__\x8m_\x8a_\x8l_\x8f_\x8o_\x8r_\x8m_\x8e_\x8d_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x83_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
104 | |_\x8p_\x8c_\x8p_\x8__\x8u_\x8n_\x8s_\x8u_\x8p_\x8p_\x8__\x8o_\x8p_\x8c_\x8o_\x8d_\x8e_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x84_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
105 | |_\x8p_\x8c_\x8p_\x8__\x8u_\x8n_\x8s_\x8u_\x8p_\x8p_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x85_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
106 | |_\x8p_\x8c_\x8p_\x8__\x8m_\x8a_\x8l_\x8f_\x8o_\x8r_\x8m_\x8e_\x8d_\x8__\x8o_\x8p_\x8t_\x8i_\x8o_\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x86_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
107 | |_\x8p_\x8c_\x8p_\x8__\x8n_\x8e_\x8t_\x8w_\x8o_\x8r_\x8k_\x8__\x8f_\x8a_\x8i_\x8l_\x8u_\x8r_\x8e_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x87_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
108 | |_\x8p_\x8c_\x8p_\x8__\x8n_\x8o_\x8__\x8r_\x8e_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8s_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x88_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
109 | |_\x8p_\x8c_\x8p_\x8__\x8u_\x8n_\x8s_\x8u_\x8p_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x89_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
110 | |_\x8p_\x8c_\x8p_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8e_\x8x_\x8__\x8q_\x8u_\x8o_\x8t_\x8a_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x81_\x80_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
111 | |_\x8p_\x8c_\x8p_\x8__\x8c_\x8a_\x8n_\x8n_\x8o_\x8t_\x8__\x8p_\x8r_\x8o_\x8v_\x8i_\x8d_\x8e_\x8__\x8e_\x8x_\x8t_\x8e_\x8r_\x8n_\x8a_\x8l_\x8|_\x81_\x81_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
112 | |_\x8p_\x8c_\x8p_\x8__\x8a_\x8d_\x8d_\x8r_\x8e_\x8s_\x8s_\x8__\x8m_\x8i_\x8s_\x8m_\x8a_\x8t_\x8c_\x8h_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x81_\x82_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
113 | |_\x8p_\x8c_\x8p_\x8__\x8e_\x8x_\x8c_\x8e_\x8s_\x8s_\x8i_\x8v_\x8e_\x8__\x8r_\x8e_\x8m_\x8o_\x8t_\x8e_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8·_\x8|_\x81_\x83_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
114 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
115 | *\x8**\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nu\x8um\x8m·e\x8er\x8rr\x8ro\x8or\x8r_\x8_c\x8co\x8od\x8de\x8e_\x8_e\x8en\x8nu\x8um\x8m·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
116 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" | 79 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8._\x8h_\x8p_\x8p" |
117 | ·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8· | ||
118 | |_\x8n\x8n_\x8a\x8a_\x8m\x8m_\x8e\x8e_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8v\x8v_\x8a\x8a_\x8l\x8l_\x8u\x8u_\x8e\x8e_\x8|_\x8d\x8d_\x8e\x8e_\x8s\x8s_\x8c\x8c_\x8r\x8r_\x8i\x8i_\x8p\x8p_\x8t\x8t_\x8i\x8i_\x8o\x8o_\x8n\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
119 | |_\x8n_\x8o_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x80_\x8·_\x8·_\x8·_\x8·_\x8|_\x8N_\x8o_\x8t_\x8·_\x8a_\x8n_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
Max diff block lines reached; 29642/41690 bytes (71.10%) of diff not shown. |
Offset 56, 20 lines modified | Offset 56, 20 lines modified | ||
56 | a·single·rule·that·allows·all·addresses·(0.0.0.0·-·255.255.255.255·for | 56 | 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·the | 57 | 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_filter | 61 | struct·ip_filter |
62 | { | 62 | { |
63 | ···<strong>ip_filter</strong>·(); | 63 | ···<strong>ip_filter</strong>·(ip_filter·const&); |
64 | ···<strong>~ip_filter</strong>·(); | ||
65 | ···<strong>ip_filter</strong>·(ip_filter&&); | 64 | ···<strong>ip_filter</strong>·(ip_filter&&); |
66 | ···ip_filter&·<strong>operator=</strong>·(ip_filter&&); | ||
67 | ···ip_filter&·<strong>operator=</strong>·(ip_filter·const&); | 65 | ···ip_filter&·<strong>operator=</strong>·(ip_filter·const&); |
66 | ···ip_filter&·<strong>operator=</strong>·(ip_filter&&); | ||
68 | ···<strong>ip_filter</strong>·( | 67 | ···<strong>ip_filter</strong>·(); |
68 | ···<strong>~ip_filter</strong>·(); | ||
69 | ···bool·<strong>empty</strong>·()·const; | 69 | ···bool·<strong>empty</strong>·()·const; |
70 | ···void·<strong>add_rule</strong>·(address·const&·first,·address·const&·last,·std::uint32_t·flags); | 70 | ···void·<strong>add_rule</strong>·(address·const&·first,·address·const&·last,·std::uint32_t·flags); |
71 | ···std::uint32_t·<strong>access</strong>·(address·const&·addr)·const; | 71 | ···std::uint32_t·<strong>access</strong>·(address·const&·addr)·const; |
72 | ···filter_tuple_t·<strong>export_filter</strong>·()·const; | 72 | ···filter_tuple_t·<strong>export_filter</strong>·()·const; |
73 | ···enum·access_flags | 73 | ···enum·access_flags |
74 | ···{ | 74 | ···{ |
Offset 153, 20 lines modified | Offset 153, 20 lines modified | ||
153 | <p>the·port·filter·maps·non-overlapping·port·ranges·to·flags.·This | 153 | <p>the·port·filter·maps·non-overlapping·port·ranges·to·flags.·This |
154 | is·primarily·used·to·indicate·whether·a·range·of·ports·should | 154 | is·primarily·used·to·indicate·whether·a·range·of·ports·should |
155 | be·connected·to·or·not.·The·default·is·to·have·the·full·port | 155 | 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_filter | 158 | class·port_filter |
159 | { | 159 | { |
160 | ···port_filter&·<strong>operator=</strong>·(port_filter·const&); | ||
160 | ···<strong>port_filter</strong>·(); | 161 | ···<strong>port_filter</strong>·(); |
161 | ···<strong>~port_filter</strong>·(); | ||
162 | ···<strong>port_filter</strong>·(port_filter&&); | 162 | ···<strong>port_filter</strong>·(port_filter&&); |
163 | ···port_filter&·<strong>operator=</strong>·(port_filter·const&); | ||
164 | ···<strong>port_filter</strong>·(port_filter·const&); | ||
165 | ···port_filter&·<strong>operator=</strong>·(port_filter&&); | 163 | ···port_filter&·<strong>operator=</strong>·(port_filter&&); |
164 | ···<strong>port_filter</strong>·(port_filter·const&); | ||
165 | ···<strong>~port_filter</strong>·(); | ||
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_flags | 168 | ···enum·access_flags |
169 | ···{ | 169 | ···{ |
170 | ······blocked, | 170 | ······blocked, |
171 | ···}; | 171 | ···}; |
Offset 19, 20 lines modified | Offset 19, 20 lines modified | ||
19 | The·ip_filter·class·is·a·set·of·rules·that·uniquely·categorizes·all·ip | 19 | The·ip_filter·class·is·a·set·of·rules·that·uniquely·categorizes·all·ip |
20 | addresses·as·allowed·or·disallowed.·The·default·constructor·creates·a·single | 20 | addresses·as·allowed·or·disallowed.·The·default·constructor·creates·a·single |
21 | rule·that·allows·all·addresses·(0.0.0.0·-·255.255.255.255·for·the·IPv4·range, | 21 | rule·that·allows·all·addresses·(0.0.0.0·-·255.255.255.255·for·the·IPv4·range, |
22 | and·the·equivalent·range·covering·all·addresses·for·the·IPv6·range). | 22 | and·the·equivalent·range·covering·all·addresses·for·the·IPv6·range). |
23 | A·default·constructed·_\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r·does·not·filter·any·address. | 23 | A·default·constructed·_\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r·does·not·filter·any·address. |
24 | struct·ip_filter | 24 | struct·ip_filter |
25 | { | 25 | { |
26 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | 26 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter·const&); |
27 | ···~\x8~i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | ||
28 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter&&); | 27 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter&&); |
29 | ···ip_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(ip_filter&&); | ||
30 | ···ip_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(ip_filter·const&); | 28 | ···ip_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(ip_filter·const&); |
29 | ···ip_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(ip_filter&&); | ||
31 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·( | 30 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); |
31 | ···~\x8~i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | ||
32 | ···bool·e\x8em\x8mp\x8pt\x8ty\x8y·()·const; | 32 | ···bool·e\x8em\x8mp\x8pt\x8ty\x8y·()·const; |
33 | ···void·a\x8ad\x8dd\x8d_\x8_r\x8ru\x8ul\x8le\x8e·(address·const&·first,·address·const&·last,·std::uint32_t | 33 | ···void·a\x8ad\x8dd\x8d_\x8_r\x8ru\x8ul\x8le\x8e·(address·const&·first,·address·const&·last,·std::uint32_t |
34 | flags); | 34 | flags); |
35 | ···std::uint32_t·a\x8ac\x8cc\x8ce\x8es\x8ss\x8s·(address·const&·addr)·const; | 35 | ···std::uint32_t·a\x8ac\x8cc\x8ce\x8es\x8ss\x8s·(address·const&·addr)·const; |
36 | ···filter_tuple_t·e\x8ex\x8xp\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·()·const; | 36 | ···filter_tuple_t·e\x8ex\x8xp\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·()·const; |
37 | ···enum·access_flags | 37 | ···enum·access_flags |
Offset 81, 20 lines modified | Offset 81, 20 lines modified | ||
81 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 81 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
82 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8._\x8h_\x8p_\x8p" | 82 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8._\x8h_\x8p_\x8p" |
83 | the·port·filter·maps·non-overlapping·port·ranges·to·flags.·This·is·primarily | 83 | the·port·filter·maps·non-overlapping·port·ranges·to·flags.·This·is·primarily |
84 | used·to·indicate·whether·a·range·of·ports·should·be·connected·to·or·not.·The | 84 | used·to·indicate·whether·a·range·of·ports·should·be·connected·to·or·not.·The |
85 | default·is·to·have·the·full·port·range·(0-65535)·set·to·flag·0. | 85 | default·is·to·have·the·full·port·range·(0-65535)·set·to·flag·0. |
86 | class·port_filter | 86 | class·port_filter |
87 | { | 87 | { |
88 | ···port_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(port_filter·const&); | ||
88 | ···p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | 89 | ···p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); |
89 | ···~\x8~p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | ||
90 | ···p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(port_filter&&); | 90 | ···p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(port_filter&&); |
91 | ···port_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(port_filter·const&); | ||
92 | ···p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(port_filter·const&); | ||
93 | ···port_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(port_filter&&); | 91 | ···port_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(port_filter&&); |
92 | ···p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(port_filter·const&); | ||
93 | ···~\x8~p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | ||
94 | ···void·a\x8ad\x8dd\x8d_\x8_r\x8ru\x8ul\x8le\x8e·(std::uint16_t·first,·std::uint16_t·last,·std::uint32_t | 94 | ···void·a\x8ad\x8dd\x8d_\x8_r\x8ru\x8ul\x8le\x8e·(std::uint16_t·first,·std::uint16_t·last,·std::uint32_t |
95 | flags); | 95 | flags); |
96 | ···std::uint32_t·a\x8ac\x8cc\x8ce\x8es\x8ss\x8s·(std::uint16_t·port)·const; | 96 | ···std::uint32_t·a\x8ac\x8cc\x8ce\x8es\x8ss\x8s·(std::uint16_t·port)·const; |
97 | ···enum·access_flags | 97 | ···enum·access_flags |
98 | ···{ | 98 | ···{ |
99 | ······blocked, | 99 | ······blocked, |
Offset 28, 82 lines modified | Offset 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="#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- | 35 | <li><a·class="reference·internal"·href="#peer-class-type-filter"·id="toc-entry-1">peer_class_type_filter</a><ul> |
37 | <li><a·class="reference·internal"·href="#remove | 36 | <li><a·class="reference·internal"·href="#add-remove"·id="toc-entry-2">add()·remove()</a></li> |
38 | <li><a·class="reference·internal"·href="# | 37 | <li><a·class="reference·internal"·href="#allow-disallow"·id="toc-entry-3">allow()·disallow()</a></li> |
39 | <li><a·class="reference·internal"·href="#apply"·id="toc-entry- | 38 | <li><a·class="reference·internal"·href="#apply"·id="toc-entry-4">apply()</a></li> |
40 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry- | 39 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-5">enum·socket_type_t</a></li> |
41 | </ul> | 40 | </ul> |
42 | </li> | 41 | </li> |
42 | <li><a·class="reference·internal"·href="#peer-class-info"·id="toc-entry-6">peer_class_info</a></li> | ||
43 | </ul> | 43 | </ul> |
44 | </div> | 44 | </div> |
45 | <a·name="peer_class_info"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+peer_class_info&labels=documentation&body=Documentation+under+heading+%22class+peer_class_info%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="peer-class-info"> | ||
46 | <h1>peer_class_info</h1> | ||
47 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/peer_class.hpp">libtorrent/peer_class.hpp</a>"</p> | ||
48 | <p>holds·settings·for·a·peer·class.·Used·in·<a·class="reference·external"·href="reference-Session.html#set_peer_class()">set_peer_class()</a>·and | ||
49 | <a·class="reference·external"·href="reference-Session.html#get_peer_class()">get_peer_class()</a>·calls.</p> | ||
50 | <pre·class="literal-block"> | ||
51 | struct·peer_class_info | ||
52 | { | ||
53 | ···bool·ignore_unchoke_slots; | ||
54 | ···int·connection_limit_factor; | ||
55 | ···std::string·label; | ||
56 | ···int·upload_limit; | ||
57 | ···int·download_limit; | ||
58 | ···int·upload_priority; | ||
59 | ···int·download_priority; | ||
60 | }; | ||
61 | </pre> | ||
62 | <a·name="ignore_unchoke_slots"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_info%3A%3A%5Bignore_unchoke_slots%5D&labels=documentation&body=Documentation+under+heading+%22peer_class_info%3A%3A%5Bignore_unchoke_slots%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | ||
63 | <dt>ignore_unchoke_slots</dt> | ||
64 | <dd><tt·class="docutils·literal">ignore_unchoke_slots</tt>·determines·whether·peers·should·always | ||
65 | unchoke·a·peer,·regardless·of·the·choking·algorithm,·or·if·it·should | ||
66 | honor·the·unchoke·slot·limits.·It's·used·for·local·peers·by·default. | ||
67 | If·<em>any</em>·of·the·peer·classes·a·peer·belongs·to·has·this·set·to·true, | ||
68 | that·peer·will·be·unchoked·at·all·times.</dd> | ||
69 | </dl> | ||
70 | <a·name="connection_limit_factor"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_info%3A%3A%5Bconnection_limit_factor%5D&labels=documentation&body=Documentation+under+heading+%22peer_class_info%3A%3A%5Bconnection_limit_factor%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | ||
71 | <dt>connection_limit_factor</dt> | ||
72 | <dd>adjusts·the·connection·limit·(global·and·per·torrent)·that·applies·to | ||
73 | this·peer·class.·By·default,·local·peers·are·allowed·to·exceed·the | ||
74 | normal·connection·limit·for·instance.·This·is·specified·as·a·percent | ||
75 | factor.·100·makes·the·peer·class·apply·normally·to·the·limit.·200 | ||
76 | means·as·long·as·there·are·fewer·connections·than·twice·the·limit,·we | ||
77 | accept·this·peer.·This·factor·applies·both·to·the·global·connection | ||
78 | limit·and·the·per-torrent·limit.·Note·that·if·not·used·carefully·one | ||
79 | peer·class·can·potentially·completely·starve·out·all·other·over·time.</dd> | ||
80 | </dl> | ||
81 | <a·name="label"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_info%3A%3A%5Blabel%5D&labels=documentation&body=Documentation+under+heading+%22peer_class_info%3A%3A%5Blabel%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | ||
82 | <dt>label</dt> | ||
83 | <dd>not·used·by·libtorrent.·It's·intended·as·a·potentially·user-facing | ||
84 | identifier·of·this·peer·class.</dd> | ||
85 | </dl> | ||
86 | <a·name="upload_limit"></a> | ||
87 | <a·name="download_limit"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_info%3A%3A%5Bupload_limit+download_limit%5D&labels=documentation&body=Documentation+under+heading+%22peer_class_info%3A%3A%5Bupload_limit+download_limit%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | ||
88 | <dt>upload_limit·download_limit</dt> | ||
89 | <dd>transfer·rates·limits·for·the·whole·peer·class.·They·are·specified·in | ||
90 | bytes·per·second·and·apply·to·the·sum·of·all·peers·that·are·members·of | ||
91 | this·class.</dd> | ||
92 | </dl> | ||
93 | <a·name="upload_priority"></a> | ||
94 | <a·name="download_priority"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_info%3A%3A%5Bupload_priority+download_priority%5D&labels=documentation&body=Documentation+under+heading+%22peer_class_info%3A%3A%5Bupload_priority+download_priority%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | ||
95 | <dt>upload_priority·download_priority</dt> | ||
96 | <dd>relative·priorities·used·by·the·bandwidth·allocator·in·the·rate | ||
97 | limiter.·If·no·rate·limits·are·in·use,·the·priority·is·not·used | ||
98 | either.·Priorities·start·at·1·(0·is·not·a·valid·priority)·and·may·not | ||
99 | exceed·255.</dd> | ||
100 | </dl> | ||
101 | <a·name="peer_class_type_filter"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+peer_class_type_filter&labels=documentation&body=Documentation+under+heading+%22class+peer_class_type_filter%22+could+be+improved">report·issue</a>]</span>< | 45 | <a·name="peer_class_type_filter"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+peer_class_type_filter&labels=documentation&body=Documentation+under+heading+%22class+peer_class_type_filter%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="peer-class-type-filter"> |
102 | <div·class="section"·id="peer-class-type-filter"> | ||
103 | <h1>peer_class_type_filter</h1> | 46 | <h1>peer_class_type_filter</h1> |
104 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/peer_class_type_filter.hpp">libtorrent/peer_class_type_filter.hpp</a>"</p> | 47 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/peer_class_type_filter.hpp">libtorrent/peer_class_type_filter.hpp</a>"</p> |
105 | <p><tt·class="docutils·literal">peer_class_type_filter</tt>·is·a·simple·container·for·rules·for·adding·and·subtracting | 48 | <p><tt·class="docutils·literal">peer_class_type_filter</tt>·is·a·simple·container·for·rules·for·adding·and·subtracting |
106 | peer-classes·from·peers.·It·is·applied·<em>after</em>·the·peer·class·filter·is·applied·(which | 49 | peer-classes·from·peers.·It·is·applied·<em>after</em>·the·peer·class·filter·is·applied·(which |
107 | is·based·on·the·peer's·IP·address).</p> | 50 | is·based·on·the·peer's·IP·address).</p> |
108 | <pre·class="literal-block"> | 51 | <pre·class="literal-block"> |
109 | struct·peer_class_type_filter | 52 | struct·peer_class_type_filter |
Offset 123, 27 lines modified | Offset 66, 27 lines modified | ||
123 | ······ssl_tcp_socket, | 66 | ······ssl_tcp_socket, |
124 | ······ssl_utp_socket, | 67 | ······ssl_utp_socket, |
125 | ······i2p_socket, | 68 | ······i2p_socket, |
126 | ······num_socket_types, | 69 | ······num_socket_types, |
127 | ···}; | 70 | ···}; |
128 | }; | 71 | }; |
129 | </pre> | 72 | </pre> |
130 | <a·name=" | 73 | <a·name="add()"></a> |
131 | <a·name=" | 74 | <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·...·]"> |
132 | <h2> | 75 | <h2>add()·remove()</h2> |
133 | <pre·class="literal-block"> | 76 | <pre·class="literal-block"> |
134 | void·<strong>remove</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class); | 77 | 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); | 78 | void·<strong>add</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class); |
136 | </pre> | 79 | </pre> |
137 | <p><tt·class="docutils·literal">add()</tt>·and·<tt·class="docutils·literal">remove()</tt>·adds·and·removes·a·peer·class·to·be·added | 80 | <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> | 81 | to·new·peers·based·on·socket·type.</p> |
139 | <a·name=" | 82 | <a·name="allow()"></a> |
140 | <a·name="allow()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_type_filter%3A%3A%5B | 83 | <a·name="disallow()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_class_type_filter%3A%3A%5Ballow%28%29+disallow%28%29%5D&labels=documentation&body=Documentation+under+heading+%22peer_class_type_filter%3A%3[·...·truncated·by·diffoscope;·len:·19,·SHA:·acd66c492935d325f190cabd078aed1475bdad0df81e74f87a09ed8dec3fb806·...·]allow%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
141 | <div·class="section"·id=" | 84 | <div·class="section"·id="allow-disallow"> |
142 | <h2> | 85 | <h2>allow()·disallow()</h2> |
143 | <pre·class="literal-block"> | 86 | <pre·class="literal-block"> |
144 | void·<strong>disallow</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class); | 87 | void·<strong>disallow</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class); |
145 | void·<strong>allow</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class); | 88 | void·<strong>allow</strong>·(socket_type_t·const·st,·peer_class_t·const·peer_class); |
146 | </pre> | 89 | </pre> |
147 | <p><tt·class="docutils·literal">disallow()</tt>·and·<tt·class="docutils·literal">allow()</tt>·adds·and·removes·a·peer·class·to·be | 90 | <p><tt·class="docutils·literal">disallow()</tt>·and·<tt·class="docutils·literal">allow()</tt>·adds·and·removes·a·peer·class·to·be |
148 | removed·from·new·peers·based·on·socket·type.</p> | 91 | removed·from·new·peers·based·on·socket·type.</p> |
149 | <p>The·<tt·class="docutils·literal">peer_class</tt>·argument·cannot·be·greater·than·31.·The·bitmasks·representing | 92 | <p>The·<tt·class="docutils·literal">peer_class</tt>·argument·cannot·be·greater·than·31.·The·bitmasks·representing |
Offset 197, 15 lines modified | Offset 140, 72 lines modified | ||
197 | </tr> | 140 | </tr> |
198 | <tr><td>num_socket_types</td> | 141 | <tr><td>num_socket_types</td> |
199 | <td>5</td> | 142 | <td>5</td> |
200 | <td> </td> | 143 | <td> </td> |
201 | </tr> | 144 | </tr> |
202 | </tbody> | 145 | </tbody> |
203 | </table> | 146 | </table> |
147 | <a·name="peer_class_info"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+peer_class_info&labels=documentation&body=Documentation+under+heading+%22class+peer_class_info%22+could+be+improved">report·issue</a>]</span></div> | ||
204 | </div> | 148 | </div> |
149 | <div·class="section"·id="peer-class-info"> | ||
150 | <h1>peer_class_info</h1> | ||
151 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/peer_class.hpp">libtorrent/peer_class.hpp</a>"</p> | ||
152 | <p>holds·settings·for·a·peer·class.·Used·in·<a·class="reference·external"·href="reference-Session.html#set_peer_class()">set_peer_class()</a>·and | ||
153 | <a·class="reference·external"·href="reference-Session.html#get_peer_class()">get_peer_class()</a>·calls.</p> | ||
154 | <pre·class="literal-block"> | ||
Max diff block lines reached; 103/14540 bytes (0.71%) of diff not shown. |
Offset 1, 64 lines modified | Offset 1, 18 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8i_\x8n_\x8f_\x8o | ||
7 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r | 6 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r |
7 | ··········o·_\x8a_\x8d_\x8d_\x8(_\x8)_\x8·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8(_\x8) | ||
8 | ··········o·_\x8 | 8 | ··········o·_\x8a_.l_.l_.o_.w_.(_.)_.·_.d_.i_.s_.a_.l_.l_.o_.w_\x8(_\x8) |
9 | ··········o·_\x8d_\x8i_\x8s_\x8a_\x8l_\x8l_\x8o_\x8w_\x8(_\x8)_\x8·_\x8a_\x8l_\x8l_\x8o_\x8w_\x8(_\x8) | ||
10 | ··········o·_\x8a_\x8p_\x8p_\x8l_\x8y_\x8(_\x8) | 9 | ··········o·_\x8a_\x8p_\x8p_\x8l_\x8y_\x8(_\x8) |
11 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | 10 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t |
11 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8i_\x8n_\x8f_\x8o | ||
12 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
13 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
14 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8._\x8h_\x8p_\x8p" | ||
15 | holds·settings·for·a·peer·class.·Used·in·_\x8s_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8)·and·_\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8) | ||
16 | calls. | ||
17 | struct·peer_class_info | ||
18 | { | ||
19 | ···bool·ignore_unchoke_slots; | ||
20 | ···int·connection_limit_factor; | ||
21 | ···std::string·label; | ||
22 | ···int·upload_limit; | ||
23 | ···int·download_limit; | ||
24 | ···int·upload_priority; | ||
25 | ···int·download_priority; | ||
26 | }; | ||
27 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
28 | ··ignore_unchoke_slots | ||
29 | ······ignore_unchoke_slots·determines·whether·peers·should·always·unchoke·a | ||
30 | ······peer,·regardless·of·the·choking·algorithm,·or·if·it·should·honor·the | ||
31 | ······unchoke·slot·limits.·It's·used·for·local·peers·by·default.·If·a\x8an\x8ny\x8y·of·the | ||
32 | ······peer·classes·a·peer·belongs·to·has·this·set·to·true,·that·peer·will·be | ||
33 | ······unchoked·at·all·times. | ||
34 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
35 | ··connection_limit_factor | ||
36 | ······adjusts·the·connection·limit·(global·and·per·torrent)·that·applies·to | ||
37 | ······this·peer·class.·By·default,·local·peers·are·allowed·to·exceed·the·normal | ||
38 | ······connection·limit·for·instance.·This·is·specified·as·a·percent·factor.·100 | ||
39 | ······makes·the·peer·class·apply·normally·to·the·limit.·200·means·as·long·as | ||
40 | ······there·are·fewer·connections·than·twice·the·limit,·we·accept·this·peer. | ||
41 | ······This·factor·applies·both·to·the·global·connection·limit·and·the·per- | ||
42 | ······torrent·limit.·Note·that·if·not·used·carefully·one·peer·class·can | ||
43 | ······potentially·completely·starve·out·all·other·over·time. | ||
44 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
45 | ··label | ||
46 | ······not·used·by·libtorrent.·It's·intended·as·a·potentially·user-facing | ||
47 | ······identifier·of·this·peer·class. | ||
48 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
49 | ··upload_limit·download_limit | ||
50 | ······transfer·rates·limits·for·the·whole·peer·class.·They·are·specified·in | ||
51 | ······bytes·per·second·and·apply·to·the·sum·of·all·peers·that·are·members·of | ||
52 | ······this·class. | ||
53 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
54 | ··upload_priority·download_priority | ||
55 | ······relative·priorities·used·by·the·bandwidth·allocator·in·the·rate·limiter. | ||
56 | ······If·no·rate·limits·are·in·use,·the·priority·is·not·used·either.·Priorities | ||
57 | ······start·at·1·(0·is·not·a·valid·priority)·and·may·not·exceed·255. | ||
58 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 12 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
59 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_t\x8ty\x8yp\x8pe\x8e_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | 13 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_t\x8ty\x8yp\x8pe\x8e_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* |
60 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8._\x8h_\x8p_\x8p" | 14 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8._\x8h_\x8p_\x8p" |
61 | peer_class_type_filter·is·a·simple·container·for·rules·for·adding·and | 15 | peer_class_type_filter·is·a·simple·container·for·rules·for·adding·and |
62 | subtracting·peer-classes·from·peers.·It·is·applied·a\x8af\x8ft\x8te\x8er\x8r·the·peer·class·filter | 16 | subtracting·peer-classes·from·peers.·It·is·applied·a\x8af\x8ft\x8te\x8er\x8r·the·peer·class·filter |
63 | is·applied·(which·is·based·on·the·peer's·IP·address). | 17 | is·applied·(which·is·based·on·the·peer's·IP·address). |
64 | struct·peer_class_type_filter | 18 | struct·peer_class_type_filter |
Offset 78, 21 lines modified | Offset 32, 21 lines modified | ||
78 | ······ssl_tcp_socket, | 32 | ······ssl_tcp_socket, |
79 | ······ssl_utp_socket, | 33 | ······ssl_utp_socket, |
80 | ······i2p_socket, | 34 | ······i2p_socket, |
81 | ······num_socket_types, | 35 | ······num_socket_types, |
82 | ···}; | 36 | ···}; |
83 | }; | 37 | }; |
84 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 38 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
85 | *\x8**\x8**\x8**\x8**\x8*· | 39 | *\x8**\x8**\x8**\x8**\x8*·a.ad.dd.d(.().)·r.re.em.mo.ov.ve.e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
86 | void·r\x8re\x8em\x8mo\x8ov\x8ve\x8e·(socket_type_t·const·st,·peer_class_t·const·peer_class); | 40 | void·r\x8re\x8em\x8mo\x8ov\x8ve\x8e·(socket_type_t·const·st,·peer_class_t·const·peer_class); |
87 | void·a\x8ad\x8dd\x8d·(socket_type_t·const·st,·peer_class_t·const·peer_class); | 41 | void·a\x8ad\x8dd\x8d·(socket_type_t·const·st,·peer_class_t·const·peer_class); |
88 | add()·and·remove()·adds·and·removes·a·peer·class·to·be·added·to·new·peers·based | 42 | add()·and·remove()·adds·and·removes·a·peer·class·to·be·added·to·new·peers·based |
89 | on·socket·type. | 43 | on·socket·type. |
90 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 44 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
91 | *\x8**\x8**\x8**\x8**\x8*· | 45 | *\x8**\x8**\x8**\x8**\x8*·a.al.ll.lo.ow.w(.().)·d.di.is.sa\x8al\x8ll\x8lo\x8ow\x8w(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
92 | void·d\x8di\x8is\x8sa\x8al\x8ll\x8lo\x8ow\x8w·(socket_type_t·const·st,·peer_class_t·const·peer_class); | 46 | void·d\x8di\x8is\x8sa\x8al\x8ll\x8lo\x8ow\x8w·(socket_type_t·const·st,·peer_class_t·const·peer_class); |
93 | void·a\x8al\x8ll\x8lo\x8ow\x8w·(socket_type_t·const·st,·peer_class_t·const·peer_class); | 47 | void·a\x8al\x8ll\x8lo\x8ow\x8w·(socket_type_t·const·st,·peer_class_t·const·peer_class); |
94 | disallow()·and·allow()·adds·and·removes·a·peer·class·to·be·removed·from·new | 48 | disallow()·and·allow()·adds·and·removes·a·peer·class·to·be·removed·from·new |
95 | peers·based·on·socket·type. | 49 | peers·based·on·socket·type. |
96 | The·peer_class·argument·cannot·be·greater·than·31.·The·bitmasks·representing | 50 | The·peer_class·argument·cannot·be·greater·than·31.·The·bitmasks·representing |
97 | peer·classes·in·the·peer_class_type_filter·are·32·bits. | 51 | peer·classes·in·the·peer_class_type_filter·are·32·bits. |
98 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 52 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
Offset 108, 14 lines modified | Offset 62, 60 lines modified | ||
108 | |tcp_socket······|0····|these·match·the·socket·types·from·socket_type.hpp| | 62 | |tcp_socket······|0····|these·match·the·socket·types·from·socket_type.hpp| |
109 | |_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8s_\x8h_\x8i_\x8f_\x8t_\x8e_\x8d_\x8·_\x8o_\x8n_\x8e_\x8·_\x8d_\x8o_\x8w_\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 63 | |_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8s_\x8h_\x8i_\x8f_\x8t_\x8e_\x8d_\x8·_\x8o_\x8n_\x8e_\x8·_\x8d_\x8o_\x8w_\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
110 | |_\x8u_\x8t_\x8p_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x81_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 64 | |_\x8u_\x8t_\x8p_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x81_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
111 | |_\x8s_\x8s_\x8l_\x8__\x8t_\x8c_\x8p_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8·_\x8|_\x82_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 65 | |_\x8s_\x8s_\x8l_\x8__\x8t_\x8c_\x8p_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8·_\x8|_\x82_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
112 | |_\x8s_\x8s_\x8l_\x8__\x8u_\x8t_\x8p_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8·_\x8|_\x83_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 66 | |_\x8s_\x8s_\x8l_\x8__\x8u_\x8t_\x8p_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8·_\x8|_\x83_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
113 | |_\x8i_\x82_\x8p_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x84_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 67 | |_\x8i_\x82_\x8p_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x84_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
114 | |_\x8n_\x8u_\x8m_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8s_\x8|_\x85_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 68 | |_\x8n_\x8u_\x8m_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8s_\x8|_\x85_\x8·_\x8·_\x8·_\x8·_\x8|_\x8 _\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
69 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
70 | *\x8**\x8**\x8**\x8**\x8**\x8*·p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
71 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8._\x8h_\x8p_\x8p" | ||
72 | holds·settings·for·a·peer·class.·Used·in·_\x8s_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8)·and·_\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8) | ||
73 | calls. | ||
74 | struct·peer_class_info | ||
75 | { | ||
76 | ···bool·ignore_unchoke_slots; | ||
77 | ···int·connection_limit_factor; | ||
78 | ···std::string·label; | ||
79 | ···int·upload_limit; | ||
80 | ···int·download_limit; | ||
81 | ···int·upload_priority; | ||
82 | ···int·download_priority; | ||
83 | }; | ||
84 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
85 | ··ignore_unchoke_slots | ||
86 | ······ignore_unchoke_slots·determines·whether·peers·should·always·unchoke·a | ||
87 | ······peer,·regardless·of·the·choking·algorithm,·or·if·it·should·honor·the | ||
88 | ······unchoke·slot·limits.·It's·used·for·local·peers·by·default.·If·a\x8an\x8ny\x8y·of·the | ||
89 | ······peer·classes·a·peer·belongs·to·has·this·set·to·true,·that·peer·will·be | ||
90 | ······unchoked·at·all·times. | ||
91 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
92 | ··connection_limit_factor | ||
93 | ······adjusts·the·connection·limit·(global·and·per·torrent)·that·applies·to | ||
94 | ······this·peer·class.·By·default,·local·peers·are·allowed·to·exceed·the·normal | ||
95 | ······connection·limit·for·instance.·This·is·specified·as·a·percent·factor.·100 | ||
96 | ······makes·the·peer·class·apply·normally·to·the·limit.·200·means·as·long·as | ||
97 | ······there·are·fewer·connections·than·twice·the·limit,·we·accept·this·peer. | ||
98 | ······This·factor·applies·both·to·the·global·connection·limit·and·the·per- | ||
99 | ······torrent·limit.·Note·that·if·not·used·carefully·one·peer·class·can | ||
Max diff block lines reached; 192/8800 bytes (2.18%) of diff not shown. |
Offset 61, 17 lines modified | Offset 61, 17 lines modified | ||
61 | <li><a·class="reference·internal"·href="#peer-plugin"·id="toc-entry-23">peer_plugin</a><ul> | 61 | <li><a·class="reference·internal"·href="#peer-plugin"·id="toc-entry-23">peer_plugin</a><ul> |
62 | <li><a·class="reference·internal"·href="#type"·id="toc-entry-24">type()</a></li> | 62 | <li><a·class="reference·internal"·href="#type"·id="toc-entry-24">type()</a></li> |
63 | <li><a·class="reference·internal"·href="#add-handshake"·id="toc-entry-25">add_handshake()</a></li> | 63 | <li><a·class="reference·internal"·href="#add-handshake"·id="toc-entry-25">add_handshake()</a></li> |
64 | <li><a·class="reference·internal"·href="#on-disconnect"·id="toc-entry-26">on_disconnect()</a></li> | 64 | <li><a·class="reference·internal"·href="#on-disconnect"·id="toc-entry-26">on_disconnect()</a></li> |
65 | <li><a·class="reference·internal"·href="#on-connected"·id="toc-entry-27">on_connected()</a></li> | 65 | <li><a·class="reference·internal"·href="#on-connected"·id="toc-entry-27">on_connected()</a></li> |
66 | <li><a·class="reference·internal"·href="#on-handshake"·id="toc-entry-28">on_handshake()</a></li> | 66 | <li><a·class="reference·internal"·href="#on-handshake"·id="toc-entry-28">on_handshake()</a></li> |
67 | <li><a·class="reference·internal"·href="#on-extension-handshake"·id="toc-entry-29">on_extension_handshake()</a></li> | 67 | <li><a·class="reference·internal"·href="#on-extension-handshake"·id="toc-entry-29">on_extension_handshake()</a></li> |
68 | <li><a·class="reference·internal"·href="#on- | 68 | <li><a·class="reference·internal"·href="#on-have-on-dont-have-on-request-on-allowed-fast-on-have-none-on-unchoke-on-interested-on-have-all-on-bitfield-on-not-interested-on-choke"·id="toc-entry-30">on_have()·on_dont_have()·on_request()·on_allowed_fast()·on_have_none()·on_unchoke()·on_interested()·on_[·...·truncated·by·diffoscope;·len:·53,·SHA:·b104369a815bde8361603f1e4feeb9e6f40dd0ccc9ae051d1ed61d6cf895dd32·...·]()</a></li> |
69 | <li><a·class="reference·internal"·href="#on-piece"·id="toc-entry-31">on_piece()</a></li> | 69 | <li><a·class="reference·internal"·href="#on-piece"·id="toc-entry-31">on_piece()</a></li> |
70 | <li><a·class="reference·internal"·href="#sent- | 70 | <li><a·class="reference·internal"·href="#sent-have-sent-unchoke-sent-piece-sent-not-interested-sent-interested"·id="toc-entry-32">sent_have()·sent_unchoke()·sent_piece()·sent_not_interested()·sent_interested()</a></li> |
71 | <li><a·class="reference·internal"·href="#sent-payload"·id="toc-entry-33">sent_payload()</a></li> | 71 | <li><a·class="reference·internal"·href="#sent-payload"·id="toc-entry-33">sent_payload()</a></li> |
72 | <li><a·class="reference·internal"·href="#can-disconnect"·id="toc-entry-34">can_disconnect()</a></li> | 72 | <li><a·class="reference·internal"·href="#can-disconnect"·id="toc-entry-34">can_disconnect()</a></li> |
73 | <li><a·class="reference·internal"·href="#on-extended"·id="toc-entry-35">on_extended()</a></li> | 73 | <li><a·class="reference·internal"·href="#on-extended"·id="toc-entry-35">on_extended()</a></li> |
74 | <li><a·class="reference·internal"·href="#on-unknown-message"·id="toc-entry-36">on_unknown_message()</a></li> | 74 | <li><a·class="reference·internal"·href="#on-unknown-message"·id="toc-entry-36">on_unknown_message()</a></li> |
75 | <li><a·class="reference·internal"·href="#on-piece-pass-on-piece-failed-1"·id="toc-entry-37">on_piece_pass()·on_piece_failed()</a></li> | 75 | <li><a·class="reference·internal"·href="#on-piece-pass-on-piece-failed-1"·id="toc-entry-37">on_piece_pass()·on_piece_failed()</a></li> |
76 | <li><a·class="reference·internal"·href="#tick-1"·id="toc-entry-38">tick()</a></li> | 76 | <li><a·class="reference·internal"·href="#tick-1"·id="toc-entry-38">tick()</a></li> |
77 | <li><a·class="reference·internal"·href="#write-request"·id="toc-entry-39">write_request()</a></li> | 77 | <li><a·class="reference·internal"·href="#write-request"·id="toc-entry-39">write_request()</a></li> |
Offset 79, 17 lines modified | Offset 79, 17 lines modified | ||
79 | </li> | 79 | </li> |
80 | <li><a·class="reference·internal"·href="#crypto-plugin"·id="toc-entry-40">crypto_plugin</a><ul> | 80 | <li><a·class="reference·internal"·href="#crypto-plugin"·id="toc-entry-40">crypto_plugin</a><ul> |
81 | <li><a·class="reference·internal"·href="#decrypt"·id="toc-entry-41">decrypt()</a></li> | 81 | <li><a·class="reference·internal"·href="#decrypt"·id="toc-entry-41">decrypt()</a></li> |
82 | </ul> | 82 | </ul> |
83 | </li> | 83 | </li> |
84 | <li><a·class="reference·internal"·href="#peer-connection-handle"·id="toc-entry-42">peer_connection_handle</a></li> | 84 | <li><a·class="reference·internal"·href="#peer-connection-handle"·id="toc-entry-42">peer_connection_handle</a></li> |
85 | <li><a·class="reference·internal"·href="#bt-peer-connection-handle"·id="toc-entry-43">bt_peer_connection_handle</a></li> | 85 | <li><a·class="reference·internal"·href="#bt-peer-connection-handle"·id="toc-entry-43">bt_peer_connection_handle</a></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-4 | 86 | <li><a·class="reference·internal"·href="#create-smart-ban-plugin"·id="toc-entry-44">create_smart_ban_plugin()</a></li> |
88 | <li><a·class="reference·internal"·href="#create-ut-metadata-plugin"·id="toc-entry-4 | 87 | <li><a·class="reference·internal"·href="#create-ut-metadata-plugin"·id="toc-entry-45">create_ut_metadata_plugin()</a></li> |
88 | <li><a·class="reference·internal"·href="#create-ut-pex-plugin"·id="toc-entry-46">create_ut_pex_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·exchange | 92 | 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·protocol | 93 | 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> |
95 | <p>In·short,·the·<a·class="reference·external"·href="reference-Plugins.html#plugin">plugin</a>·interface·makes·it·possible·to:</p> | 95 | <p>In·short,·the·<a·class="reference·external"·href="reference-Plugins.html#plugin">plugin</a>·interface·makes·it·possible·to:</p> |
Offset 348, 16 lines modified | Offset 348, 16 lines modified | ||
348 | <pre·class="literal-block"> | 348 | <pre·class="literal-block"> |
349 | struct·torrent_plugin | 349 | struct·torrent_plugin |
350 | { | 350 | { |
351 | ···virtual·std::shared_ptr<peer_plugin>·<strong>new_connection</strong>·(peer_connection_handle·const&); | 351 | ···virtual·std::shared_ptr<peer_plugin>·<strong>new_connection</strong>·(peer_connection_handle·const&); |
352 | ···virtual·void·<strong>on_piece_pass</strong>·(piece_index_t); | 352 | ···virtual·void·<strong>on_piece_pass</strong>·(piece_index_t); |
353 | ···virtual·void·<strong>on_piece_failed</strong>·(piece_index_t); | 353 | ···virtual·void·<strong>on_piece_failed</strong>·(piece_index_t); |
354 | ···virtual·void·<strong>tick</strong>·(); | 354 | ···virtual·void·<strong>tick</strong>·(); |
355 | ···virtual·bool·<strong>on_pause</strong>·(); | ||
356 | ···virtual·bool·<strong>on_resume</strong>·(); | 355 | ···virtual·bool·<strong>on_resume</strong>·(); |
356 | ···virtual·bool·<strong>on_pause</strong>·(); | ||
357 | ···virtual·void·<strong>on_files_checked</strong>·(); | 357 | ···virtual·void·<strong>on_files_checked</strong>·(); |
358 | ···virtual·void·<strong>on_state</strong>·(torrent_status::state_t); | 358 | ···virtual·void·<strong>on_state</strong>·(torrent_status::state_t); |
359 | ···virtual·void·<strong>on_add_peer</strong>·(tcp::endpoint·const&, | 359 | ···virtual·void·<strong>on_add_peer</strong>·(tcp::endpoint·const&, |
360 | ······peer_source_flags_t,·add_peer_flags_t); | 360 | ······peer_source_flags_t,·add_peer_flags_t); |
361 | ···static·constexpr·add_peer_flags_t·<strong>first_time</strong>··=·1_bit; | 361 | ···static·constexpr·add_peer_flags_t·<strong>first_time</strong>··=·1_bit; |
362 | ···static·constexpr·add_peer_flags_t·<strong>filtered</strong>··=·2_bit; | 362 | ···static·constexpr·add_peer_flags_t·<strong>filtered</strong>··=·2_bit; |
Offset 401, 16 lines modified | Offset 401, 16 lines modified | ||
401 | <p>This·hook·is·called·approximately·once·per·second.·It·is·a·way·of·making·it | 401 | <p>This·hook·is·called·approximately·once·per·second.·It·is·a·way·of·making·it |
402 | easy·for·plugins·to·do·timed·events,·for·sending·messages·or·whatever.</p> | 402 | easy·for·plugins·to·do·timed·events,·for·sending·messages·or·whatever.</p> |
403 | <a·name="on_pause()"></a> | 403 | <a·name="on_pause()"></a> |
404 | <a·name="on_resume()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_plugin%3A%3A%5Bon_pause%28%29+on_resume%28%29%5D&labels=documentation&body=Documentation+under+heading+%22torrent_plugin%3A%3A%5Bon_pause%28%29+on_resume%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 404 | <a·name="on_resume()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_plugin%3A%3A%5Bon_pause%28%29+on_resume%28%29%5D&labels=documentation&body=Documentation+under+heading+%22torrent_plugin%3A%3A%5Bon_pause%28%29+on_resume%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
405 | <div·class="section"·id="on-pause-on-resume"> | 405 | <div·class="section"·id="on-pause-on-resume"> |
406 | <h2>on_pause()·on_resume()</h2> | 406 | <h2>on_pause()·on_resume()</h2> |
407 | <pre·class="literal-block"> | 407 | <pre·class="literal-block"> |
408 | virtual·bool·<strong>on_pause</strong>·(); | ||
409 | virtual·bool·<strong>on_resume</strong>·(); | 408 | virtual·bool·<strong>on_resume</strong>·(); |
409 | virtual·bool·<strong>on_pause</strong>·(); | ||
410 | </pre> | 410 | </pre> |
411 | <p>These·hooks·are·called·when·the·torrent·is·paused·and·resumed·respectively. | 411 | <p>These·hooks·are·called·when·the·torrent·is·paused·and·resumed·respectively. |
412 | The·return·value·indicates·if·the·event·was·handled.·A·return·value·of | 412 | The·return·value·indicates·if·the·event·was·handled.·A·return·value·of |
413 | <tt·class="docutils·literal">true</tt>·indicates·that·it·was·handled,·and·no·other·<a·class="reference·external"·href="reference-Plugins.html#plugin">plugin</a>·after·this·one | 413 | <tt·class="docutils·literal">true</tt>·indicates·that·it·was·handled,·and·no·other·<a·class="reference·external"·href="reference-Plugins.html#plugin">plugin</a>·after·this·one |
414 | will·have·this·hook·function·called,·and·the·standard·handler·will·also·not·be | 414 | will·have·this·hook·function·called,·and·the·standard·handler·will·also·not·be |
415 | invoked.·So,·returning·true·effectively·overrides·the·standard·behavior·of | 415 | invoked.·So,·returning·true·effectively·overrides·the·standard·behavior·of |
416 | pause·or·resume.</p> | 416 | pause·or·resume.</p> |
Offset 475, 43 lines modified | Offset 475, 43 lines modified | ||
475 | { | 475 | { |
476 | ···virtual·string_view·<strong>type</strong>·()·const; | 476 | ···virtual·string_view·<strong>type</strong>·()·const; |
477 | ···virtual·void·<strong>add_handshake</strong>·(entry&); | 477 | ···virtual·void·<strong>add_handshake</strong>·(entry&); |
478 | ···virtual·void·<strong>on_disconnect</strong>·(error_code·const&); | 478 | ···virtual·void·<strong>on_disconnect</strong>·(error_code·const&); |
479 | ···virtual·void·<strong>on_connected</strong>·(); | 479 | ···virtual·void·<strong>on_connected</strong>·(); |
480 | ···virtual·bool·<strong>on_handshake</strong>·(span<char·const>); | 480 | ···virtual·bool·<strong>on_handshake</strong>·(span<char·const>); |
481 | ···virtual·bool·<strong>on_extension_handshake</strong>·(bdecode_node·const&); | 481 | ···virtual·bool·<strong>on_extension_handshake</strong>·(bdecode_node·const&); |
482 | ···virtual·bool·<strong>on_not_interested</strong>·(); | ||
483 | ···virtual·bool·<strong>on_ | 482 | ···virtual·bool·<strong>on_dont_have</strong>·(piece_index_t); |
484 | ···virtual·bool·<strong>on_have_none</strong>·(); | 483 | ···virtual·bool·<strong>on_have_none</strong>·(); |
485 | ···virtual·bool·<strong>on_ | 484 | ···virtual·bool·<strong>on_have</strong>·(piece_index_t); |
485 | ···virtual·bool·<strong>on_choke</strong>·(); | ||
486 | ···virtual·bool·<strong>on_request</strong>·(peer_request·const&); | ||
487 | ···virtual·bool·<strong>on_not_interested</strong>·(); | ||
486 | ···virtual·bool·<strong>on_unchoke</strong>·(); | 488 | ···virtual·bool·<strong>on_unchoke</strong>·(); |
487 | ···virtual·bool·<strong>on_interested</strong>·(); | 489 | ···virtual·bool·<strong>on_interested</strong>·(); |
488 | ···virtual·bool·<strong>on_ | 490 | ···virtual·bool·<strong>on_have_all</strong>·(); |
489 | ···virtual·bool·<strong>on_have</strong>·(piece_index_t); | ||
490 | ···virtual·bool·<strong>on_dont_have</strong>·(piece_index_t); | ||
491 | ···virtual·bool·<strong>on_bitfield</strong>·(bitfield·const&·<em>/*bitfield*/</em>); | 491 | ···virtual·bool·<strong>on_bitfield</strong>·(bitfield·const&·<em>/*bitfield*/</em>); |
492 | ···virtual·bool·<strong>on_ | 492 | ···virtual·bool·<strong>on_allowed_fast</strong>·(piece_index_t); |
493 | ···virtual·bool·<strong>on_piece</strong>·(peer_request·const&·<em>/*piece*/</em> | 493 | ···virtual·bool·<strong>on_piece</strong>·(peer_request·const&·<em>/*piece*/</em> |
494 | ······,·span<char·const>·<em>/*buf*/</em>); | 494 | ······,·span<char·const>·<em>/*buf*/</em>); |
495 | ···virtual·bool·<strong>on_reject</strong>·(peer_request·const&); | 495 | ···virtual·bool·<strong>on_reject</strong>·(peer_request·const&); |
496 | ···virtual·bool·<strong>on_suggest</strong>·(piece_index_t); | ||
497 | ···virtual·bool·<strong>on_cancel</strong>·(peer_request·const&); | 496 | ···virtual·bool·<strong>on_cancel</strong>·(peer_request·const&); |
498 | ···virtual· | 497 | ···virtual·bool·<strong>on_suggest</strong>·(piece_index_t); |
499 | ···virtual·void·<strong>sent_allow_fast</strong>·(piece_index_t); | 498 | ···virtual·void·<strong>sent_allow_fast</strong>·(piece_index_t); |
500 | ···virtual·void·<strong>sent_choke</strong>·(); | ||
501 | ···virtual·void·<strong>sent_have_none</strong>·(); | ||
502 | ···virtual·void·<strong>sent_c | 499 | ···virtual·void·<strong>sent_reject_request</strong>·(peer_request·const&); |
503 | ···virtual·void·<strong>sent_suggest</strong>·(piece_index_t); | 500 | ···virtual·void·<strong>sent_suggest</strong>·(piece_index_t); |
504 | ···virtual·void·<strong>sent_h | 501 | ···virtual·void·<strong>sent_choke</strong>·(); |
505 | ···virtual·void·<strong>sent_request</strong>·(peer_request·const&); | 502 | ···virtual·void·<strong>sent_request</strong>·(peer_request·const&); |
503 | ···virtual·void·<strong>sent_have_all</strong>·(); | ||
504 | ···virtual·void·<strong>sent_cancel</strong>·(peer_request·const&); | ||
506 | ···virtual·void·<strong>sent_ | 505 | ···virtual·void·<strong>sent_have_none</strong>·(); |
507 | ···virtual·void·<strong>sent_interested</strong>·(); | 506 | ···virtual·void·<strong>sent_interested</strong>·(); |
508 | ···virtual·void·<strong>sent_have</strong>·(piece_index_t); | ||
509 | ···virtual·void·<strong>sent_unchoke</strong>·(); | ||
510 | ···virtual·void·<strong>sent_piece</strong>·(peer_request·const&); | 507 | ···virtual·void·<strong>sent_piece</strong>·(peer_request·const&); |
508 | ···virtual·void·<strong>sent_not_interested</strong>·(); | ||
509 | ···virtual·void·<strong>sent_unchoke</strong>·(); | ||
510 | ···virtual·void·<strong>sent_have</strong>·(piece_index_t); | ||
511 | ···virtual·void·<strong>sent_payload</strong>·(int·<em>/*·bytes·*/</em>); | 511 | ···virtual·void·<strong>sent_payload</strong>·(int·<em>/*·bytes·*/</em>); |
512 | ···virtual·bool·<strong>can_disconnect</strong>·(error_code·const&·<em>/*ec*/</em>); | 512 | ···virtual·bool·<strong>can_disconnect</strong>·(error_code·const&·<em>/*ec*/</em>); |
513 | ···virtual·bool·<strong>on_extended</strong>·(int·<em>/*length*/</em>,·int·<em>/*msg*/</em>, | 513 | ···virtual·bool·<strong>on_extended</strong>·(int·<em>/*length*/</em>,·int·<em>/*msg*/</em>, |
514 | ······span<char·const>·<em>/*body*/</em>); | 514 | ······span<char·const>·<em>/*body*/</em>); |
515 | ···virtual·bool·<strong>on_unknown_message</strong>·(int·<em>/*length*/</em>,·int·<em>/*msg*/</em>, | 515 | ···virtual·bool·<strong>on_unknown_message</strong>·(int·<em>/*length*/</em>,·int·<em>/*msg*/</em>, |
516 | ······span<char·const>·<em>/*body*/</em>); | 516 | ······span<char·const>·<em>/*body*/</em>); |
517 | ···virtual·void·<strong>on_piece_pass</strong>·(piece_index_t); | 517 | ···virtual·void·<strong>on_piece_pass</strong>·(piece_index_t); |
Offset 569, 39 lines modified | Offset 569, 39 lines modified | ||
569 | virtual·bool·<strong>on_extension_handshake</strong>·(bdecode_node·const&); | 569 | virtual·bool·<strong>on_extension_handshake</strong>·(bdecode_node·const&); |
570 | </pre> | 570 | </pre> |
Max diff block lines reached; 15934/26417 bytes (60.32%) of diff not shown. |
Offset 28, 34 lines modified | Offset 28, 34 lines modified | ||
28 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n | 28 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n |
29 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) | 29 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) |
30 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8h_\x8a_\x8n_\x8d_\x8s_\x8h_\x8a_\x8k_\x8e_\x8(_\x8) | 30 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8h_\x8a_\x8n_\x8d_\x8s_\x8h_\x8a_\x8k_\x8e_\x8(_\x8) |
31 | ··········o·_\x8o_\x8n_\x8__\x8d_\x8i_\x8s_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8(_\x8) | 31 | ··········o·_\x8o_\x8n_\x8__\x8d_\x8i_\x8s_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8(_\x8) |
32 | ··········o·_\x8o_\x8n_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8e_\x8d_\x8(_\x8) | 32 | ··········o·_\x8o_\x8n_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8e_\x8d_\x8(_\x8) |
33 | ··········o·_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8s_\x8h_\x8a_\x8k_\x8e_\x8(_\x8) | 33 | ··········o·_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8s_\x8h_\x8a_\x8k_\x8e_\x8(_\x8) |
34 | ··········o·_\x8o_\x8n_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8s_\x8h_\x8a_\x8k_\x8e_\x8(_\x8) | 34 | ··········o·_\x8o_\x8n_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8s_\x8h_\x8a_\x8k_\x8e_\x8(_\x8) |
35 | ··········o·_\x8o_\x8n_\x8__\x8 | 35 | ··········o·_\x8o_\x8n_\x8__\x8h_.a_.v_.e_.(_.)_.·_.o_.n_.__.d_.o_.n_.t_.__.h_.a_.v_.e_.(_.)_.·_.o_.n_.__.r_.e_.q_.u_.e_.s_.t_.(_.)_.·_.o_.n_.__.a_.l_.l_.o_.w_.e_.d_.__.f_.a_.s_.t_\x8(_\x8) |
36 | ············_\x8o_\x8n_\x8__\x8c_\x8h_\x8o_\x8k_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8a_\x8l_\x8l_\x8o_\x8w_\x8e_\x8d_\x8__\x8f_\x8a_\x8s_\x8t_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8a_\x8l_\x8l_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8n_\x8o_\x8n_\x8e_\x8(_\x8) | ||
37 | ············_\x8o_\x8n_\x8__\x8u_.n_.c_.h_.o_.k_.e_.(_.)_.·_.o_.n_.__.r_.e_. | 36 | ············_\x8o_\x8n_\x8__\x8h_.a_.v_.e_.__.n_.o_.n_.e_.(_.)_.·_.o_.n_.__.u_.n_.c_.h_.o_.k_.e_.(_.)_.·_.o_.n_.__.i_.n_.t_.e_.r_.e_.s_.t_.e_.d_.(_.)_.·_.o_.n_.__.h_.a_.v_.e_.__.a_.l_.l_\x8(_\x8) |
37 | ············_\x8o_\x8n_\x8__\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8n_\x8o_\x8t_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8c_\x8h_\x8o_\x8k_\x8e_\x8(_\x8) | ||
38 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 38 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
39 | ··········o·_\x8s_\x8e_\x8n_\x8t_\x8__\x8 | 39 | ··········o·_\x8s_\x8e_\x8n_\x8t_\x8__\x8h_.a_.v_.e_.(_.)_.·_.s_.e_.n_.t_.__.u_.n_.c_.h_.o_.k_.e_.(_.)_.·_.s_.e_.n_.t_.__.p_.i_.e_.c_.e_.(_.)_.·_.s_.e_.n_.t_.__.n_.o_\x8t_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8) |
40 | ············_\x8s_\x8e_\x8n_\x8t_\x8__\x8 | 40 | ············_\x8s_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8) |
41 | ··········o·_\x8s_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8y_\x8l_\x8o_\x8a_\x8d_\x8(_\x8) | 41 | ··········o·_\x8s_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8y_\x8l_\x8o_\x8a_\x8d_\x8(_\x8) |
42 | ··········o·_\x8c_\x8a_\x8n_\x8__\x8d_\x8i_\x8s_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8(_\x8) | 42 | ··········o·_\x8c_\x8a_\x8n_\x8__\x8d_\x8i_\x8s_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8(_\x8) |
43 | ··········o·_\x8o_\x8n_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8d_\x8e_\x8d_\x8(_\x8) | 43 | ··········o·_\x8o_\x8n_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8d_\x8e_\x8d_\x8(_\x8) |
44 | ··········o·_\x8o_\x8n_\x8__\x8u_\x8n_\x8k_\x8n_\x8o_\x8w_\x8n_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | 44 | ··········o·_\x8o_\x8n_\x8__\x8u_\x8n_\x8k_\x8n_\x8o_\x8w_\x8n_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) |
45 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_\x8a_\x8s_\x8s_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8f_\x8a_\x8i_\x8l_\x8e_\x8d_\x8(_\x8) | 45 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_\x8a_\x8s_\x8s_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8f_\x8a_\x8i_\x8l_\x8e_\x8d_\x8(_\x8) |
46 | ··········o·_\x8t_\x8i_\x8c_\x8k_\x8(_\x8) | 46 | ··········o·_\x8t_\x8i_\x8c_\x8k_\x8(_\x8) |
47 | ··········o·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8(_\x8) | 47 | ··········o·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8(_\x8) |
48 | ····*·_\x8c_\x8r_\x8y_\x8p_\x8t_\x8o_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n | 48 | ····*·_\x8c_\x8r_\x8y_\x8p_\x8t_\x8o_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n |
49 | ··········o·_\x8d_\x8e_\x8c_\x8r_\x8y_\x8p_\x8t_\x8(_\x8) | 49 | ··········o·_\x8d_\x8e_\x8c_\x8r_\x8y_\x8p_\x8t_\x8(_\x8) |
50 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | 50 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e |
51 | ····*·_\x8b_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | 51 | ····*·_\x8b_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e |
52 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8u_\x8t_\x8__\x8p_\x8e_\x8x_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) | ||
53 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8s_\x8m_\x8a_\x8r_\x8t_\x8__\x8b_\x8a_\x8n_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) | 52 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8s_\x8m_\x8a_\x8r_\x8t_\x8__\x8b_\x8a_\x8n_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) |
54 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8u_\x8t_\x8__\x8m_\x8e_\x8t_\x8a_\x8d_\x8a_\x8t_\x8a_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) | 53 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8u_\x8t_\x8__\x8m_\x8e_\x8t_\x8a_\x8d_\x8a_\x8t_\x8a_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) |
54 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8u_\x8t_\x8__\x8p_\x8e_\x8x_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) | ||
55 | libtorrent·has·a·_\x8p_\x8l_\x8u_\x8g_\x8i_\x8n·interface·for·implementing·extensions·to·the·protocol. | 55 | libtorrent·has·a·_\x8p_\x8l_\x8u_\x8g_\x8i_\x8n·interface·for·implementing·extensions·to·the·protocol. |
56 | These·can·be·general·extensions·for·transferring·metadata·or·peer·exchange | 56 | These·can·be·general·extensions·for·transferring·metadata·or·peer·exchange |
57 | extensions,·or·it·could·be·used·to·provide·a·way·to·customize·the·protocol·to | 57 | extensions,·or·it·could·be·used·to·provide·a·way·to·customize·the·protocol·to |
58 | fit·a·particular·(closed)·network. | 58 | fit·a·particular·(closed)·network. |
59 | In·short,·the·_\x8p_\x8l_\x8u_\x8g_\x8i_\x8n·interface·makes·it·possible·to: | 59 | In·short,·the·_\x8p_\x8l_\x8u_\x8g_\x8i_\x8n·interface·makes·it·possible·to: |
60 | ····*·register·extension·messages·(sent·in·the·extension·handshake),·see | 60 | ····*·register·extension·messages·(sent·in·the·extension·handshake),·see |
61 | ······_\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s. | 61 | ······_\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8s. |
Offset 259, 16 lines modified | Offset 259, 16 lines modified | ||
259 | struct·torrent_plugin | 259 | struct·torrent_plugin |
260 | { | 260 | { |
261 | ···virtual·std::shared_ptr<peer_plugin>·n\x8ne\x8ew\x8w_\x8_c\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8ti\x8io\x8on\x8n·(peer_connection_handle | 261 | ···virtual·std::shared_ptr<peer_plugin>·n\x8ne\x8ew\x8w_\x8_c\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8ti\x8io\x8on\x8n·(peer_connection_handle |
262 | const&); | 262 | const&); |
263 | ···virtual·void·o\x8on\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_p\x8pa\x8as\x8ss\x8s·(piece_index_t); | 263 | ···virtual·void·o\x8on\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_p\x8pa\x8as\x8ss\x8s·(piece_index_t); |
264 | ···virtual·void·o\x8on\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_f\x8fa\x8ai\x8il\x8le\x8ed\x8d·(piece_index_t); | 264 | ···virtual·void·o\x8on\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_f\x8fa\x8ai\x8il\x8le\x8ed\x8d·(piece_index_t); |
265 | ···virtual·void·t\x8ti\x8ic\x8ck\x8k·(); | 265 | ···virtual·void·t\x8ti\x8ic\x8ck\x8k·(); |
266 | ···virtual·bool·o\x8on\x8n_\x8_p\x8pa\x8au\x8us\x8se\x8e·(); | ||
267 | ···virtual·bool·o\x8on\x8n_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e·(); | 266 | ···virtual·bool·o\x8on\x8n_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e·(); |
267 | ···virtual·bool·o\x8on\x8n_\x8_p\x8pa\x8au\x8us\x8se\x8e·(); | ||
268 | ···virtual·void·o\x8on\x8n_\x8_f\x8fi\x8il\x8le\x8es\x8s_\x8_c\x8ch\x8he\x8ec\x8ck\x8ke\x8ed\x8d·(); | 268 | ···virtual·void·o\x8on\x8n_\x8_f\x8fi\x8il\x8le\x8es\x8s_\x8_c\x8ch\x8he\x8ec\x8ck\x8ke\x8ed\x8d·(); |
269 | ···virtual·void·o\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8te\x8e·(torrent_status::state_t); | 269 | ···virtual·void·o\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8te\x8e·(torrent_status::state_t); |
270 | ···virtual·void·o\x8on\x8n_\x8_a\x8ad\x8dd\x8d_\x8_p\x8pe\x8ee\x8er\x8r·(tcp::endpoint·const&, | 270 | ···virtual·void·o\x8on\x8n_\x8_a\x8ad\x8dd\x8d_\x8_p\x8pe\x8ee\x8er\x8r·(tcp::endpoint·const&, |
271 | ······peer_source_flags_t,·add_peer_flags_t); | 271 | ······peer_source_flags_t,·add_peer_flags_t); |
272 | ···static·constexpr·add_peer_flags_t·f\x8fi\x8ir\x8rs\x8st\x8t_\x8_t\x8ti\x8im\x8me\x8e··=·1_bit; | 272 | ···static·constexpr·add_peer_flags_t·f\x8fi\x8ir\x8rs\x8st\x8t_\x8_t\x8ti\x8im\x8me\x8e··=·1_bit; |
273 | ···static·constexpr·add_peer_flags_t·f\x8fi\x8il\x8lt\x8te\x8er\x8re\x8ed\x8d··=·2_bit; | 273 | ···static·constexpr·add_peer_flags_t·f\x8fi\x8il\x8lt\x8te\x8er\x8re\x8ed\x8d··=·2_bit; |
Offset 299, 16 lines modified | Offset 299, 16 lines modified | ||
299 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 299 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
300 | *\x8**\x8**\x8**\x8**\x8*·t\x8ti\x8ic\x8ck\x8k(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 300 | *\x8**\x8**\x8**\x8**\x8*·t\x8ti\x8ic\x8ck\x8k(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
301 | virtual·void·t\x8ti\x8ic\x8ck\x8k·(); | 301 | virtual·void·t\x8ti\x8ic\x8ck\x8k·(); |
302 | This·hook·is·called·approximately·once·per·second.·It·is·a·way·of·making·it | 302 | This·hook·is·called·approximately·once·per·second.·It·is·a·way·of·making·it |
303 | easy·for·plugins·to·do·timed·events,·for·sending·messages·or·whatever. | 303 | easy·for·plugins·to·do·timed·events,·for·sending·messages·or·whatever. |
304 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 304 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
305 | *\x8**\x8**\x8**\x8**\x8*·o\x8on\x8n_\x8_p\x8pa\x8au\x8us\x8se\x8e(\x8()\x8)·o\x8on\x8n_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 305 | *\x8**\x8**\x8**\x8**\x8*·o\x8on\x8n_\x8_p\x8pa\x8au\x8us\x8se\x8e(\x8()\x8)·o\x8on\x8n_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
306 | virtual·bool·o\x8on\x8n_\x8_p\x8pa\x8au\x8us\x8se\x8e·(); | ||
307 | virtual·bool·o\x8on\x8n_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e·(); | 306 | virtual·bool·o\x8on\x8n_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e·(); |
307 | virtual·bool·o\x8on\x8n_\x8_p\x8pa\x8au\x8us\x8se\x8e·(); | ||
308 | These·hooks·are·called·when·the·torrent·is·paused·and·resumed·respectively.·The | 308 | These·hooks·are·called·when·the·torrent·is·paused·and·resumed·respectively.·The |
309 | return·value·indicates·if·the·event·was·handled.·A·return·value·of·true | 309 | return·value·indicates·if·the·event·was·handled.·A·return·value·of·true |
310 | indicates·that·it·was·handled,·and·no·other·_\x8p_\x8l_\x8u_\x8g_\x8i_\x8n·after·this·one·will·have | 310 | indicates·that·it·was·handled,·and·no·other·_\x8p_\x8l_\x8u_\x8g_\x8i_\x8n·after·this·one·will·have |
311 | this·hook·function·called,·and·the·standard·handler·will·also·not·be·invoked. | 311 | this·hook·function·called,·and·the·standard·handler·will·also·not·be·invoked. |
312 | So,·returning·true·effectively·overrides·the·standard·behavior·of·pause·or | 312 | So,·returning·true·effectively·overrides·the·standard·behavior·of·pause·or |
313 | resume. | 313 | resume. |
314 | Note·that·if·you·call·pause()·or·resume()·on·the·torrent·from·your·handler·it | 314 | Note·that·if·you·call·pause()·or·resume()·on·the·torrent·from·your·handler·it |
Offset 354, 43 lines modified | Offset 354, 43 lines modified | ||
354 | { | 354 | { |
355 | ···virtual·string_view·t\x8ty\x8yp\x8pe\x8e·()·const; | 355 | ···virtual·string_view·t\x8ty\x8yp\x8pe\x8e·()·const; |
356 | ···virtual·void·a\x8ad\x8dd\x8d_\x8_h\x8ha\x8an\x8nd\x8ds\x8sh\x8ha\x8ak\x8ke\x8e·(entry&); | 356 | ···virtual·void·a\x8ad\x8dd\x8d_\x8_h\x8ha\x8an\x8nd\x8ds\x8sh\x8ha\x8ak\x8ke\x8e·(entry&); |
357 | ···virtual·void·o\x8on\x8n_\x8_d\x8di\x8is\x8sc\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8t·(error_code·const&); | 357 | ···virtual·void·o\x8on\x8n_\x8_d\x8di\x8is\x8sc\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8t·(error_code·const&); |
358 | ···virtual·void·o\x8on\x8n_\x8_c\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8te\x8ed\x8d·(); | 358 | ···virtual·void·o\x8on\x8n_\x8_c\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8te\x8ed\x8d·(); |
359 | ···virtual·bool·o\x8on\x8n_\x8_h\x8ha\x8an\x8nd\x8ds\x8sh\x8ha\x8ak\x8ke\x8e·(span<char·const>); | 359 | ···virtual·bool·o\x8on\x8n_\x8_h\x8ha\x8an\x8nd\x8ds\x8sh\x8ha\x8ak\x8ke\x8e·(span<char·const>); |
360 | ···virtual·bool·o\x8on\x8n_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n_\x8_h\x8ha\x8an\x8nd\x8ds\x8sh\x8ha\x8ak\x8ke\x8e·(bdecode_node·const&); | 360 | ···virtual·bool·o\x8on\x8n_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n_\x8_h\x8ha\x8an\x8nd\x8ds\x8sh\x8ha\x8ak\x8ke\x8e·(bdecode_node·const&); |
361 | ···virtual·bool·o\x8on\x8n_\x8_d\x8do\x8on\x8nt\x8t_\x8_h\x8ha\x8av\x8ve\x8e·(piece_index_t); | ||
361 | ···virtual·bool·o\x8on\x8n_\x8_n\x8no\x8ot\x8t_\x8_i\x8in\x8nt\x8te\x8er\x8re\x8es\x8st\x8te\x8ed\x8d·(); | ||
362 | ···virtual·bool·o\x8on\x8n_\x8_h\x8ha\x8av\x8ve\x8e_\x8_a\x8al\x8ll\x8l·(); | ||
363 | ···virtual·bool·o\x8on\x8n_\x8_h\x8ha\x8av\x8ve\x8e_\x8_n\x8no\x8on\x8ne\x8e·(); | 362 | ···virtual·bool·o\x8on\x8n_\x8_h\x8ha\x8av\x8ve\x8e_\x8_n\x8no\x8on\x8ne\x8e·(); |
364 | ···virtual·bool·o\x8on\x8n_\x8_ | 363 | ···virtual·bool·o\x8on\x8n_\x8_h.ha.av.ve.e·(piece_index_t); |
364 | ···virtual·bool·o\x8on\x8n_\x8_c\x8ch\x8ho\x8ok\x8ke\x8e·(); | ||
365 | ···virtual·bool·o\x8on\x8n_\x8_r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8t·(peer_request·const&); | ||
366 | ···virtual·bool·o\x8on\x8n_\x8_n\x8no\x8ot\x8t_\x8_i\x8in\x8nt\x8te\x8er\x8re\x8es\x8st\x8te\x8ed\x8d·(); | ||
365 | ···virtual·bool·o\x8on\x8n_\x8_u\x8un\x8nc\x8ch\x8ho\x8ok\x8ke\x8e·(); | 367 | ···virtual·bool·o\x8on\x8n_\x8_u\x8un\x8nc\x8ch\x8ho\x8ok\x8ke\x8e·(); |
366 | ···virtual·bool·o\x8on\x8n_\x8_i\x8in\x8nt\x8te\x8er\x8re\x8es\x8st\x8te\x8ed\x8d·(); | 368 | ···virtual·bool·o\x8on\x8n_\x8_i\x8in\x8nt\x8te\x8er\x8re\x8es\x8st\x8te\x8ed\x8d·(); |
367 | ···virtual·bool·o\x8on\x8n_\x8_c\x8ch\x8ho\x8ok\x8ke\x8e·(); | ||
368 | ···virtual·bool·o\x8on\x8n_\x8_h\x8ha\x8av\x8ve\x8e | 369 | ···virtual·bool·o\x8on\x8n_\x8_h\x8ha\x8av\x8ve\x8e_._a.al.ll.l·(); |
369 | ···virtual·bool·o\x8on\x8n_\x8_d\x8do\x8on\x8nt\x8t_\x8_h\x8ha\x8av\x8ve\x8e·(piece_index_t); | ||
370 | ···virtual·bool·o\x8on\x8n_\x8_b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield·const&·/\x8/*\x8*b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d*\x8*/\x8/); | 370 | ···virtual·bool·o\x8on\x8n_\x8_b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield·const&·/\x8/*\x8*b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d*\x8*/\x8/); |
371 | ···virtual·bool·o\x8on\x8n_\x8_ | 371 | ···virtual·bool·o\x8on\x8n_\x8_a.al.ll.lo.ow.we.ed.d_._f.fa.as.st.t·(piece_index_t); |
372 | ···virtual·bool·o\x8on\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(peer_request·const&·/\x8/*\x8*p\x8pi\x8ie\x8ec\x8ce\x8e*\x8*/\x8/ | 372 | ···virtual·bool·o\x8on\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(peer_request·const&·/\x8/*\x8*p\x8pi\x8ie\x8ec\x8ce\x8e*\x8*/\x8/ |
373 | ······,·span<char·const>·/\x8/*\x8*b\x8bu\x8uf\x8f*\x8*/\x8/); | 373 | ······,·span<char·const>·/\x8/*\x8*b\x8bu\x8uf\x8f*\x8*/\x8/); |
374 | ···virtual·bool·o\x8on\x8n_\x8_r\x8re\x8ej\x8je\x8ec\x8ct\x8t·(peer_request·const&); | 374 | ···virtual·bool·o\x8on\x8n_\x8_r\x8re\x8ej\x8je\x8ec\x8ct\x8t·(peer_request·const&); |
375 | ···virtual·bool·o\x8on\x8n_\x8_s\x8su\x8ug\x8gg\x8ge\x8es\x8st\x8t·(piece_index_t); | ||
376 | ···virtual·bool·o\x8on\x8n_\x8_c\x8ca\x8an\x8nc\x8ce\x8el\x8l·(peer_request·const&); | 375 | ···virtual·bool·o\x8on\x8n_\x8_c\x8ca\x8an\x8nc\x8ce\x8el\x8l·(peer_request·const&); |
377 | ···virtual· | 376 | ···virtual·bool·o.on.n_._s.su.ug.gg.ge.es.st.t·(piece_index_t); |
378 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_a\x8al\x8ll\x8lo\x8ow\x8w_\x8_f\x8fa\x8as\x8st\x8t·(piece_index_t); | 377 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_a\x8al\x8ll\x8lo\x8ow\x8w_\x8_f\x8fa\x8as\x8st\x8t·(piece_index_t); |
379 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_c\x8ch\x8ho\x8ok\x8ke\x8e·(); | ||
380 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_h\x8ha\x8av\x8ve\x8e_\x8_n\x8no\x8on\x8ne\x8e·(); | ||
381 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_c.c | 378 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_r.re.ej.je.ec.ct.t_._r.re.eq.qu.ue.es.st.t·(peer_request·const&); |
382 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_s\x8su\x8ug\x8gg\x8ge\x8es\x8st\x8t·(piece_index_t); | 379 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_s\x8su\x8ug\x8gg\x8ge\x8es\x8st\x8t·(piece_index_t); |
383 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_ | 380 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_c.ch.ho.ok.ke.e·(); |
384 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8t·(peer_request·const&); | 381 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8t·(peer_request·const&); |
385 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_ | 382 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_h.ha.av.ve.e_._a.al.ll.l·(); |
383 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_c\x8ca\x8an\x8nc\x8ce\x8el\x8l·(peer_request·const&); | ||
384 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_h\x8ha\x8av\x8ve\x8e_\x8_n\x8no\x8on\x8ne\x8e·(); | ||
386 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_i\x8in\x8nt\x8te\x8er\x8re\x8es\x8st\x8te\x8ed\x8d·(); | 385 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_i\x8in\x8nt\x8te\x8er\x8re\x8es\x8st\x8te\x8ed\x8d·(); |
387 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_h\x8ha\x8av\x8ve\x8e·(piece_index_t); | ||
388 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_u\x8un\x8nc\x8ch\x8ho\x8ok\x8ke\x8e·(); | ||
389 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(peer_request·const&); | 386 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(peer_request·const&); |
387 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_n\x8no\x8ot\x8t_\x8_i\x8in\x8nt\x8te\x8er\x8re\x8es\x8st\x8te\x8ed\x8d·(); | ||
388 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_u\x8un\x8nc\x8ch\x8ho\x8ok\x8ke\x8e·(); | ||
389 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_h\x8ha\x8av\x8ve\x8e·(piece_index_t); | ||
390 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_p\x8pa\x8ay\x8yl\x8lo\x8oa\x8ad\x8d·(int·/\x8/*\x8*·b\x8by\x8yt\x8te\x8es\x8s·*\x8*/\x8/); | 390 | ···virtual·void·s\x8se\x8en\x8nt\x8t_\x8_p\x8pa\x8ay\x8yl\x8lo\x8oa\x8ad\x8d·(int·/\x8/*\x8*·b\x8by\x8yt\x8te\x8es\x8s·*\x8*/\x8/); |
391 | ···virtual·bool·c\x8ca\x8an\x8n_\x8_d\x8di\x8is\x8sc\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8t·(error_code·const&·/\x8/*\x8*e\x8ec\x8c*\x8*/\x8/); | 391 | ···virtual·bool·c\x8ca\x8an\x8n_\x8_d\x8di\x8is\x8sc\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8t·(error_code·const&·/\x8/*\x8*e\x8ec\x8c*\x8*/\x8/); |
392 | ···virtual·bool·o\x8on\x8n_\x8_e\x8ex\x8xt\x8te\x8en\x8nd\x8de\x8ed\x8d·(int·/\x8/*\x8*l\x8le\x8en\x8ng\x8gt\x8th\x8h*\x8*/\x8/,·int·/\x8/*\x8*m\x8ms\x8sg\x8g*\x8*/\x8/, | 392 | ···virtual·bool·o\x8on\x8n_\x8_e\x8ex\x8xt\x8te\x8en\x8nd\x8de\x8ed\x8d·(int·/\x8/*\x8*l\x8le\x8en\x8ng\x8gt\x8th\x8h*\x8*/\x8/,·int·/\x8/*\x8*m\x8ms\x8sg\x8g*\x8*/\x8/, |
393 | ······span<char·const>·/\x8/*\x8*b\x8bo\x8od\x8dy\x8y*\x8*/\x8/); | 393 | ······span<char·const>·/\x8/*\x8*b\x8bo\x8od\x8dy\x8y*\x8*/\x8/); |
394 | ···virtual·bool·o\x8on\x8n_\x8_u\x8un\x8nk\x8kn\x8no\x8ow\x8wn\x8n_\x8_m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e·(int·/\x8/*\x8*l\x8le\x8en\x8ng\x8gt\x8th\x8h*\x8*/\x8/,·int·/\x8/*\x8*m\x8ms\x8sg\x8g*\x8*/\x8/, | 394 | ···virtual·bool·o\x8on\x8n_\x8_u\x8un\x8nk\x8kn\x8no\x8ow\x8wn\x8n_\x8_m\x8me\x8es\x8ss\x8sa\x8ag\x8ge\x8e·(int·/\x8/*\x8*l\x8le\x8en\x8ng\x8gt\x8th\x8h*\x8*/\x8/,·int·/\x8/*\x8*m\x8ms\x8sg\x8g*\x8*/\x8/, |
395 | ······span<char·const>·/\x8/*\x8*b\x8bo\x8od\x8dy\x8y*\x8*/\x8/); | 395 | ······span<char·const>·/\x8/*\x8*b\x8bo\x8od\x8dy\x8y*\x8*/\x8/); |
396 | ···virtual·void·o\x8on\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_p\x8pa\x8as\x8ss\x8s·(piece_index_t); | 396 | ···virtual·void·o\x8on\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_p\x8pa\x8as\x8ss\x8s·(piece_index_t); |
Offset 426, 48 lines modified | Offset 426, 48 lines modified | ||
426 | *\x8**\x8**\x8**\x8**\x8*·o\x8on\x8n_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n_\x8_h\x8ha\x8an\x8nd\x8ds\x8sh\x8ha\x8ak\x8ke\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 426 | *\x8**\x8**\x8**\x8**\x8*·o\x8on\x8n_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n_\x8_h\x8ha\x8an\x8nd\x8ds\x8sh\x8ha\x8ak\x8ke\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
Max diff block lines reached; 12579/22368 bytes (56.24%) of diff not shown. |
Offset 28, 40 lines modified | Offset 28, 40 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="#write-resume-data-write-resume-data | 35 | <li><a·class="reference·internal"·href="#write-resume-data-buf-write-resume-data"·id="toc-entry-1">write_resume_data_buf()·write_resume_data()</a></li> |
36 | <li><a·class="reference·internal"·href="#write-torrent-file-write-torrent-file | 36 | <li><a·class="reference·internal"·href="#write-torrent-file-buf-write-torrent-file"·id="toc-entry-2">write_torrent_file_buf()·write_torrent_file()</a></li> |
37 | <li><a·class="reference·internal"·href="#read-resume-data"·id="toc-entry-3">read_resume_data()</a></li> | 37 | <li><a·class="reference·internal"·href="#read-resume-data"·id="toc-entry-3">read_resume_data()</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="write_resume_data()"></a> | 41 | <a·name="write_resume_data_buf()"></a> |
42 | <a·name="write_resume_data_buf()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:write_resume_data%28%29+write_resume_data_buf%28%29&labels=documentation&body=Documentation+under+heading+%22write_resume_data%28%29+write_resume_data_buf%28%29%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="write-resume-data-write-resume-data-buf"> | ||
43 | < | 42 | <a·name="write_resume_data()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:write_resume_data_buf%28%29+write_resume_data%28%29&labels=documentation&body=Documentation+under+heading+%22write_resume_data_b[·...·truncated·by·diffoscope;·len:·144,·SHA:·aee7a6ecaccdc1a8f850c663536d05f2a581d0b128ea7e50fe01d9d50786d7f5·...·]> |
43 | <h1>write_resume_data_buf()·write_resume_data()</h1> | ||
44 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>"</p> | 44 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>"</p> |
45 | <pre·class="literal-block"> | 45 | <pre·class="literal-block"> |
46 | entry·<strong>write_resume_data</strong>·(add_torrent_params·const&·atp); | ||
47 | std::vector<char>·<strong>write_resume_data_buf</strong>·(add_torrent_params·const&·atp); | 46 | std::vector<char>·<strong>write_resume_data_buf</strong>·(add_torrent_params·const&·atp); |
47 | entry·<strong>write_resume_data</strong>·(add_torrent_params·const&·atp); | ||
48 | </pre> | 48 | </pre> |
49 | <p>this·function·turns·the·resume·data·in·an·<tt·class="docutils·literal">add_torrent_params</tt>·object | 49 | <p>this·function·turns·the·resume·data·in·an·<tt·class="docutils·literal">add_torrent_params</tt>·object |
50 | into·a·bencoded·structure</p> | 50 | into·a·bencoded·structure</p> |
51 | <a·name="write_torrent_file()"></a> | 51 | <a·name="write_torrent_file_buf()"></a> |
52 | <a·name="write_torrent_file | 52 | <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> |
53 | <div·class="section"·id="write-torrent-file-write-torrent-file | 53 | <div·class="section"·id="write-torrent-file-buf-write-torrent-file"> |
54 | <h1>write_torrent_file()·write_torrent_file | 54 | <h1>write_torrent_file_buf()·write_torrent_file()</h1> |
55 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>"</p> | 55 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>"</p> |
56 | <pre·class="literal-block"> | 56 | <pre·class="literal-block"> |
57 | entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&·atp,·write_torrent_flags_t·flags); | ||
58 | entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&·atp); | ||
57 | std::vector<char>·<strong>write_torrent_file_buf</strong>·(add_torrent_params·const&·atp | 59 | std::vector<char>·<strong>write_torrent_file_buf</strong>·(add_torrent_params·const&·atp |
58 | ···,·write_torrent_flags_t·flags); | 60 | ···,·write_torrent_flags_t·flags); |
59 | entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&·atp); | ||
60 | entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&·atp,·write_torrent_flags_t·flags); | ||
61 | </pre> | 61 | </pre> |
62 | <p>writes·only·the·fields·to·create·a·.torrent·file.·This·function·may·fail | 62 | <p>writes·only·the·fields·to·create·a·.torrent·file.·This·function·may·fail |
63 | with·a·<tt·class="docutils·literal"><span·class="pre">std::system_error</span></tt>·exception·if:</p> | 63 | with·a·<tt·class="docutils·literal"><span·class="pre">std::system_error</span></tt>·exception·if:</p> |
64 | <ul·class="simple"> | 64 | <ul·class="simple"> |
65 | <li>The·<a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a>·object·passed·to·this·function·does·not·contain·the | 65 | <li>The·<a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a>·object·passed·to·this·function·does·not·contain·the |
66 | info·dictionary·(the·<tt·class="docutils·literal">ti</tt>·field)</li> | 66 | info·dictionary·(the·<tt·class="docutils·literal">ti</tt>·field)</li> |
67 | <li>The·piece·layers·are·not·complete·for·all·files·that·need·them</li> | 67 | <li>The·piece·layers·are·not·complete·for·all·files·that·need·them</li> |
Offset 70, 18 lines modified | Offset 70, 18 lines modified | ||
70 | bencoded·buffer·form.·This·overload·may·be·faster·at·the·expense·of·lost | 70 | bencoded·buffer·form.·This·overload·may·be·faster·at·the·expense·of·lost |
71 | flexibility·to·add·custom·fields.</p> | 71 | flexibility·to·add·custom·fields.</p> |
72 | <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> | 72 | <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> |
73 | <div·class="section"·id="read-resume-data"> | 73 | <div·class="section"·id="read-resume-data"> |
74 | <h1>read_resume_data()</h1> | 74 | <h1>read_resume_data()</h1> |
75 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/read_resume_data.hpp">libtorrent/read_resume_data.hpp</a>"</p> | 75 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/read_resume_data.hpp">libtorrent/read_resume_data.hpp</a>"</p> |
76 | <pre·class="literal-block"> | 76 | <pre·class="literal-block"> |
77 | add_torrent_params·<strong>read_resume_data</strong>·(span<char·const>·buffer | ||
78 | ···,·load_torrent_limits·const&·cfg·=·{}); | ||
79 | add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&·rd | 77 | add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&·rd |
80 | ···,·error_code&·ec,·int·piece_limit·=·0x200000); | 78 | ···,·error_code&·ec,·int·piece_limit·=·0x200000); |
79 | add_torrent_params·<strong>read_resume_data</strong>·(span<char·const>·buffer | ||
80 | ···,·load_torrent_limits·const&·cfg·=·{}); | ||
81 | add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&·rd | 81 | add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&·rd |
82 | ···,·int·piece_limit·=·0x200000); | 82 | ···,·int·piece_limit·=·0x200000); |
83 | add_torrent_params·<strong>read_resume_data</strong>·(span<char·const>·buffer | 83 | add_torrent_params·<strong>read_resume_data</strong>·(span<char·const>·buffer |
84 | ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{}); | 84 | ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{}); |
85 | </pre> | 85 | </pre> |
86 | <p>these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate | 86 | <p>these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate |
87 | 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 | 87 | 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 |
Offset 1, 46 lines modified | Offset 1, 46 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8)_\x8·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8b_\x8u_\x8f_\x8(_\x8) | ||
7 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8 | 6 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_.e_.s_.u_.m_.e_.__.d_.a_.t_.a_.__.b_.u_.f_.(_.)_.·_.w_.r_.i_.t_.e_.__.r_.e_.s_.u_.m_.e_.__.d_.a_.t_.a_\x8(_\x8) |
7 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8b_\x8u_\x8f_\x8(_\x8)_\x8·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | ||
8 | ····*·_\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 8 | ····*·_\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
9 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | 9 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t |
10 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 10 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
11 | *\x8**\x8**\x8**\x8**\x8**\x8*·w\x8wr\x8ri\x8it\x8te\x8e_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a(.().)·w.wr.ri.it.te.e_._r.re.es.su.um.me.e_._d.da.at.ta.a | 11 | *\x8**\x8**\x8**\x8**\x8**\x8*·w\x8wr\x8ri\x8it\x8te\x8e_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a_._b.bu.uf.f(.().)·w.wr.ri.it.te.e_._r.re.es.su.um.me.e_._d.da.at.ta.a(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
12 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8._\x8h_\x8p_\x8p" | 12 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8._\x8h_\x8p_\x8p" |
13 | entry·w\x8wr\x8ri\x8it\x8te\x8e_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(add_torrent_params·const&·atp); | ||
14 | std::vector<char>·w\x8wr\x8ri\x8it\x8te\x8e_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a_\x8_b\x8bu\x8uf\x8f·(add_torrent_params·const&·atp); | 13 | std::vector<char>·w\x8wr\x8ri\x8it\x8te\x8e_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a_\x8_b\x8bu\x8uf\x8f·(add_torrent_params·const&·atp); |
14 | entry·w\x8wr\x8ri\x8it\x8te\x8e_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(add_torrent_params·const&·atp); | ||
15 | this·function·turns·the·resume·data·in·an·add_torrent_params·object·into·a | 15 | this·function·turns·the·resume·data·in·an·add_torrent_params·object·into·a |
16 | bencoded·structure | 16 | bencoded·structure |
17 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 17 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
18 | *\x8**\x8**\x8**\x8**\x8**\x8*·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e(.().)·w.wr.ri.it.te.e_._t.to.or.rr.re.en.nt.t_._f.fi.il.le.e | 18 | *\x8**\x8**\x8**\x8**\x8**\x8*·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e_._b.bu.uf.f(.().)·w.wr.ri.it.te.e_._t.to.or.rr.re.en.nt.t_._f.fi.il.le.e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
19 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8._\x8h_\x8p_\x8p" | 19 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8._\x8h_\x8p_\x8p" |
20 | std::vector<char>·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e_\x8_b\x8bu\x8uf\x8f·(add_torrent_params·const&·atp | ||
21 | ···,·write_torrent_flags_t·flags); | ||
22 | entry·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e·(add_torrent_params·const&·atp); | ||
23 | entry·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e·(add_torrent_params·const&·atp,·write_torrent_flags_t | 20 | entry·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e·(add_torrent_params·const&·atp,·write_torrent_flags_t |
24 | flags); | 21 | flags); |
22 | entry·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e·(add_torrent_params·const&·atp); | ||
23 | std::vector<char>·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e_\x8_b\x8bu\x8uf\x8f·(add_torrent_params·const&·atp | ||
24 | ···,·write_torrent_flags_t·flags); | ||
25 | writes·only·the·fields·to·create·a·.torrent·file.·This·function·may·fail·with·a | 25 | writes·only·the·fields·to·create·a·.torrent·file.·This·function·may·fail·with·a |
26 | std::system_error·exception·if: | 26 | std::system_error·exception·if: |
27 | ····*·The·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s·object·passed·to·this·function·does·not·contain | 27 | ····*·The·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s·object·passed·to·this·function·does·not·contain |
28 | ······the·info·dictionary·(the·ti·field) | 28 | ······the·info·dictionary·(the·ti·field) |
29 | ····*·The·piece·layers·are·not·complete·for·all·files·that·need·them | 29 | ····*·The·piece·layers·are·not·complete·for·all·files·that·need·them |
30 | The·write_torrent_file_buf()·overload·returns·the·torrent·file·in·bencoded | 30 | The·write_torrent_file_buf()·overload·returns·the·torrent·file·in·bencoded |
31 | buffer·form.·This·overload·may·be·faster·at·the·expense·of·lost·flexibility·to | 31 | buffer·form.·This·overload·may·be·faster·at·the·expense·of·lost·flexibility·to |
32 | add·custom·fields. | 32 | add·custom·fields. |
33 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 33 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
34 | *\x8**\x8**\x8**\x8**\x8**\x8*·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | 34 | *\x8**\x8**\x8**\x8**\x8**\x8*·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
35 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8._\x8h_\x8p_\x8p" | 35 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8._\x8h_\x8p_\x8p" |
36 | add_torrent_params·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(span<char·const>·buffer | ||
37 | ···,·load_torrent_limits·const&·cfg·=·{}); | ||
38 | add_torrent_params·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(bdecode_node·const&·rd | 36 | add_torrent_params·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(bdecode_node·const&·rd |
39 | ···,·error_code&·ec,·int·piece_limit·=·0x200000); | 37 | ···,·error_code&·ec,·int·piece_limit·=·0x200000); |
38 | add_torrent_params·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(span<char·const>·buffer | ||
39 | ···,·load_torrent_limits·const&·cfg·=·{}); | ||
40 | add_torrent_params·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(bdecode_node·const&·rd | 40 | add_torrent_params·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(bdecode_node·const&·rd |
41 | ···,·int·piece_limit·=·0x200000); | 41 | ···,·int·piece_limit·=·0x200000); |
42 | add_torrent_params·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(span<char·const>·buffer | 42 | add_torrent_params·r\x8re\x8ea\x8ad\x8d_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a·(span<char·const>·buffer |
43 | ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{}); | 43 | ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{}); |
44 | these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate | 44 | these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate |
45 | fields·in·an·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s·object.·This·object·can·then·be·used·to·add·the | 45 | fields·in·an·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s·object.·This·object·can·then·be·used·to·add·the |
46 | actual·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o·object·to·and·pass·to·session::add_torrent()·or·session:: | 46 | actual·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o·object·to·and·pass·to·session::add_torrent()·or·session:: |
Offset 31, 75 lines modified | Offset 31, 75 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="#session-handle"·id="toc-entry-1">session_handle</a><ul> | 35 | <li><a·class="reference·internal"·href="#session-handle"·id="toc-entry-1">session_handle</a><ul> |
36 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-2">is_valid()</a></li> | 36 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-2">is_valid()</a></li> |
37 | <li><a·class="reference·internal"·href="#session-state"·id="toc-entry-3">session_state()</a></li> | 37 | <li><a·class="reference·internal"·href="#session-state"·id="toc-entry-3">session_state()</a></li> |
38 | <li><a·class="reference·internal"·href="# | 38 | <li><a·class="reference·internal"·href="#refresh-torrent-status-get-torrent-status"·id="toc-entry-4">refresh_torrent_status()·get_torrent_status()</a></li> |
39 | <li><a·class="reference·internal"·href="#post-torrent-updates"·id="toc-entry-5">post_torrent_updates()</a></li> | 39 | <li><a·class="reference·internal"·href="#post-torrent-updates"·id="toc-entry-5">post_torrent_updates()</a></li> |
40 | <li><a·class="reference·internal"·href="#post-session-stats"·id="toc-entry-6">post_session_stats()</a></li> | 40 | <li><a·class="reference·internal"·href="#post-session-stats"·id="toc-entry-6">post_session_stats()</a></li> |
41 | <li><a·class="reference·internal"·href="#post-dht-stats"·id="toc-entry-7">post_dht_stats()</a></li> | 41 | <li><a·class="reference·internal"·href="#post-dht-stats"·id="toc-entry-7">post_dht_stats()</a></li> |
42 | <li><a·class="reference·internal"·href="#set-dht-state"·id="toc-entry-8">set_dht_state()</a></li> | 42 | <li><a·class="reference·internal"·href="#set-dht-state"·id="toc-entry-8">set_dht_state()</a></li> |
43 | <li><a·class="reference·internal"·href="# | 43 | <li><a·class="reference·internal"·href="#get-torrents-find-torrent"·id="toc-entry-9">get_torrents()·find_torrent()</a></li> |
44 | <li><a·class="reference·internal"·href="#add-torrent-async-add-torrent"·id="toc-entry-10">add_torrent()·async_add_torrent()</a></li> | 44 | <li><a·class="reference·internal"·href="#add-torrent-async-add-torrent"·id="toc-entry-10">add_torrent()·async_add_torrent()</a></li> |
45 | <li><a·class="reference·internal"·href="#resume-is-paused-pause"·id="toc-entry-11">resume()·is_paused()·pause()</a></li> | 45 | <li><a·class="reference·internal"·href="#resume-is-paused-pause"·id="toc-entry-11">resume()·is_paused()·pause()</a></li> |
46 | <li><a·class="reference·internal"·href="#is-dht-running"·id="toc-entry-12">is_dht_running()</a></li> | 46 | <li><a·class="reference·internal"·href="#is-dht-running"·id="toc-entry-12">is_dht_running()</a></li> |
47 | <li><a·class="reference·internal"·href="#set-dht-storage"·id="toc-entry-13">set_dht_storage()</a></li> | 47 | <li><a·class="reference·internal"·href="#set-dht-storage"·id="toc-entry-13">set_dht_storage()</a></li> |
48 | <li><a·class="reference·internal"·href="#add-dht-node"·id="toc-entry-14">add_dht_node()</a></li> | 48 | <li><a·class="reference·internal"·href="#add-dht-node"·id="toc-entry-14">add_dht_node()</a></li> |
49 | <li><a·class="reference·internal"·href="#dht-get-item"·id="toc-entry-15">dht_get_item()</a></li> | 49 | <li><a·class="reference·internal"·href="#dht-get-item"·id="toc-entry-15">dht_get_item()</a></li> |
50 | <li><a·class="reference·internal"·href="#dht-get-item-1"·id="toc-entry-16">dht_get_item()</a></li> | 50 | <li><a·class="reference·internal"·href="#dht-get-item-1"·id="toc-entry-16">dht_get_item()</a></li> |
51 | <li><a·class="reference·internal"·href="#dht-put-item"·id="toc-entry-17">dht_put_item()</a></li> | 51 | <li><a·class="reference·internal"·href="#dht-put-item"·id="toc-entry-17">dht_put_item()</a></li> |
52 | <li><a·class="reference·internal"·href="#dht-put-item-1"·id="toc-entry-18">dht_put_item()</a></li> | 52 | <li><a·class="reference·internal"·href="#dht-put-item-1"·id="toc-entry-18">dht_put_item()</a></li> |
53 | <li><a·class="reference·internal"·href="#dht-announce-dht-get-peers"·id="toc-entry-19">dht_announce()·dht_get_peers()</a></li> | 53 | <li><a·class="reference·internal"·href="#dht-announce-dht-get-peers"·id="toc-entry-19">dht_announce()·dht_get_peers()</a></li> |
54 | <li><a·class="reference·internal"·href="#dht-live-nodes"·id="toc-entry-20">dht_live_nodes()</a></li> | 54 | <li><a·class="reference·internal"·href="#dht-live-nodes"·id="toc-entry-20">dht_live_nodes()</a></li> |
55 | <li><a·class="reference·internal"·href="#dht-sample-infohashes"·id="toc-entry-21">dht_sample_infohashes()</a></li> | 55 | <li><a·class="reference·internal"·href="#dht-sample-infohashes"·id="toc-entry-21">dht_sample_infohashes()</a></li> |
56 | <li><a·class="reference·internal"·href="#dht-direct-request"·id="toc-entry-22">dht_direct_request()</a></li> | 56 | <li><a·class="reference·internal"·href="#dht-direct-request"·id="toc-entry-22">dht_direct_request()</a></li> |
57 | <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-23">add_extension()</a></li> | 57 | <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-23">add_extension()</a></li> |
58 | <li><a·class="reference·internal"·href="# | 58 | <li><a·class="reference·internal"·href="#get-ip-filter-set-ip-filter"·id="toc-entry-24">get_ip_filter()·set_ip_filter()</a></li> |
59 | <li><a·class="reference·internal"·href="#set-port-filter"·id="toc-entry-25">set_port_filter()</a></li> | 59 | <li><a·class="reference·internal"·href="#set-port-filter"·id="toc-entry-25">set_port_filter()</a></li> |
60 | <li><a·class="reference·internal"·href="#listen-port-is-listening-ssl-listen-port"·id="toc-entry-26">listen_port()·is_listening()·ssl_listen_port()</a></li> | 60 | <li><a·class="reference·internal"·href="#listen-port-is-listening-ssl-listen-port"·id="toc-entry-26">listen_port()·is_listening()·ssl_listen_port()</a></li> |
61 | <li><a·class="reference·internal"·href="#get-peer-class-filter-set-peer-class-filter"·id="toc-entry-27">get_peer_class_filter()·set_peer_class_filter()</a></li> | 61 | <li><a·class="reference·internal"·href="#get-peer-class-filter-set-peer-class-filter"·id="toc-entry-27">get_peer_class_filter()·set_peer_class_filter()</a></li> |
62 | <li><a·class="reference·internal"·href="# | 62 | <li><a·class="reference·internal"·href="#set-peer-class-type-filter-get-peer-class-type-filter"·id="toc-entry-28">set_peer_class_type_filter()·get_peer_class_type_filter()</a></li> |
63 | <li><a·class="reference·internal"·href="#create-peer-class"·id="toc-entry-29">create_peer_class()</a></li> | 63 | <li><a·class="reference·internal"·href="#create-peer-class"·id="toc-entry-29">create_peer_class()</a></li> |
64 | <li><a·class="reference·internal"·href="#delete-peer-class"·id="toc-entry-30">delete_peer_class()</a></li> | 64 | <li><a·class="reference·internal"·href="#delete-peer-class"·id="toc-entry-30">delete_peer_class()</a></li> |
65 | <li><a·class="reference·internal"·href="# | 65 | <li><a·class="reference·internal"·href="#get-peer-class-set-peer-class"·id="toc-entry-31">get_peer_class()·set_peer_class()</a></li> |
66 | <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-32">remove_torrent()</a></li> | 66 | <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-32">remove_torrent()</a></li> |
67 | <li><a·class="reference·internal"·href="# | 67 | <li><a·class="reference·internal"·href="#apply-settings-get-settings"·id="toc-entry-33">apply_settings()·get_settings()</a></li> |
68 | <li><a·class="reference·internal"·href="# | 68 | <li><a·class="reference·internal"·href="#wait-for-alert-set-alert-notify-pop-alerts"·id="toc-entry-34">wait_for_alert()·set_alert_notify()·pop_alerts()</a></li> |
69 | <li><a·class="reference·internal"·href="# | 69 | <li><a·class="reference·internal"·href="#add-port-mapping-delete-port-mapping"·id="toc-entry-35">add_port_mapping()·delete_port_mapping()</a></li> |
70 | <li><a·class="reference·internal"·href="#reopen-network-sockets"·id="toc-entry-36">reopen_network_sockets()</a></li> | 70 | <li><a·class="reference·internal"·href="#reopen-network-sockets"·id="toc-entry-36">reopen_network_sockets()</a></li> |
71 | <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-37">native_handle()</a></li> | 71 | <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-37">native_handle()</a></li> |
72 | </ul> | 72 | </ul> |
73 | </li> | 73 | </li> |
74 | <li><a·class="reference·internal"·href="#session-pr | 74 | <li><a·class="reference·internal"·href="#session-params"·id="toc-entry-38">session_params</a><ul> |
75 | <li><a·class="reference·internal"·href="# | 75 | <li><a·class="reference·internal"·href="#session-params-1"·id="toc-entry-39">session_params()</a></li> |
76 | <li><a·class="reference·internal"·href="#session-params-2"·id="toc-entry-40">session_params()</a></li> | ||
76 | </ul> | 77 | </ul> |
77 | </li> | 78 | </li> |
78 | <li><a·class="reference·internal"·href="#session"·id="toc-entry-4 | 79 | <li><a·class="reference·internal"·href="#session-proxy"·id="toc-entry-41">session_proxy</a><ul> |
80 | <li><a·class="reference·internal"·href="#operator-session-proxy-session-proxy"·id="toc-entry-42">operator=()·~session_proxy()·session_proxy()</a></li> | ||
79 | <li><a·class="reference·internal"·href="#session-1"·id="toc-entry-41">session()</a></li> | ||
80 | <li><a·class="reference·internal"·href="#session-2"·id="toc-entry-42">session()</a></li> | ||
81 | <li><a·class="reference·internal"·href="#session-3"·id="toc-entry-43">~session()</a></li> | ||
82 | <li><a·class="reference·internal"·href="#abort"·id="toc-entry-44">abort()</a></li> | ||
83 | </ul> | 81 | </ul> |
84 | </li> | 82 | </li> |
85 | <li><a·class="reference·internal"·href="#session | 83 | <li><a·class="reference·internal"·href="#session"·id="toc-entry-43">session</a><ul> |
86 | <li><a·class="reference·internal"·href="#session- | 84 | <li><a·class="reference·internal"·href="#session-1"·id="toc-entry-44">session()</a></li> |
87 | <li><a·class="reference·internal"·href="#session- | 85 | <li><a·class="reference·internal"·href="#session-2"·id="toc-entry-45">session()</a></li> |
86 | <li><a·class="reference·internal"·href="#session-3"·id="toc-entry-46">~session()</a></li> | ||
87 | <li><a·class="reference·internal"·href="#abort"·id="toc-entry-47">abort()</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="#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> |
91 | </ul> | 91 | </ul> |
92 | </div> | 92 | </div> |
93 | <a·name="session_handle"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session_handle&labels=documentation&body=Documentation+under+heading+%22class+session_handle%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="session-handle"> | 93 | <a·name="session_handle"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session_handle&labels=documentation&body=Documentation+under+heading+%22class+session_handle%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="session-handle"> |
94 | <h1>session_handle</h1> | 94 | <h1>session_handle</h1> |
95 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/session_handle.hpp">libtorrent/session_handle.hpp</a>"</p> | 95 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/session_handle.hpp">libtorrent/session_handle.hpp</a>"</p> |
96 | <p>this·class·provides·a·non-owning·handle·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>·and·a·subset·of·the | 96 | <p>this·class·provides·a·non-owning·handle·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>·and·a·subset·of·the |
97 | interface·of·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·class.·If·the·underlying·<a·class="reference·external"·href="reference-Session.html#session">session</a>·is·destructed | 97 | interface·of·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·class.·If·the·underlying·<a·class="reference·external"·href="reference-Session.html#session">session</a>·is·destructed |
98 | any·handle·to·it·will·no·longer·be·valid.·<a·class="reference·external"·href="reference- | 98 | any·handle·to·it·will·no·longer·be·valid.·<a·class="reference·external"·href="reference-Session.html#is_valid()">is_valid()</a>·will·return·false·and |
99 | any·operation·on·it·will·throw·a·system_error·exception,·with·error·code | 99 | any·operation·on·it·will·throw·a·system_error·exception,·with·error·code |
100 | invalid_session_handle.</p> | 100 | invalid_session_handle.</p> |
101 | <pre·class="literal-block"> | 101 | <pre·class="literal-block"> |
102 | struct·session_handle | 102 | struct·session_handle |
103 | { | 103 | { |
104 | ···bool·<strong>is_valid</strong>·()·const; | 104 | ···bool·<strong>is_valid</strong>·()·const; |
105 | ···session_params·<strong>session_state</strong>·(save_state_flags_t·flags·=·save_state_flags_t::all())·const; | 105 | ···session_params·<strong>session_state</strong>·(save_state_flags_t·flags·=·save_state_flags_t::all())·const; |
Offset 111, 63 lines modified | Offset 111, 63 lines modified | ||
111 | ···void·<strong>post_torrent_updates</strong>·(status_flags_t·flags·=·status_flags_t::all()); | 111 | ···void·<strong>post_torrent_updates</strong>·(status_flags_t·flags·=·status_flags_t::all()); |
112 | ···void·<strong>post_session_stats</strong>·(); | 112 | ···void·<strong>post_session_stats</strong>·(); |
113 | ···void·<strong>post_dht_stats</strong>·(); | 113 | ···void·<strong>post_dht_stats</strong>·(); |
114 | ···void·<strong>set_dht_state</strong>·(dht::dht_state·const&·st); | 114 | ···void·<strong>set_dht_state</strong>·(dht::dht_state·const&·st); |
115 | ···void·<strong>set_dht_state</strong>·(dht::dht_state&&·st); | 115 | ···void·<strong>set_dht_state</strong>·(dht::dht_state&&·st); |
116 | ···torrent_handle·<strong>find_torrent</strong>·(sha1_hash·const&·info_hash)·const; | 116 | ···torrent_handle·<strong>find_torrent</strong>·(sha1_hash·const&·info_hash)·const; |
117 | ···std::vector<torrent_handle>·<strong>get_torrents</strong>·()·const; | 117 | ···std::vector<torrent_handle>·<strong>get_torrents</strong>·()·const; |
118 | ···void·<strong>async_add_torrent</strong>·(add_torrent_params·const&·params); | ||
119 | ···torrent_handle·<strong>add_torrent</strong>·(add_torrent_params&&·params); | 118 | ···torrent_handle·<strong>add_torrent</strong>·(add_torrent_params&&·params); |
119 | ···void·<strong>async_add_torrent</strong>·(add_torrent_params·const&·params); | ||
120 | ···torrent_handle·<strong>add_torrent</strong>·(add_torrent_params·const&·params); | 120 | ···torrent_handle·<strong>add_torrent</strong>·(add_torrent_params·const&·params,·error_code&·ec); |
121 | ···void·<strong>async_add_torrent</strong>·(add_torrent_params&&·params); | 121 | ···void·<strong>async_add_torrent</strong>·(add_torrent_params&&·params); |
122 | ···torrent_handle·<strong>add_torrent</strong>·(add_torrent_params·const&·params); | ||
122 | ···torrent_handle·<strong>add_torrent</strong>·(add_torrent_params&&·params,·error_code&·ec); | 123 | ···torrent_handle·<strong>add_torrent</strong>·(add_torrent_params&&·params,·error_code&·ec); |
123 | ···torrent_handle·<strong>add_torrent</strong>·(add_torrent_params·const&·params,·error_code&·ec); | ||
124 | ···bool·<strong>is_paused</strong>·()·const; | 124 | ···bool·<strong>is_paused</strong>·()·const; |
125 | ···void·<strong>resume</strong>·(); | ||
126 | ···void·<strong>pause</strong>·(); | 125 | ···void·<strong>pause</strong>·(); |
126 | ···void·<strong>resume</strong>·(); | ||
127 | ···bool·<strong>is_dht_running</strong>·()·const; | 127 | ···bool·<strong>is_dht_running</strong>·()·const; |
128 | ···void·<strong>set_dht_storage</strong>·(dht::dht_storage_constructor_type·sc); | 128 | ···void·<strong>set_dht_storage</strong>·(dht::dht_storage_constructor_type·sc); |
129 | ···void·<strong>add_dht_node</strong>·(std::pair<std::string,·int>·const&·node); | 129 | ···void·<strong>add_dht_node</strong>·(std::pair<std::string,·int>·const&·node); |
130 | ···void·<strong>dht_get_item</strong>·(sha1_hash·const&·target); | 130 | ···void·<strong>dht_get_item</strong>·(sha1_hash·const&·target); |
131 | ···void·<strong>dht_get_item</strong>·(std::array<char,·32>·key | 131 | ···void·<strong>dht_get_item</strong>·(std::array<char,·32>·key |
132 | ······,·std::string·salt·=·std::string()); | 132 | ······,·std::string·salt·=·std::string()); |
133 | ···sha1_hash·<strong>dht_put_item</strong>·(entry·data); | 133 | ···sha1_hash·<strong>dht_put_item</strong>·(entry·data); |
134 | ···void·<strong>dht_put_item</strong>·(std::array<char,·32>·key | 134 | ···void·<strong>dht_put_item</strong>·(std::array<char,·32>·key |
135 | ······,·std::function<void(entry&,·std::array<char,·64>& | 135 | ······,·std::function<void(entry&,·std::array<char,·64>& |
136 | ······,·std::int64_t&,·std::string·const&)>·cb | 136 | ······,·std::int64_t&,·std::string·const&)>·cb |
137 | ······,·std::string·salt·=·std::string()); | 137 | ······,·std::string·salt·=·std::string()); |
138 | ···void·<strong>dht_announce</strong>·(sha1_hash·const&·info_hash,·int·port·=·0,·dht::announce_flags_t·flags·=·{}); | ||
139 | ···void·<strong>dht_get_peers</strong>·(sha1_hash·const&·info_hash); | 138 | ···void·<strong>dht_get_peers</strong>·(sha1_hash·const&·info_hash); |
139 | ···void·<strong>dht_announce</strong>·(sha1_hash·const&·info_hash,·int·port·=·0,·dht::announce_flags_t·flags·=·{}); | ||
140 | ···void·<strong>dht_live_nodes</strong>·(sha1_hash·const&·nid); | 140 | ···void·<strong>dht_live_nodes</strong>·(sha1_hash·const&·nid); |
141 | ···void·<strong>dht_sample_infohashes</strong>·(udp::endpoint·const&·ep,·sha1_hash·const&·target); | 141 | ···void·<strong>dht_sample_infohashes</strong>·(udp::endpoint·const&·ep,·sha1_hash·const&·target); |
142 | ···void·<strong>dht_direct_request</strong>·(udp::endpoint·const&·ep,·entry·const&·e,·client_data_t·userdata·=·{}); | 142 | ···void·<strong>dht_direct_request</strong>·(udp::endpoint·const&·ep,·entry·const&·e,·client_data_t·userdata·=·{}); |
143 | ···void·<strong>add_extension</strong>·(std::function<std::shared_ptr<torrent_plugin>( | 143 | ···void·<strong>add_extension</strong>·(std::function<std::shared_ptr<torrent_plugin>( |
144 | ······torrent_handle·const&,·client_data_t)>·ext); | 144 | ······torrent_handle·const&,·client_data_t)>·ext); |
145 | ···void·<strong>add_extension</strong>·(std::shared_ptr<plugin>·ext); | 145 | ···void·<strong>add_extension</strong>·(std::shared_ptr<plugin>·ext); |
146 | ···ip_filter·<strong>get_ip_filter</strong>·()·const; | 146 | ···ip_filter·<strong>get_ip_filter</strong>·()·const; |
147 | ···void·<strong>set_ip_filter</strong>·(ip_filter·f); | 147 | ···void·<strong>set_ip_filter</strong>·(ip_filter·f); |
148 | ···void·<strong>set_port_filter</strong>·(port_filter·const&·f); | 148 | ···void·<strong>set_port_filter</strong>·(port_filter·const&·f); |
149 | ···unsigned·short·<strong>listen_port</strong>·()·const; | ||
150 | ···unsigned·short·<strong>ssl_listen_port</strong>·()·const; | 149 | ···unsigned·short·<strong>ssl_listen_port</strong>·()·const; |
150 | ···unsigned·short·<strong>listen_port</strong>·()·const; | ||
151 | ···bool·<strong>is_listening</strong>·()·const; | 151 | ···bool·<strong>is_listening</strong>·()·const; |
152 | ···ip_filter·<strong>get_peer_class_filter</strong>·()·const; | 152 | ···ip_filter·<strong>get_peer_class_filter</strong>·()·const; |
Max diff block lines reached; 51589/64677 bytes (79.76%) of diff not shown. |
Offset 2, 58 lines modified | Offset 2, 58 lines modified | ||
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | 6 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e |
7 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) | 7 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) |
8 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) | 8 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) |
9 | ··········o·_\x8 | 9 | ··········o·_\x8r_.e_.f_.r_.e_.s_.h_.__.t_.o_.r_.r_.e_.n_.t_.__.s_.t_.a_.t_.u_.s_.(_.)_.·_.g_.e_.t_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8) |
10 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8s_\x8(_\x8) | 10 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8s_\x8(_\x8) |
11 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8(_\x8) | 11 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8(_\x8) |
12 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8(_\x8) | 12 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8(_\x8) |
13 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) | 13 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) |
14 | ··········o·_\x8 | 14 | ··········o·_\x8g_.e_.t_.__.t_.o_.r_.r_.e_.n_.t_.s_.(_.)_.·_.f_.i_.n_.d_.__.t_.o_.r_.r_.e_.n_.t_\x8(_\x8) |
15 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8)_\x8·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) | 15 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8)_\x8·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) |
16 | ··········o·_\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8(_\x8)_\x8·_\x8i_\x8s_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8d_\x8(_\x8)_\x8·_\x8p_\x8a_\x8u_\x8s_\x8e_\x8(_\x8) | 16 | ··········o·_\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8(_\x8)_\x8·_\x8i_\x8s_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8d_\x8(_\x8)_\x8·_\x8p_\x8a_\x8u_\x8s_\x8e_\x8(_\x8) |
17 | ··········o·_\x8i_\x8s_\x8__\x8d_\x8h_\x8t_\x8__\x8r_\x8u_\x8n_\x8n_\x8i_\x8n_\x8g_\x8(_\x8) | 17 | ··········o·_\x8i_\x8s_\x8__\x8d_\x8h_\x8t_\x8__\x8r_\x8u_\x8n_\x8n_\x8i_\x8n_\x8g_\x8(_\x8) |
18 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8(_\x8) | 18 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8(_\x8) |
19 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8d_\x8h_\x8t_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) | 19 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8d_\x8h_\x8t_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) |
20 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | 20 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) |
21 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | 21 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) |
22 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8p_\x8u_\x8t_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | 22 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8p_\x8u_\x8t_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) |
23 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8p_\x8u_\x8t_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | 23 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8p_\x8u_\x8t_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) |
24 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8(_\x8)_\x8·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8(_\x8) | 24 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8(_\x8)_\x8·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8(_\x8) |
25 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8l_\x8i_\x8v_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) | 25 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8l_\x8i_\x8v_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) |
26 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) | 26 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) |
27 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8(_\x8) | 27 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8(_\x8) |
28 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | 28 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) |
29 | ··········o·_\x8 | 29 | ··········o·_\x8g_.e_.t_.__.i_.p_.__.f_.i_.l_.t_.e_.r_.(_.)_.·_.s_\x8e_\x8t_\x8__\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) |
30 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8p_\x8o_\x8r_\x8t_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) | 30 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8p_\x8o_\x8r_\x8t_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) |
31 | ··········o·_\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8__\x8p_\x8o_\x8r_\x8t_\x8(_\x8)_\x8·_\x8i_\x8s_\x8__\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8i_\x8n_\x8g_\x8(_\x8)_\x8·_\x8s_\x8s_\x8l_\x8__\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8__\x8p_\x8o_\x8r_\x8t_\x8(_\x8) | 31 | ··········o·_\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8__\x8p_\x8o_\x8r_\x8t_\x8(_\x8)_\x8·_\x8i_\x8s_\x8__\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8i_\x8n_\x8g_\x8(_\x8)_\x8·_\x8s_\x8s_\x8l_\x8__\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8__\x8p_\x8o_\x8r_\x8t_\x8(_\x8) |
32 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) | 32 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) |
33 | ··········o·_\x8 | 33 | ··········o·_\x8s_.e_.t_.__.p_.e_.e_.r_.__.c_.l_.a_.s_.s_.__.t_.y_.p_.e_.__.f_.i_.l_.t_.e_.r_.(_.)_.·_.g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) |
34 | ··········o·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8) | 34 | ··········o·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8) |
35 | ··········o·_\x8d_\x8e_\x8l_\x8e_\x8t_\x8e_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8) | 35 | ··········o·_\x8d_\x8e_\x8l_\x8e_\x8t_\x8e_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8) |
36 | ··········o·_\x8 | 36 | ··········o·_\x8g_.e_.t_.__.p_.e_.e_.r_.__.c_.l_.a_.s_.s_.(_.)_.·_.s_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8(_\x8) |
37 | ··········o·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) | 37 | ··········o·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) |
38 | ··········o·_\x8 | 38 | ··········o·_\x8a_.p_.p_.l_.y_.__.s_.e_.t_.t_.i_.n_.g_.s_.(_.)_.·_.g_.e_.t_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8) |
39 | ··········o·_\x8 | 39 | ··········o·_\x8w_.a_.i_.t_.__.f_.o_.r_.__.a_.l_.e_.r_.t_.(_.)_.·_.s_.e_.t_.__.a_.l_.e_.r_.t_.__.n_.o_.t_.i_.f_.y_.(_.)_.·_.p_.o_.p_.__.a_.l_.e_.r_.t_.s_\x8(_\x8) |
40 | ··········o·_\x8 | 40 | ··········o·_\x8a_.d_.d_.__.p_.o_.r_.t_.__.m_.a_.p_.p_.i_.n_.g_.(_.)_.·_.d_.e_.l_.e_.t_.e_\x8__\x8p_\x8o_\x8r_\x8t_\x8__\x8m_\x8a_\x8p_\x8p_\x8i_\x8n_\x8g_\x8(_\x8) |
41 | ··········o·_\x8r_\x8e_\x8o_\x8p_\x8e_\x8n_\x8__\x8n_\x8e_\x8t_\x8w_\x8o_\x8r_\x8k_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8s_\x8(_\x8) | 41 | ··········o·_\x8r_\x8e_\x8o_\x8p_\x8e_\x8n_\x8__\x8n_\x8e_\x8t_\x8w_\x8o_\x8r_\x8k_\x8__\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8s_\x8(_\x8) |
42 | ··········o·_\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8(_\x8) | 42 | ··········o·_\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8(_\x8) |
43 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
44 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
45 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
43 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y | 46 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y |
44 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8)_\x8·_\x8~_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y_\x8(_\x8)_\x8·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y_\x8(_\x8) | 47 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8)_\x8·_\x8~_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y_\x8(_\x8)_\x8·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y_\x8(_\x8) |
45 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n | 48 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n |
46 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | 49 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) |
47 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | 50 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) |
48 | ··········o·_\x8~_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | 51 | ··········o·_\x8~_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) |
49 | ··········o·_\x8a_\x8b_\x8o_\x8r_\x8t_\x8(_\x8) | 52 | ··········o·_\x8a_\x8b_\x8o_\x8r_\x8t_\x8(_\x8) |
50 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
51 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
52 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
53 | ····*·_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8)_\x8·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8)_\x8·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8__\x8b_\x8u_\x8f_\x8(_\x8) | 53 | ····*·_\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8)_\x8·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8)_\x8·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8__\x8b_\x8u_\x8f_\x8(_\x8) |
54 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 54 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
55 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 55 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_h\x8ha\x8an\x8nd\x8dl\x8le\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
56 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8._\x8h_\x8p_\x8p" | 56 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8._\x8h_\x8p_\x8p" |
57 | this·class·provides·a·non-owning·handle·to·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·and·a·subset·of·the | 57 | this·class·provides·a·non-owning·handle·to·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·and·a·subset·of·the |
58 | interface·of·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·class.·If·the·underlying·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·is·destructed·any | 58 | interface·of·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·class.·If·the·underlying·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·is·destructed·any |
59 | handle·to·it·will·no·longer·be·valid.·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8)·will·return·false·and·any | 59 | handle·to·it·will·no·longer·be·valid.·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8)·will·return·false·and·any |
Offset 72, 67 lines modified | Offset 72, 67 lines modified | ||
72 | ···void·p\x8po\x8os\x8st\x8t_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_u\x8up\x8pd\x8da\x8at\x8te\x8es\x8s·(status_flags_t·flags·=·status_flags_t::all()); | 72 | ···void·p\x8po\x8os\x8st\x8t_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_u\x8up\x8pd\x8da\x8at\x8te\x8es\x8s·(status_flags_t·flags·=·status_flags_t::all()); |
73 | ···void·p\x8po\x8os\x8st\x8t_\x8_s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8ts\x8s·(); | 73 | ···void·p\x8po\x8os\x8st\x8t_\x8_s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8ts\x8s·(); |
74 | ···void·p\x8po\x8os\x8st\x8t_\x8_d\x8dh\x8ht\x8t_\x8_s\x8st\x8ta\x8at\x8ts\x8s·(); | 74 | ···void·p\x8po\x8os\x8st\x8t_\x8_d\x8dh\x8ht\x8t_\x8_s\x8st\x8ta\x8at\x8ts\x8s·(); |
75 | ···void·s\x8se\x8et\x8t_\x8_d\x8dh\x8ht\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·(dht::dht_state·const&·st); | 75 | ···void·s\x8se\x8et\x8t_\x8_d\x8dh\x8ht\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·(dht::dht_state·const&·st); |
76 | ···void·s\x8se\x8et\x8t_\x8_d\x8dh\x8ht\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·(dht::dht_state&&·st); | 76 | ···void·s\x8se\x8et\x8t_\x8_d\x8dh\x8ht\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·(dht::dht_state&&·st); |
77 | ···torrent_handle·f\x8fi\x8in\x8nd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(sha1_hash·const&·info_hash)·const; | 77 | ···torrent_handle·f\x8fi\x8in\x8nd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(sha1_hash·const&·info_hash)·const; |
78 | ···std::vector<torrent_handle>·g\x8ge\x8et\x8t_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8ts\x8s·()·const; | 78 | ···std::vector<torrent_handle>·g\x8ge\x8et\x8t_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8ts\x8s·()·const; |
79 | ···void·a\x8as\x8sy\x8yn\x8nc\x8c_\x8_a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params·const&·params); | ||
80 | ···torrent_handle·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params&&·params); | 79 | ···torrent_handle·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params&&·params); |
81 | ···torrent_handle·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params·const&·params); | ||
82 | ···void·a\x8as\x8sy\x8yn\x8nc\x8c_\x8_a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params | 80 | ···void·a\x8as\x8sy\x8yn\x8nc\x8c_\x8_a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params·const&·params); |
83 | ···torrent_handle·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params&&·params,·error_code&·ec); | ||
84 | ···torrent_handle·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params·const&·params,·error_code& | 81 | ···torrent_handle·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params·const&·params,·error_code& |
85 | ec); | 82 | ec); |
83 | ···void·a\x8as\x8sy\x8yn\x8nc\x8c_\x8_a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params&&·params); | ||
84 | ···torrent_handle·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params·const&·params); | ||
85 | ···torrent_handle·a\x8ad\x8dd\x8d_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(add_torrent_params&&·params,·error_code&·ec); | ||
86 | ···bool·i\x8is\x8s_\x8_p\x8pa\x8au\x8us\x8se\x8ed\x8d·()·const; | 86 | ···bool·i\x8is\x8s_\x8_p\x8pa\x8au\x8us\x8se\x8ed\x8d·()·const; |
87 | ···void·r\x8re\x8es\x8su\x8um\x8me\x8e·(); | ||
88 | ···void·p\x8pa\x8au\x8us\x8se\x8e·(); | 87 | ···void·p\x8pa\x8au\x8us\x8se\x8e·(); |
88 | ···void·r\x8re\x8es\x8su\x8um\x8me\x8e·(); | ||
89 | ···bool·i\x8is\x8s_\x8_d\x8dh\x8ht\x8t_\x8_r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·()·const; | 89 | ···bool·i\x8is\x8s_\x8_d\x8dh\x8ht\x8t_\x8_r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·()·const; |
90 | ···void·s\x8se\x8et\x8t_\x8_d\x8dh\x8ht\x8t_\x8_s\x8st\x8to\x8or\x8ra\x8ag\x8ge\x8e·(dht::dht_storage_constructor_type·sc); | 90 | ···void·s\x8se\x8et\x8t_\x8_d\x8dh\x8ht\x8t_\x8_s\x8st\x8to\x8or\x8ra\x8ag\x8ge\x8e·(dht::dht_storage_constructor_type·sc); |
91 | ···void·a\x8ad\x8dd\x8d_\x8_d\x8dh\x8ht\x8t_\x8_n\x8no\x8od\x8de\x8e·(std::pair<std::string,·int>·const&·node); | 91 | ···void·a\x8ad\x8dd\x8d_\x8_d\x8dh\x8ht\x8t_\x8_n\x8no\x8od\x8de\x8e·(std::pair<std::string,·int>·const&·node); |
92 | ···void·d\x8dh\x8ht\x8t_\x8_g\x8ge\x8et\x8t_\x8_i\x8it\x8te\x8em\x8m·(sha1_hash·const&·target); | 92 | ···void·d\x8dh\x8ht\x8t_\x8_g\x8ge\x8et\x8t_\x8_i\x8it\x8te\x8em\x8m·(sha1_hash·const&·target); |
93 | ···void·d\x8dh\x8ht\x8t_\x8_g\x8ge\x8et\x8t_\x8_i\x8it\x8te\x8em\x8m·(std::array<char,·32>·key | 93 | ···void·d\x8dh\x8ht\x8t_\x8_g\x8ge\x8et\x8t_\x8_i\x8it\x8te\x8em\x8m·(std::array<char,·32>·key |
94 | ······,·std::string·salt·=·std::string()); | 94 | ······,·std::string·salt·=·std::string()); |
95 | ···sha1_hash·d\x8dh\x8ht\x8t_\x8_p\x8pu\x8ut\x8t_\x8_i\x8it\x8te\x8em\x8m·(entry·data); | 95 | ···sha1_hash·d\x8dh\x8ht\x8t_\x8_p\x8pu\x8ut\x8t_\x8_i\x8it\x8te\x8em\x8m·(entry·data); |
96 | ···void·d\x8dh\x8ht\x8t_\x8_p\x8pu\x8ut\x8t_\x8_i\x8it\x8te\x8em\x8m·(std::array<char,·32>·key | 96 | ···void·d\x8dh\x8ht\x8t_\x8_p\x8pu\x8ut\x8t_\x8_i\x8it\x8te\x8em\x8m·(std::array<char,·32>·key |
97 | ······,·std::function<void(entry&,·std::array<char,·64>& | 97 | ······,·std::function<void(entry&,·std::array<char,·64>& |
98 | ······,·std::int64_t&,·std::string·const&)>·cb | 98 | ······,·std::int64_t&,·std::string·const&)>·cb |
99 | ······,·std::string·salt·=·std::string()); | 99 | ······,·std::string·salt·=·std::string()); |
100 | ···void·d\x8dh\x8ht\x8t_\x8_g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8rs\x8s·(sha1_hash·const&·info_hash); | ||
100 | ···void·d\x8dh\x8ht\x8t_\x8_a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e·(sha1_hash·const&·info_hash,·int·port·=·0,·dht:: | 101 | ···void·d\x8dh\x8ht\x8t_\x8_a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e·(sha1_hash·const&·info_hash,·int·port·=·0,·dht:: |
101 | announce_flags_t·flags·=·{}); | 102 | announce_flags_t·flags·=·{}); |
102 | ···void·d\x8dh\x8ht\x8t_\x8_g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8rs\x8s·(sha1_hash·const&·info_hash); | ||
103 | ···void·d\x8dh\x8ht\x8t_\x8_l\x8li\x8iv\x8ve\x8e_\x8_n\x8no\x8od\x8de\x8es\x8s·(sha1_hash·const&·nid); | 103 | ···void·d\x8dh\x8ht\x8t_\x8_l\x8li\x8iv\x8ve\x8e_\x8_n\x8no\x8od\x8de\x8es\x8s·(sha1_hash·const&·nid); |
104 | ···void·d\x8dh\x8ht\x8t_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8in\x8nf\x8fo\x8oh\x8ha\x8as\x8sh\x8he\x8es\x8s·(udp::endpoint·const&·ep,·sha1_hash·const& | 104 | ···void·d\x8dh\x8ht\x8t_\x8_s\x8sa\x8am\x8mp\x8pl\x8le\x8e_\x8_i\x8in\x8nf\x8fo\x8oh\x8ha\x8as\x8sh\x8he\x8es\x8s·(udp::endpoint·const&·ep,·sha1_hash·const& |
105 | target); | 105 | target); |
106 | ···void·d\x8dh\x8ht\x8t_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8t_\x8_r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8t·(udp::endpoint·const&·ep,·entry·const&·e, | 106 | ···void·d\x8dh\x8ht\x8t_\x8_d\x8di\x8ir\x8re\x8ec\x8ct\x8t_\x8_r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8t·(udp::endpoint·const&·ep,·entry·const&·e, |
107 | client_data_t·userdata·=·{}); | 107 | client_data_t·userdata·=·{}); |
108 | ···void·a\x8ad\x8dd\x8d_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n·(std::function<std::shared_ptr<torrent_plugin>( | 108 | ···void·a\x8ad\x8dd\x8d_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n·(std::function<std::shared_ptr<torrent_plugin>( |
109 | ······torrent_handle·const&,·client_data_t)>·ext); | 109 | ······torrent_handle·const&,·client_data_t)>·ext); |
110 | ···void·a\x8ad\x8dd\x8d_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n·(std::shared_ptr<plugin>·ext); | 110 | ···void·a\x8ad\x8dd\x8d_\x8_e\x8ex\x8xt\x8te\x8en\x8ns\x8si\x8io\x8on\x8n·(std::shared_ptr<plugin>·ext); |
111 | ···ip_filter·g\x8ge\x8et\x8t_\x8_i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·()·const; | 111 | ···ip_filter·g\x8ge\x8et\x8t_\x8_i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·()·const; |
112 | ···void·s\x8se\x8et\x8t_\x8_i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter·f); | 112 | ···void·s\x8se\x8et\x8t_\x8_i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter·f); |
113 | ···void·s\x8se\x8et\x8t_\x8_p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(port_filter·const&·f); | 113 | ···void·s\x8se\x8et\x8t_\x8_p\x8po\x8or\x8rt\x8t_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(port_filter·const&·f); |
114 | ···unsigned·short·l\x8li\x8is\x8st\x8te\x8en\x8n_\x8_p\x8po\x8or\x8rt\x8t·()·const; | ||
115 | ···unsigned·short·s\x8ss\x8sl\x8l_\x8_l\x8li\x8is\x8st\x8te\x8en\x8n_\x8_p\x8po\x8or\x8rt\x8t·()·const; | 114 | ···unsigned·short·s\x8ss\x8sl\x8l_\x8_l\x8li\x8is\x8st\x8te\x8en\x8n_\x8_p\x8po\x8or\x8rt\x8t·()·const; |
115 | ···unsigned·short·l\x8li\x8is\x8st\x8te\x8en\x8n_\x8_p\x8po\x8or\x8rt\x8t·()·const; | ||
116 | ···bool·i\x8is\x8s_\x8_l\x8li\x8is\x8st\x8te\x8en\x8ni\x8in\x8ng\x8g·()·const; | 116 | ···bool·i\x8is\x8s_\x8_l\x8li\x8is\x8st\x8te\x8en\x8ni\x8in\x8ng\x8g·()·const; |
117 | ···ip_filter·g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·()·const; | 117 | ···ip_filter·g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·()·const; |
118 | ···void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter·const&·f); | 118 | ···void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter·const&·f); |
119 | ···void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_t\x8ty\x8yp\x8pe\x8e_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(peer_class_type_filter·const&·f); | 119 | ···void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_t\x8ty\x8yp\x8pe\x8e_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(peer_class_type_filter·const&·f); |
120 | ···peer_class_type_filter·g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_t\x8ty\x8yp\x8pe\x8e_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·()·const; | 120 | ···peer_class_type_filter·g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_t\x8ty\x8yp\x8pe\x8e_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·()·const; |
121 | ···peer_class_t·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s·(char·const*·name); | 121 | ···peer_class_t·c\x8cr\x8re\x8ea\x8at\x8te\x8e_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s·(char·const*·name); |
122 | ···void·d\x8de\x8el\x8le\x8et\x8te\x8e_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s·(peer_class_t·cid); | 122 | ···void·d\x8de\x8el\x8le\x8et\x8te\x8e_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s·(peer_class_t·cid); |
123 | ···void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s·(peer_class_t·cid,·peer_class_info·const&·pci); | ||
124 | ···peer_class_info·g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s·(peer_class_t·cid)·const; | 123 | ···peer_class_info·g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s·(peer_class_t·cid)·const; |
124 | ···void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s·(peer_class_t·cid,·peer_class_info·const&·pci); | ||
125 | ···void·r\x8re\x8em\x8mo\x8ov\x8ve\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(const·torrent_handle&,·remove_flags_t·=·{}); | 125 | ···void·r\x8re\x8em\x8mo\x8ov\x8ve\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·(const·torrent_handle&,·remove_flags_t·=·{}); |
126 | ···void·a\x8ap\x8pp\x8pl\x8ly\x8y_\x8_s\x8se\x8et\x8tt\x8ti\x8in\x8ng\x8gs\x8s·(settings_pack·const&); | 126 | ···void·a\x8ap\x8pp\x8pl\x8ly\x8y_\x8_s\x8se\x8et\x8tt\x8ti\x8in\x8ng\x8gs\x8s·(settings_pack·const&); |
127 | ···settings_pack·g\x8ge\x8et\x8t_\x8_s\x8se\x8et\x8tt\x8ti\x8in\x8ng\x8gs\x8s·()·const; | 127 | ···settings_pack·g\x8ge\x8et\x8t_\x8_s\x8se\x8et\x8tt\x8ti\x8in\x8ng\x8gs\x8s·()·const; |
128 | ···void·a\x8ap\x8pp\x8pl\x8ly\x8y_\x8_s\x8se\x8et\x8tt\x8ti\x8in\x8ng\x8gs\x8s·(settings_pack&&); | 128 | ···void·a\x8ap\x8pp\x8pl\x8ly\x8y_\x8_s\x8se\x8et\x8tt\x8ti\x8in\x8ng\x8gs\x8s·(settings_pack&&); |
129 | ···void·s\x8se\x8et\x8t_\x8_a\x8al\x8le\x8er\x8rt\x8t_\x8_n\x8no\x8ot\x8ti\x8if\x8fy\x8y·(std::function<void()>·const&·fun); | ||
Max diff block lines reached; 32048/42979 bytes (74.57%) of diff not shown. |
Offset 29, 15 lines modified | Offset 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="#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- | 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-str-get-bool-get-int"·id="toc-entry-6">get_str()·get_bool()·get_int()</a></li> | 40 | <li><a·class="reference·internal"·href="#get-str-get-bool-get-int"·id="toc-entry-6">get_str()·get_bool()·get_int()</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> |
Offset 46, 18 lines modified | Offset 46, 18 lines modified | ||
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="#min-memory-usage-high-performance-seed"·id="toc-entry-17">min_memory_usage()·high_performance_seed()</a></li> | ||
54 | <li><a·class="reference·internal"·href="#generate-fingerprint"·id="toc-entry-1 | 53 | <li><a·class="reference·internal"·href="#generate-fingerprint"·id="toc-entry-17">generate_fingerprint()</a></li> |
55 | <li><a·class="reference·internal"·href="#setting-by-name-name-for-setting"·id="toc-entry-1 | 54 | <li><a·class="reference·internal"·href="#setting-by-name-name-for-setting"·id="toc-entry-18">setting_by_name()·name_for_setting()</a></li> |
56 | <li><a·class="reference·internal"·href="#default-settings"·id="toc-entry- | 55 | <li><a·class="reference·internal"·href="#default-settings"·id="toc-entry-19">default_settings()</a></li> |
56 | <li><a·class="reference·internal"·href="#high-performance-seed-min-memory-usage"·id="toc-entry-20">high_performance_seed()·min_memory_usage()</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·applied | 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·applied |
63 | to·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·when·passed·to·session::apply_settings().·It's·empty·when | 63 | 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, 23 lines modified | Offset 4598, 23 lines modified | ||
4598 | </div> | 4598 | </div> |
4599 | <pre·class="literal-block"> | 4599 | <pre·class="literal-block"> |
4600 | struct·settings_pack·final·:·settings_interface | 4600 | 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& | 4603 | ······,·aux::session_settings_single_thread& |
4604 | ······,·std::vector<void(aux::session_impl::*)()>*); | 4604 | ······,·std::vector<void(aux::session_impl::*)()>*); |
4605 | ···void·<strong>set_bool</strong>·(int·name,·bool·val)·override; | ||
4606 | ···void·<strong>set_int</strong>·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val); | ||
4607 | ···void·<strong>set_int</strong>·(int·name,·int·val)·override; | 4605 | ···void·<strong>set_int</strong>·(int·name,·int·val)·override; |
4608 | ···void·<strong>set_str</strong>·(int·name,·std::string·val)·override; | 4606 | ···void·<strong>set_str</strong>·(int·name,·std::string·val)·override; |
4607 | ···void·<strong>set_bool</strong>·(int·name,·bool·val)·override; | ||
4608 | ···void·<strong>set_int</strong>·(int·name,·flags::bitfield_flag<Type,·Tag>·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 | ···bool·<strong>get_bool</strong>·(int·name)·const·override; | ||
4613 | ···std::string·const&·<strong>get_str</strong>·(int·name)·const·override; | 4612 | ···std::string·const&·<strong>get_str</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; | 4614 | ···int·<strong>get_int</strong>·(int·name)·const·override; |
4615 | ···void·<strong>for_each</strong>·(Fun&&·f)·const; | 4615 | ···void·<strong>for_each</strong>·(Fun&&·f)·const; |
4616 | ···enum·type_bases | 4616 | ···enum·type_bases |
4617 | ···{ | 4617 | ···{ |
4618 | ······string_type_base, | 4618 | ······string_type_base, |
4619 | ······int_type_base, | 4619 | ······int_type_base, |
Offset 4685, 23 lines modified | Offset 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> | ||
4693 | <a·name="set_str()"></a> | 4692 | <a·name="set_str()"></a> |
4693 | <a·name="set_int()"></a> | ||
4694 | <a·name="set_ | 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_ | 4695 | <h2>set_str()·set_int()·set_bool()</h2> |
4696 | <pre·class="literal-block"> | 4696 | <pre·class="literal-block"> |
4697 | void·<strong>set_bool</strong>·(int·name,·bool·val)·override; | ||
4698 | void·<strong>set_int</strong>·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val); | ||
4699 | void·<strong>set_int</strong>·(int·name,·int·val)·override; | 4697 | void·<strong>set_int</strong>·(int·name,·int·val)·override; |
4700 | void·<strong>set_str</strong>·(int·name,·std::string·val)·override; | 4698 | void·<strong>set_str</strong>·(int·name,·std::string·val)·override; |
4699 | void·<strong>set_bool</strong>·(int·name,·bool·val)·override; | ||
4700 | void·<strong>set_int</strong>·(int·name,·flags::bitfield_flag<Type,·Tag>·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·of | 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·of |
4703 | the·enum·values·from·string_types,·int_types·or·bool_types.·They·must | 4703 | 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 4727, 16 lines modified | Offset 4727, 16 lines modified | ||
4727 | <p>clear·a·specific·setting·from·the·pack</p> | 4727 | <p>clear·a·specific·setting·from·the·pack</p> |
4728 | <a·name="get_str()"></a> | 4728 | <a·name="get_str()"></a> |
4729 | <a·name="get_bool()"></a> | 4729 | <a·name="get_bool()"></a> |
4730 | <a·name="get_int()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bget_str%28%29+get_bool%28%29+get_int%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bget_str%28%29+get_bool%28%29+get_int%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 4730 | <a·name="get_int()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:settings_pack%3A%3A%5Bget_str%28%29+get_bool%28%29+get_int%28%29%5D&labels=documentation&body=Documentation+under+heading+%22settings_pack%3A%3A%5Bget_str%28%29+get_bool%28%29+get_int%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
4731 | <div·class="section"·id="get-str-get-bool-get-int"> | 4731 | <div·class="section"·id="get-str-get-bool-get-int"> |
4732 | <h2>get_str()·get_bool()·get_int()</h2> | 4732 | <h2>get_str()·get_bool()·get_int()</h2> |
4733 | <pre·class="literal-block"> | 4733 | <pre·class="literal-block"> |
4734 | bool·<strong>get_bool</strong>·(int·name)·const·override; | ||
4735 | std::string·const&·<strong>get_str</strong>·(int·name)·const·override; | 4734 | std::string·const&·<strong>get_str</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; | 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_types | 4739 | <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·default | 4741 | function.·If·the·specified·setting·field·has·not·been·set,·the·default |
4742 | value·is·returned.</p> | 4742 | value·is·returned.</p> |
Offset 5096, 45 lines modified | Offset 5096, 16 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·user | 5098 | <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="min_memory_usage()"></a> | ||
5104 | <a·name="high_performance_seed()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:min_memory_usage%28%29+high_performance_seed%28%29&labels=documentation&body=Documentation+under+heading+%22min_memory_usage%28%29+high_performance_seed%28%29%22+could+be+improved">report·issue</a>]</span></div> | ||
5105 | </div> | ||
5106 | <div·class="section"·id="min-memory-usage-high-performance-seed"> | ||
5107 | <h1>min_memory_usage()·high_performance_seed()</h1> | ||
5108 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/session.hpp">libtorrent/session.hpp</a>"</p> | ||
5109 | <pre·class="literal-block"> | ||
5110 | settings_pack·<strong>high_performance_seed</strong>·(); | ||
5111 | settings_pack·<strong>min_memory_usage</strong>·(); | ||
5112 | </pre> | ||
5113 | <p>The·default·values·of·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·settings·are·set·for·a·regular | ||
5114 | bittorrent·client·running·on·a·desktop·system.·There·are·functions·that | ||
Max diff block lines reached; 3325/14635 bytes (22.72%) of diff not shown. |
Offset 1, 32 lines modified | Offset 1, 32 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k | 6 | ····*·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k |
7 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8 | 7 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8s_.t_.r_.(_.)_.·_.s_.e_.t_.__.i_.n_.t_.(_.)_.·_.s_.e_.t_.__.b_.o_.o_.l_\x8(_\x8) |
8 | ··········o·_\x8h_\x8a_\x8s_\x8__\x8v_\x8a_\x8l_\x8(_\x8) | 8 | ··········o·_\x8h_\x8a_\x8s_\x8__\x8v_\x8a_\x8l_\x8(_\x8) |
9 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) | 9 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) |
10 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) | 10 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) |
11 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8r_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8b_\x8o_\x8o_\x8l_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8i_\x8n_\x8t_\x8(_\x8) | 11 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8s_\x8t_\x8r_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8b_\x8o_\x8o_\x8l_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8i_\x8n_\x8t_\x8(_\x8) |
12 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8t_\x8y_\x8p_\x8e_\x8__\x8b_\x8a_\x8s_\x8e_\x8s | 12 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8t_\x8y_\x8p_\x8e_\x8__\x8b_\x8a_\x8s_\x8e_\x8s |
13 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8m_\x8m_\x8a_\x8p_\x8__\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t | 13 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8m_\x8m_\x8a_\x8p_\x8__\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t |
14 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8u_\x8g_\x8g_\x8e_\x8s_\x8t_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t | 14 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8u_\x8g_\x8g_\x8e_\x8s_\x8t_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t |
15 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8c_\x8h_\x8o_\x8k_\x8i_\x8n_\x8g_\x8__\x8a_\x8l_\x8g_\x8o_\x8r_\x8i_\x8t_\x8h_\x8m_\x8__\x8t | 15 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8c_\x8h_\x8o_\x8k_\x8i_\x8n_\x8g_\x8__\x8a_\x8l_\x8g_\x8o_\x8r_\x8i_\x8t_\x8h_\x8m_\x8__\x8t |
16 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8e_\x8e_\x8d_\x8__\x8c_\x8h_\x8o_\x8k_\x8i_\x8n_\x8g_\x8__\x8a_\x8l_\x8g_\x8o_\x8r_\x8i_\x8t_\x8h_\x8m_\x8__\x8t | 16 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8e_\x8e_\x8d_\x8__\x8c_\x8h_\x8o_\x8k_\x8i_\x8n_\x8g_\x8__\x8a_\x8l_\x8g_\x8o_\x8r_\x8i_\x8t_\x8h_\x8m_\x8__\x8t |
17 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8i_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t | 17 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8i_\x8o_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t |
18 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8b_\x8a_\x8n_\x8d_\x8w_\x8i_\x8d_\x8t_\x8h_\x8__\x8m_\x8i_\x8x_\x8e_\x8d_\x8__\x8a_\x8l_\x8g_\x8o_\x8__\x8t | 18 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8b_\x8a_\x8n_\x8d_\x8w_\x8i_\x8d_\x8t_\x8h_\x8__\x8m_\x8i_\x8x_\x8e_\x8d_\x8__\x8a_\x8l_\x8g_\x8o_\x8__\x8t |
19 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8n_\x8c_\x8__\x8p_\x8o_\x8l_\x8i_\x8c_\x8y | 19 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8n_\x8c_\x8__\x8p_\x8o_\x8l_\x8i_\x8c_\x8y |
20 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8n_\x8c_\x8__\x8l_\x8e_\x8v_\x8e_\x8l | 20 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8n_\x8c_\x8__\x8l_\x8e_\x8v_\x8e_\x8l |
21 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8r_\x8o_\x8x_\x8y_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | 21 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8r_\x8o_\x8x_\x8y_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t |
22 | ····*·_\x8m_\x8i_\x8n_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8u_\x8s_\x8a_\x8g_\x8e_\x8(_\x8)_\x8·_\x8h_\x8i_\x8g_\x8h_\x8__\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8) | ||
23 | ····*·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8n_\x8g_\x8e_\x8r_\x8p_\x8r_\x8i_\x8n_\x8t_\x8(_\x8) | 22 | ····*·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8n_\x8g_\x8e_\x8r_\x8p_\x8r_\x8i_\x8n_\x8t_\x8(_\x8) |
24 | ····*·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8y_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8)_\x8·_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8o_\x8r_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8(_\x8) | 23 | ····*·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8y_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8)_\x8·_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8o_\x8r_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8(_\x8) |
25 | ····*·_\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8) | 24 | ····*·_\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8) |
25 | ····*·_\x8h_\x8i_\x8g_\x8h_\x8__\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8)_\x8·_\x8m_\x8i_\x8n_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8u_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | ||
26 | You·have·some·control·over·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·configuration·through·the·session:: | 26 | You·have·some·control·over·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·configuration·through·the·session:: |
27 | apply_settings()·member·function.·To·change·one·or·more·configuration·options, | 27 | apply_settings()·member·function.·To·change·one·or·more·configuration·options, |
28 | create·a·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k·object·and·fill·it·with·the·settings·to·be·set·and·pass | 28 | create·a·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k·object·and·fill·it·with·the·settings·to·be·set·and·pass |
29 | it·in·to·session::apply_settings(). | 29 | it·in·to·session::apply_settings(). |
30 | The·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k·object·is·a·collection·of·settings·updates·that·are·applied | 30 | The·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k·object·is·a·collection·of·settings·updates·that·are·applied |
31 | to·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·when·passed·to·session::apply_settings().·It's·empty·when | 31 | to·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·when·passed·to·session::apply_settings().·It's·empty·when |
32 | constructed. | 32 | constructed. |
Offset 1435, 23 lines modified | Offset 1435, 23 lines modified | ||
1435 | connect·to·the·external·NAT-PMP·port·(configured·using·announce_port)·instead | 1435 | connect·to·the·external·NAT-PMP·port·(configured·using·announce_port)·instead |
1436 | of·the·actual·local·listening·port. | 1436 | of·the·actual·local·listening·port. |
1437 | struct·settings_pack·final·:·settings_interface | 1437 | struct·settings_pack·final·:·settings_interface |
1438 | { | 1438 | { |
1439 | ···friend··void·a\x8ap\x8pp\x8pl\x8ly\x8y_\x8_p\x8pa\x8ac\x8ck\x8k_\x8_i\x8im\x8mp\x8pl\x8l·(settings_pack·const* | 1439 | ···friend··void·a\x8ap\x8pp\x8pl\x8ly\x8y_\x8_p\x8pa\x8ac\x8ck\x8k_\x8_i\x8im\x8mp\x8pl\x8l·(settings_pack·const* |
1440 | ······,·aux::session_settings_single_thread& | 1440 | ······,·aux::session_settings_single_thread& |
1441 | ······,·std::vector<void(aux::session_impl::*)()>*); | 1441 | ······,·std::vector<void(aux::session_impl::*)()>*); |
1442 | ···void·s\x8se\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l·(int·name,·bool·val)·override; | ||
1443 | ···void·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val); | ||
1444 | ···void·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name,·int·val)·override; | 1442 | ···void·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name,·int·val)·override; |
1445 | ···void·s\x8se\x8et\x8t_\x8_s\x8st\x8tr\x8r·(int·name,·std::string·val)·override; | 1443 | ···void·s\x8se\x8et\x8t_\x8_s\x8st\x8tr\x8r·(int·name,·std::string·val)·override; |
1444 | ···void·s\x8se\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l·(int·name,·bool·val)·override; | ||
1445 | ···void·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val); | ||
1446 | ···bool·h\x8ha\x8as\x8s_\x8_v\x8va\x8al\x8l·(int·name)·const·override; | 1446 | ···bool·h\x8ha\x8as\x8s_\x8_v\x8va\x8al\x8l·(int·name)·const·override; |
1447 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r·(); | 1447 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r·(); |
1448 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r·(int·name); | 1448 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r·(int·name); |
1449 | ···bool·g\x8ge\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l·(int·name)·const·override; | ||
1450 | ···std::string·const&·g\x8ge\x8et\x8t_\x8_s\x8st\x8tr\x8r·(int·name)·const·override; | 1449 | ···std::string·const&·g\x8ge\x8et\x8t_\x8_s\x8st\x8tr\x8r·(int·name)·const·override; |
1450 | ···bool·g\x8ge\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l·(int·name)·const·override; | ||
1451 | ···int·g\x8ge\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name)·const·override; | 1451 | ···int·g\x8ge\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name)·const·override; |
1452 | ···void·f\x8fo\x8or\x8r_\x8_e\x8ea\x8ac\x8ch\x8h·(Fun&&·f)·const; | 1452 | ···void·f\x8fo\x8or\x8r_\x8_e\x8ea\x8ac\x8ch\x8h·(Fun&&·f)·const; |
1453 | ···enum·type_bases | 1453 | ···enum·type_bases |
1454 | ···{ | 1454 | ···{ |
1455 | ······string_type_base, | 1455 | ······string_type_base, |
1456 | ······int_type_base, | 1456 | ······int_type_base, |
Offset 1522, 19 lines modified | Offset 1522, 19 lines modified | ||
1522 | ······socks5, | 1522 | ······socks5, |
1523 | ······socks5_pw, | 1523 | ······socks5_pw, |
1524 | ······http, | 1524 | ······http, |
1525 | ······http_pw, | 1525 | ······http_pw, |
1526 | ···}; | 1526 | ···}; |
1527 | }; | 1527 | }; |
1528 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 1528 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
1529 | *\x8**\x8**\x8**\x8**\x8*·s\x8se\x8et\x8t_\x8_s\x8st\x8tr\x8r(\x8()\x8)·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t(\x8()\x8)·s\x8se\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
1529 | *\x8**\x8**\x8**\x8**\x8*·s\x8se\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l(\x8()\x8)·s\x8se\x8et\x8t_\x8_s\x8st\x8tr\x8r(\x8()\x8)·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
1530 | void·s\x8se\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l·(int·name,·bool·val)·override; | ||
1531 | void·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val); | ||
1532 | void·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name,·int·val)·override; | 1530 | void·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name,·int·val)·override; |
1533 | void·s\x8se\x8et\x8t_\x8_s\x8st\x8tr\x8r·(int·name,·std::string·val)·override; | 1531 | void·s\x8se\x8et\x8t_\x8_s\x8st\x8tr\x8r·(int·name,·std::string·val)·override; |
1532 | void·s\x8se\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l·(int·name,·bool·val)·override; | ||
1533 | void·s\x8se\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name,·flags::bitfield_flag<Type,·Tag>·const·val); | ||
1534 | set·a·configuration·option·in·the·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k.·name·is·one·of·the·enum·values | 1534 | set·a·configuration·option·in·the·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k.·name·is·one·of·the·enum·values |
1535 | from·string_types,·int_types·or·bool_types.·They·must·match·the·respective·type | 1535 | from·string_types,·int_types·or·bool_types.·They·must·match·the·respective·type |
1536 | of·the·set_*·function. | 1536 | of·the·set_*·function. |
1537 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 1537 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
1538 | *\x8**\x8**\x8**\x8**\x8*·h\x8ha\x8as\x8s_\x8_v\x8va\x8al\x8l(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 1538 | *\x8**\x8**\x8**\x8**\x8*·h\x8ha\x8as\x8s_\x8_v\x8va\x8al\x8l(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
1539 | bool·h\x8ha\x8as\x8s_\x8_v\x8va\x8al\x8l·(int·name)·const·override; | 1539 | bool·h\x8ha\x8as\x8s_\x8_v\x8va\x8al\x8l·(int·name)·const·override; |
1540 | queries·whether·the·specified·configuration·option·has·a·value·set·in·this | 1540 | queries·whether·the·specified·configuration·option·has·a·value·set·in·this |
Offset 1546, 16 lines modified | Offset 1546, 16 lines modified | ||
1546 | clear·the·settings·pack·from·all·settings | 1546 | clear·the·settings·pack·from·all·settings |
1547 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 1547 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
1548 | *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8le\x8ea\x8ar\x8r(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 1548 | *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8le\x8ea\x8ar\x8r(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
1549 | void·c\x8cl\x8le\x8ea\x8ar\x8r·(int·name); | 1549 | void·c\x8cl\x8le\x8ea\x8ar\x8r·(int·name); |
1550 | clear·a·specific·setting·from·the·pack | 1550 | clear·a·specific·setting·from·the·pack |
1551 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 1551 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
1552 | *\x8**\x8**\x8**\x8**\x8*·g\x8ge\x8et\x8t_\x8_s\x8st\x8tr\x8r(\x8()\x8)·g\x8ge\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l(\x8()\x8)·g\x8ge\x8et\x8t_\x8_i\x8in\x8nt\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 1552 | *\x8**\x8**\x8**\x8**\x8*·g\x8ge\x8et\x8t_\x8_s\x8st\x8tr\x8r(\x8()\x8)·g\x8ge\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l(\x8()\x8)·g\x8ge\x8et\x8t_\x8_i\x8in\x8nt\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
1553 | bool·g\x8ge\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l·(int·name)·const·override; | ||
1554 | std::string·const&·g\x8ge\x8et\x8t_\x8_s\x8st\x8tr\x8r·(int·name)·const·override; | 1553 | std::string·const&·g\x8ge\x8et\x8t_\x8_s\x8st\x8tr\x8r·(int·name)·const·override; |
1554 | bool·g\x8ge\x8et\x8t_\x8_b\x8bo\x8oo\x8ol\x8l·(int·name)·const·override; | ||
1555 | int·g\x8ge\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name)·const·override; | 1555 | int·g\x8ge\x8et\x8t_\x8_i\x8in\x8nt\x8t·(int·name)·const·override; |
1556 | queries·the·current·configuration·option·from·the·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k.·name·is·one·of | 1556 | queries·the·current·configuration·option·from·the·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k.·name·is·one·of |
1557 | the·enumeration·values·from·string_types,·int_types·or·bool_types.·The·enum | 1557 | the·enumeration·values·from·string_types,·int_types·or·bool_types.·The·enum |
1558 | value·must·match·the·type·of·the·get_*·function.·If·the·specified·setting·field | 1558 | value·must·match·the·type·of·the·get_*·function.·If·the·specified·setting·field |
1559 | has·not·been·set,·the·default·value·is·returned. | 1559 | has·not·been·set,·the·default·value·is·returned. |
1560 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 1560 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
1561 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nu\x8um\x8m·t\x8ty\x8yp\x8pe\x8e_\x8_b\x8ba\x8as\x8se\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* | 1561 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nu\x8um\x8m·t\x8ty\x8yp\x8pe\x8e_\x8_b\x8ba\x8as\x8se\x8es\x8s·*\x8**\x8**\x8**\x8**\x8* |
Offset 1683, 38 lines modified | Offset 1683, 14 lines modified | ||
1683 | |·········|·····|trackers,·a·plain·proxy·will·suffice.·The·proxy·is·assumed·to| | 1683 | |·········|·····|trackers,·a·plain·proxy·will·suffice.·The·proxy·is·assumed·to| |
1684 | |·········|·····|not·require·authorization.·The·username·and·password·will·not| | 1684 | |·········|·····|not·require·authorization.·The·username·and·password·will·not| |
1685 | |_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8b_\x8e_\x8·_\x8u_\x8s_\x8e_\x8d_\x8._\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 1685 | |_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8b_\x8e_\x8·_\x8u_\x8s_\x8e_\x8d_\x8._\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
1686 | |·········|·····|The·server·is·assumed·to·be·an·HTTP·proxy·that·requires·user·| | 1686 | |·········|·····|The·server·is·assumed·to·be·an·HTTP·proxy·that·requires·user·| |
1687 | |http_pw··|5····|authorization.·The·username·and·password·will·be·sent·to·the·| | 1687 | |http_pw··|5····|authorization.·The·username·and·password·will·be·sent·to·the·| |
1688 | |_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8p_\x8r_\x8o_\x8x_\x8y_\x8._\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 1688 | |_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8p_\x8r_\x8o_\x8x_\x8y_\x8._\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
1689 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 1689 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
1690 | *\x8**\x8**\x8**\x8**\x8**\x8*·m\x8mi\x8in\x8n_\x8_m\x8me\x8em\x8mo\x8or\x8ry\x8y_\x8_u\x8us\x8sa\x8ag\x8ge\x8e(\x8()\x8)·h\x8hi\x8ig\x8gh\x8h_\x8_p\x8pe\x8er\x8rf\x8fo\x8or\x8rm\x8ma\x8an\x8nc\x8ce\x8e_\x8_s\x8se\x8ee\x8ed\x8d(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
1691 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8._\x8h_\x8p_\x8p" | ||
1692 | settings_pack·h\x8hi\x8ig\x8gh\x8h_\x8_p\x8pe\x8er\x8rf\x8fo\x8or\x8rm\x8ma\x8an\x8nc\x8ce\x8e_\x8_s\x8se\x8ee\x8ed\x8d·(); | ||
1693 | settings_pack·m\x8mi\x8in\x8n_\x8_m\x8me\x8em\x8mo\x8or\x8ry\x8y_\x8_u\x8us\x8sa\x8ag\x8ge\x8e·(); | ||
1694 | The·default·values·of·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·settings·are·set·for·a·regular·bittorrent | ||
1695 | client·running·on·a·desktop·system.·There·are·functions·that·can·set·the | ||
1696 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·settings·to·pre·set·settings·for·other·environments.·These·can·be·used | ||
1697 | for·the·basis,·and·should·be·tweaked·to·fit·your·needs·better. | ||
1698 | min_memory_usage·returns·settings·that·will·use·the·minimal·amount·of·RAM,·at | ||
1699 | the·potential·expense·of·upload·and·download·performance.·It·adjusts·the·socket | ||
1700 | buffer·sizes,·disables·the·disk·cache,·lowers·the·send·buffer·watermarks·so | ||
1701 | that·each·connection·only·has·at·most·one·block·in·use·at·any·one·time.·It | ||
1702 | lowers·the·outstanding·blocks·send·to·the·disk·I/O·thread·so·that·connections | ||
1703 | only·have·one·block·waiting·to·be·flushed·to·disk·at·any·given·time.·It·lowers | ||
1704 | the·max·number·of·peers·in·the·peer·list·for·torrents.·It·performs·multiple | ||
1705 | smaller·reads·when·it·hashes·pieces,·instead·of·reading·it·all·into·memory | ||
1706 | before·hashing. | ||
1707 | This·configuration·is·intended·to·be·the·starting·point·for·embedded·devices. | ||
Max diff block lines reached; 2986/11742 bytes (25.43%) of diff not shown. |
Offset 28, 25 lines modified | Offset 28, 50 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> | ||
36 | <li><a·class="reference·internal"·href="#counters"·id="toc-entry- | 35 | <li><a·class="reference·internal"·href="#counters"·id="toc-entry-1">counters</a><ul> |
37 | <li><a·class="reference·internal"·href="#inc-stats-counter-operator"·id="toc-entry- | 36 | <li><a·class="reference·internal"·href="#inc-stats-counter-operator"·id="toc-entry-2">inc_stats_counter()·operator[]()</a></li> |
38 | </ul> | 37 | </ul> |
39 | </li> | 38 | </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·"<a·class="reference·external"·href="include/libtorrent/performance_counters.hpp">libtorrent/performance_counters.hpp</a>"</p> | ||
48 | <pre·class="literal-block"> | ||
49 | struct·counters | ||
50 | { | ||
51 | ···<strong>counters</strong>·()·; | ||
52 | ···counters&·<strong>operator=</strong>·(counters·const&)·&·; | ||
53 | ···<strong>counters</strong>·(counters·const&)·; | ||
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>blend_stats_counter</strong>·(int·c,·std::int64_t·value,·int·ratio)·; | ||
57 | ···void·<strong>set_value</strong>·(int·c,·std::int64_t·value)·; | ||
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> | ||
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>< | 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> |
69 | </div> | ||
70 | <div·class="section"·id="stats-metric"> | ||
46 | <h1>stats_metric</h1> | 71 | <h1>stats_metric</h1> |
47 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/session_stats.hpp">libtorrent/session_stats.hpp</a>"</p> | 72 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/session_stats.hpp">libtorrent/session_stats.hpp</a>"</p> |
48 | <p>describes·one·statistics·metric·from·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>.·For·more·information, | 73 | <p>describes·one·statistics·metric·from·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>.·For·more·information, |
49 | see·the·<a·class="reference·external"·href="manual-ref.html#session-statistics">session·statistics</a>·section.</p> | 74 | see·the·<a·class="reference·external"·href="manual-ref.html#session-statistics">session·statistics</a>·section.</p> |
50 | <pre·class="literal-block"> | 75 | <pre·class="literal-block"> |
51 | struct·stats_metric | 76 | struct·stats_metric |
52 | { | 77 | { |
Offset 62, 40 lines modified | Offset 87, 15 lines modified | ||
62 | <a·name="value_index"></a> | 87 | <a·name="value_index"></a> |
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"> | 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"> |
64 | <dt>value_index·type</dt> | 89 | <dt>value_index·type</dt> |
65 | <dd>the·index·into·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·stats·array,·where·the·underlying·value·of | 90 | <dd>the·index·into·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·stats·array,·where·the·underlying·value·of |
66 | this·counter·or·gauge·is·found.·The·<a·class="reference·external"·href="reference-Session.html#session">session</a>·stats·array·is·part·of·the | 91 | this·counter·or·gauge·is·found.·The·<a·class="reference·external"·href="reference-Session.html#session">session</a>·stats·array·is·part·of·the |
67 | <a·class="reference·external"·href="reference-Alerts.html#session_stats_alert">session_stats_alert</a>·object.</dd> | 92 | <a·class="reference·external"·href="reference-Alerts.html#session_stats_alert">session_stats_alert</a>·object.</dd> |
68 | </dl> | 93 | </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·"<a·class="reference·external"·href="include/libtorrent/performance_counters.hpp">libtorrent/performance_counters.hpp</a>"</p> | ||
73 | <pre·class="literal-block"> | ||
74 | struct·counters | ||
75 | { | ||
76 | ···<strong>counters</strong>·()·; | ||
77 | ···<strong>counters</strong>·(counters·const&)·; | ||
78 | ···counters&·<strong>operator=</strong>·(counters·const&)·&·; | ||
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>set_value</strong>·(int·c,·std::int64_t·value)·; | ||
82 | ···void·<strong>blend_stats_counter</strong>·(int·c,·std::int64_t·value,·int·ratio)·; | ||
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> | ||
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 | <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·"<a·class="reference·external"·href="include/libtorrent/session_stats.hpp">libtorrent/session_stats.hpp</a>"</p> | 97 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/session_stats.hpp">libtorrent/session_stats.hpp</a>"</p> |
98 | <pre·class="literal-block"> | 98 | <pre·class="literal-block"> |
99 | std::vector<stats_metric>·<strong>session_stats_metrics</strong>·(); | 99 | std::vector<stats_metric>·<strong>session_stats_metrics</strong>·(); |
100 | </pre> | 100 | </pre> |
101 | <p>This·free·function·returns·the·list·of·available·metrics·exposed·by | 101 | <p>This·free·function·returns·the·list·of·available·metrics·exposed·by |
Offset 1, 19 lines modified | Offset 1, 37 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c | ||
7 | ····*·_\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s | 6 | ····*·_\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s |
8 | ··········o·_\x8i_\x8n_\x8c_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8[_\x8]_\x8(_\x8) | 7 | ··········o·_\x8i_\x8n_\x8c_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8[_\x8]_\x8(_\x8) |
8 | ····*·_\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c | ||
9 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8s_\x8(_\x8) | 9 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8s_\x8(_\x8) |
10 | ····*·_\x8f_\x8i_\x8n_\x8d_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8i_\x8d_\x8x_\x8(_\x8) | 10 | ····*·_\x8f_\x8i_\x8n_\x8d_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8i_\x8d_\x8x_\x8(_\x8) |
11 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | 11 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t |
12 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 12 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
13 | *\x8**\x8**\x8**\x8**\x8**\x8*·c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
14 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s_\x8._\x8h_\x8p_\x8p" | ||
15 | struct·counters | ||
16 | { | ||
17 | ···c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8rs\x8s·()·; | ||
18 | ···counters&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(counters·const&)·&·; | ||
19 | ···c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8rs\x8s·(counters·const&)·; | ||
20 | ···std::int64_t·i\x8in\x8nc\x8c_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8r·(int·c,·std::int64_t·value·=·1)·; | ||
21 | ···std::int64_t·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(int·i)·const·; | ||
22 | ···void·b\x8bl\x8le\x8en\x8nd\x8d_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8r·(int·c,·std::int64_t·value,·int·ratio)·; | ||
23 | ···void·s\x8se\x8et\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e·(int·c,·std::int64_t·value)·; | ||
24 | }; | ||
25 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
26 | *\x8**\x8**\x8**\x8**\x8*·i\x8in\x8nc\x8c_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8r(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8](\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
27 | std::int64_t·i\x8in\x8nc\x8c_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8r·(int·c,·std::int64_t·value·=·1)·; | ||
28 | std::int64_t·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(int·i)·const·; | ||
29 | returns·the·new·value | ||
30 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
13 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8st\x8ta\x8at\x8ts\x8s_\x8_m\x8me\x8et\x8tr\x8ri\x8ic\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* | 31 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8st\x8ta\x8at\x8ts\x8s_\x8_m\x8me\x8et\x8tr\x8ri\x8ic\x8c·*\x8**\x8**\x8**\x8**\x8**\x8* |
14 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8._\x8h_\x8p_\x8p" | 32 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8._\x8h_\x8p_\x8p" |
15 | describes·one·statistics·metric·from·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n.·For·more·information,·see·the | 33 | describes·one·statistics·metric·from·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n.·For·more·information,·see·the |
16 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8·_\x8s_\x8t_\x8a_\x8t_\x8i_\x8s_\x8t_\x8i_\x8c_\x8s·section. | 34 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8·_\x8s_\x8t_\x8a_\x8t_\x8i_\x8s_\x8t_\x8i_\x8c_\x8s·section. |
17 | struct·stats_metric | 35 | struct·stats_metric |
18 | { | 36 | { |
19 | ···char·const*·name; | 37 | ···char·const*·name; |
Offset 25, 32 lines modified | Offset 43, 14 lines modified | ||
25 | ······the·name·of·the·counter·or·gauge | 43 | ······the·name·of·the·counter·or·gauge |
26 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 44 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
27 | ··value_index·type | 45 | ··value_index·type |
28 | ······the·index·into·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·stats·array,·where·the·underlying·value·of | 46 | ······the·index·into·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·stats·array,·where·the·underlying·value·of |
29 | ······this·counter·or·gauge·is·found.·The·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·stats·array·is·part·of·the | 47 | ······this·counter·or·gauge·is·found.·The·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·stats·array·is·part·of·the |
30 | ······_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8a_\x8l_\x8e_\x8r_\x8t·object. | 48 | ······_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8a_\x8l_\x8e_\x8r_\x8t·object. |
31 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 49 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
32 | *\x8**\x8**\x8**\x8**\x8**\x8*·c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8rs\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
33 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s_\x8._\x8h_\x8p_\x8p" | ||
34 | struct·counters | ||
35 | { | ||
36 | ···c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8rs\x8s·()·; | ||
37 | ···c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8rs\x8s·(counters·const&)·; | ||
38 | ···counters&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(counters·const&)·&·; | ||
39 | ···std::int64_t·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(int·i)·const·; | ||
40 | ···std::int64_t·i\x8in\x8nc\x8c_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8r·(int·c,·std::int64_t·value·=·1)·; | ||
41 | ···void·s\x8se\x8et\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e·(int·c,·std::int64_t·value)·; | ||
42 | ···void·b\x8bl\x8le\x8en\x8nd\x8d_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8r·(int·c,·std::int64_t·value,·int·ratio)·; | ||
43 | }; | ||
44 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
45 | *\x8**\x8**\x8**\x8**\x8*·i\x8in\x8nc\x8c_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8r(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8](\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
46 | std::int64_t·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(int·i)·const·; | ||
47 | std::int64_t·i\x8in\x8nc\x8c_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8r·(int·c,·std::int64_t·value·=·1)·; | ||
48 | returns·the·new·value | ||
49 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
50 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_m\x8me\x8et\x8tr\x8ri\x8ic\x8cs\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | 50 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_m\x8me\x8et\x8tr\x8ri\x8ic\x8cs\x8s(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
51 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8._\x8h_\x8p_\x8p" | 51 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8._\x8h_\x8p_\x8p" |
52 | std::vector<stats_metric>·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_m\x8me\x8et\x8tr\x8ri\x8ic\x8cs\x8s·(); | 52 | std::vector<stats_metric>·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_s\x8st\x8ta\x8at\x8ts\x8s_\x8_m\x8me\x8et\x8tr\x8ri\x8ic\x8cs\x8s·(); |
53 | This·free·function·returns·the·list·of·available·metrics·exposed·by | 53 | This·free·function·returns·the·list·of·available·metrics·exposed·by |
54 | libtorrent's·statistics·API.·Each·metric·has·a·name·and·a·v\x8va\x8al\x8lu\x8ue\x8e·i\x8in\x8nd\x8de\x8ex\x8x.·The | 54 | libtorrent's·statistics·API.·Each·metric·has·a·name·and·a·v\x8va\x8al\x8lu\x8ue\x8e·i\x8in\x8nd\x8de\x8ex\x8x.·The |
55 | value·index·is·the·index·into·the·array·in·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8a_\x8l_\x8e_\x8r_\x8t·where·this | 55 | value·index·is·the·index·into·the·array·in·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8a_\x8l_\x8e_\x8r_\x8t·where·this |
56 | metric's·value·can·be·found·when·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·stats·is·sampled·(by·calling | 56 | metric's·value·can·be·found·when·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·stats·is·sampled·(by·calling |
Offset 33, 52 lines modified | Offset 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-add-file | 40 | <li><a·class="reference·internal"·href="#add-file-borrow-add-file"·id="toc-entry-6">add_file_borrow()·add_file()</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="# | 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="#set-piece-length-piece-length"·id="toc-entry-18">set_piece_length()·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="#set-name-name"·id="toc-entry-23">set_name()·name()</a></li> | 57 | <li><a·class="reference·internal"·href="#set-name-name"·id="toc-entry-23">set_name()·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="#mtime- | 60 | <li><a·class="reference·internal"·href="#mtime-root-ptr-file-name-file-path-symlink-root-pad-file-at-file-size-file-offset-hash"·id="toc-entry-26">mtime()·root_ptr()·file_name()·file_path()·symlink()·root()·pad_file_at()·file_size()·file_offset()·hash()</a></li> |
61 | <li><a·class="reference·internal"·href="#file- | 61 | <li><a·class="reference·internal"·href="#file-num-blocks-file-num-pieces-file-piece-range"·id="toc-entry-27">file_num_blocks()·file_num_pieces()·file_piece_range()</a></li> |
62 | <li><a·class="reference·internal"·href="#file-first-block-node-file-first-piece-node"·id="toc-entry-28">file_first_block_node()·file_first_piece_node()</a></li> | 62 | <li><a·class="reference·internal"·href="#file-first-block-node-file-first-piece-node"·id="toc-entry-28">file_first_block_node()·file_first_piece_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-offset-file-index-at-piece"·id="toc-entry-33">file_index_at_offset()·file_index_at_piece()</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="#posix-disk-io-constructor"·id="toc-entry-38">posix_disk_io_constructor()</a></li> | ||
74 | <li><a·class="reference·internal"·href="#disabled-disk-io-constructor"·id="toc-entry-3 | 75 | <li><a·class="reference·internal"·href="#disabled-disk-io-constructor"·id="toc-entry-39">disabled_disk_io_constructor()</a></li> |
75 | <li><a·class="reference·internal"·href="# | 76 | <li><a·class="reference·internal"·href="#mmap-disk-io-constructor"·id="toc-entry-40">mmap_disk_io_constructor()</a></li> |
76 | <li><a·class="reference·internal"·href="#default-disk-io-constructor"·id="toc-entry-4 | 77 | <li><a·class="reference·internal"·href="#default-disk-io-constructor"·id="toc-entry-41">default_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, 76 lines modified | Offset 139, 76 lines modified | ||
139 | size.·Everything·necessary·to·interpret·a·regular·bittorrent·storage | 139 | 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_storage | 142 | 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 | ||
146 | ··· | 147 | ······,·std::string·const&·path,·std::int64_t·file_size |
147 | ······,·file_flags_t·file_flags·=·{} | 148 | ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr |
148 | ······,·std:: | 149 | ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() |
149 | ······,·char·const*·root_hash·=·nullptr); | 150 | ······,·char·const*·root_hash·=·nullptr); |
150 | ···void·<strong>add_file_borrow</strong>·(error_code&·ec,·string_view·filename | 151 | ···void·<strong>add_file_borrow</strong>·(error_code&·ec,·string_view·filename |
151 | ······,·std::string·const&·path,·std::int64_t·file_size | 152 | ······,·std::string·const&·path,·std::int64_t·file_size |
152 | ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr | 153 | ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr |
153 | ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() | 154 | ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() |
154 | ······,·char·const*·root_hash·=·nullptr); | 155 | ······,·char·const*·root_hash·=·nullptr); |
155 | ···void·<strong>add_file</strong>·( | 156 | ···void·<strong>add_file</strong>·(std::string·const&·path,·std::int64_t·file_size |
156 | ······,·file_flags_t·file_flags·=·{} | 157 | ······,·file_flags_t·file_flags·=·{} |
157 | ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view() | 158 | ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view() |
158 | ······,·char·const*·root_hash·=·nullptr); | 159 | ······,·char·const*·root_hash·=·nullptr); |
160 | ···void·<strong>add_file</strong>·(error_code&·ec,·std::string·const&·path,·std::int64_t·file_size | ||
161 | ······,·file_flags_t·file_flags·=·{} | ||
159 | ···void·<strong>add_file_borrow</strong>·(string_view·filename | ||
160 | ······,·std::string·const&·path,·std::int64_t·file_size | ||
161 | ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr | ||
162 | ······,·std:: | 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&·new_filename); | 164 | ···void·<strong>rename_file</strong>·(file_index_t·index,·std::string·const&·new_filename); |
165 | ···std::vector<file_slice>·<strong>map_block</strong>·(piece_index_t·piece,·std::int64_t·offset | 165 | ···std::vector<file_slice>·<strong>map_block</strong>·(piece_index_t·piece,·std::int64_t·offset |
166 | ······,·std::int64_t·size)·const; | 166 | ······,·std::int64_t·size)·const; |
167 | ···peer_request·<strong>map_file</strong>·(file_index_t·file,·std::int64_t·offset,·int·size)·const; | 167 | ···peer_request·<strong>map_file</strong>·(file_index_t·file,·std::int64_t·offset,·int·size)·const; |
168 | ···int·<strong>num_files</strong>·()·const·noexcept; | 168 | ···int·<strong>num_files</strong>·()·const·noexcept; |
169 | ···file_index_t·<strong>end_file</strong>·()·const·noexcept; | 169 | ···file_index_t·<strong>end_file</strong>·()·const·noexcept; |
170 | ···index_range<file_index_t>·<strong>file_range</strong>·()·const·noexcept; | 170 | ···index_range<file_index_t>·<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 | ···void·<strong>set_num_pieces</strong>·(int·n); | ||
173 | ···int·<strong>num_pieces</strong>·()·const; | 172 | ···int·<strong>num_pieces</strong>·()·const; |
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<piece_index_t>·<strong>piece_range</strong>·()·const·noexcept; | 176 | ···index_range<piece_index_t>·<strong>piece_range</strong>·()·const·noexcept; |
177 | ···void·<strong>set_piece_length</strong>·(int·l); | ||
178 | ···int·<strong>piece_length</strong>·()·const; | 177 | ···int·<strong>piece_length</strong>·()·const; |
178 | ···void·<strong>set_piece_length</strong>·(int·l); | ||
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 | ···std::string·const&·<strong>name</strong>·()·const; | ||
184 | ···void·<strong>set_name</strong>·(std::string·const&·n); | 183 | ···void·<strong>set_name</strong>·(std::string·const&·n); |
184 | ···std::string·const&·<strong>name</strong>·()·const; | ||
185 | ···void·<strong>swap</strong>·(file_storage&·ti)·noexcept; | 185 | ···void·<strong>swap</strong>·(file_storage&·ti)·noexcept; |
186 | ···void·<strong>canonicalize</strong>·(); | 186 | ···void·<strong>canonicalize</strong>·(); |
187 | ···std::string·<strong>file_path</strong>·(file_index_t·index,·std::string·const&·save_path·=·"")·const; | ||
188 | ···std::int64_t·<strong>file_offset</strong>·(file_index_t·index)·const; | ||
189 | ···sha256_hash·<strong>root</strong>·(file_index_t·index)·const; | ||
190 | ···std::string·<strong>symlink</strong>·(file_index_t·index)·const; | 187 | ···std::string·<strong>symlink</strong>·(file_index_t·index)·const; |
188 | ···string_view·<strong>file_name</strong>·(file_index_t·index)·const; | ||
191 | ···char·const*·<strong>root_ptr</strong>·(file_index_t·const·index)·const; | 189 | ···char·const*·<strong>root_ptr</strong>·(file_index_t·const·index)·const; |
192 | ···std::time_t·<strong>mtime</strong>·(file_index_t·index)·const; | ||
193 | ···bool·<strong>pad_file_at</strong>·(file_index_t·index)·const; | 190 | ···bool·<strong>pad_file_at</strong>·(file_index_t·index)·const; |
194 | ···sha1_hash·<strong>hash</strong>·(file_index_t·index)·const; | ||
195 | ···st | 191 | ···std::int64_t·<strong>file_offset</strong>·(file_index_t·index)·const; |
196 | ···std::int64_t·<strong>file_size</strong>·(file_index_t·index)·const; | 192 | ···std::int64_t·<strong>file_size</strong>·(file_index_t·index)·const; |
193 | ···sha1_hash·<strong>hash</strong>·(file_index_t·index)·const; | ||
194 | ···sha256_hash·<strong>root</strong>·(file_index_t·index)·const; | ||
197 | ···i | 195 | ···std::time_t·<strong>mtime</strong>·(file_index_t·index)·const; |
198 | ···in | 196 | ···std::string·<strong>file_path</strong>·(file_index_t·index,·std::string·const&·save_path·=·"")·const; |
199 | ···index_range<piece_index_t::diff_type>·<strong>file_piece_range</strong>·(file_index_t)·const; | 197 | ···index_range<piece_index_t::diff_type>·<strong>file_piece_range</strong>·(file_index_t)·const; |
200 | ···int·<strong>file_ | 198 | ···int·<strong>file_num_blocks</strong>·(file_index_t·index)·const; |
199 | ···int·<strong>file_num_pieces</strong>·(file_index_t·index)·const; | ||
201 | ···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; 28815/40842 bytes (70.55%) of diff not shown. |
Offset 4, 51 lines modified | Offset 4, 51 lines modified | ||
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | 6 | ····*·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s |
7 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e | 7 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e |
8 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e | 8 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e |
9 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) | 9 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) |
10 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8(_\x8) | 10 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8(_\x8) |
11 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8 | 11 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__.b_.o_.r_.r_.o_.w_.(_.)_.·_.a_.d_.d_.__.f_.i_.l_.e_\x8(_\x8) |
12 | ··········o·_\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 12 | ··········o·_\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
13 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8(_\x8) | 13 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8(_\x8) |
14 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 14 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
15 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 15 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
16 | ··········o·_\x8e_\x8n_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 16 | ··········o·_\x8e_\x8n_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
17 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) | 17 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) |
18 | ··········o·_\x8t_\x8o_\x8t_\x8a_\x8l_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | 18 | ··········o·_\x8t_\x8o_\x8t_\x8a_\x8l_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) |
19 | ··········o·_\x8 | 19 | ··········o·_\x8n_.u_.m_.__.p_.i_.e_.c_.e_.s_.(_.)_.·_.s_.e_.t_.__\x8n_\x8u_\x8m_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8) |
20 | ··········o·_\x8e_\x8n_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 20 | ··········o·_\x8e_\x8n_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
21 | ··········o·_\x8l_\x8a_\x8s_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 21 | ··········o·_\x8l_\x8a_\x8s_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
22 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) | 22 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) |
23 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8)_\x8·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8) | 23 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8)_\x8·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8) |
24 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | 24 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) |
25 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x82_\x8(_\x8) | 25 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x82_\x8(_\x8) |
26 | ··········o·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8__\x8i_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x82_\x8(_\x8) | 26 | ··········o·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8__\x8i_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x82_\x8(_\x8) |
27 | ··········o·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8__\x8p_\x8e_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 27 | ··········o·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8__\x8p_\x8e_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
28 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8)_\x8·_\x8n_\x8a_\x8m_\x8e_\x8(_\x8) | 28 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8)_\x8·_\x8n_\x8a_\x8m_\x8e_\x8(_\x8) |
29 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) | 29 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) |
30 | ··········o·_\x8c_\x8a_\x8n_\x8o_\x8n_\x8i_\x8c_\x8a_\x8l_\x8i_\x8z_\x8e_\x8(_\x8) | 30 | ··········o·_\x8c_\x8a_\x8n_\x8o_\x8n_\x8i_\x8c_\x8a_\x8l_\x8i_\x8z_\x8e_\x8(_\x8) |
31 | ··········o·_\x8m_\x8t_\x8i_\x8m_\x8e_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8h_\x8(_\x8)_\x8·_\x8p_\x8a_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8a_\x8t_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) | ||
32 | ············_\x8r_\x8o_\x8o_\x8t_\x8__\x8p_\x8t_\x8r_\x8(_\x8)_\x8·_\x8s_\x8y_\x8m_\x8l_\x8i_\x8n_\x8k_\x8(_\x8)_\x8·_\x8r_\x8o_\x8o_\x8t_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | ||
33 | ··········o·_\x8 | 31 | ··········o·_\x8m_.t_.i_.m_.e_.(_.)_.·_.r_.o_.o_.t_.__.p_.t_.r_.(_.)_.·_.f_.i_.l_.e_.__.n_.a_.m_.e_.(_.)_.·_.f_.i_.l_.e_.__.p_.a_.t_.h_.(_.)_.·_.s_.y_.m_.l_.i_.n_.k_.(_.)_.·_.r_.o_.o_.t_\x8(_\x8) |
32 | ············_\x8p_\x8a_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8a_\x8t_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8h_\x8(_\x8) | ||
33 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) | ||
34 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) | 34 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) |
35 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8) | 35 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8) |
36 | ··········o·_\x8a_\x8l_\x8l_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) | 36 | ··········o·_\x8a_\x8l_\x8l_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) |
37 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8) | 37 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8) |
38 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8a_\x8b_\x8s_\x8o_\x8l_\x8u_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8(_\x8) | 38 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8a_\x8b_\x8s_\x8o_\x8l_\x8u_\x8t_\x8e_\x8__\x8p_\x8a_\x8t_\x8h_\x8(_\x8) |
39 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8d_\x8e_\x8x_\x8__\x8a_\x8t_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8d_\x8e_\x8x_\x8__\x8a_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 39 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8d_\x8e_\x8x_\x8__\x8a_\x8t_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8d_\x8e_\x8x_\x8__\x8a_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
40 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8d_\x8e_\x8x_\x8__\x8f_\x8o_\x8r_\x8__\x8r_\x8o_\x8o_\x8t_\x8(_\x8) | 40 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8i_\x8n_\x8d_\x8e_\x8x_\x8__\x8f_\x8o_\x8r_\x8__\x8r_\x8o_\x8o_\x8t_\x8(_\x8) |
41 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8i_\x8n_\x8d_\x8e_\x8x_\x8__\x8a_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 41 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8i_\x8n_\x8d_\x8e_\x8x_\x8__\x8a_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
42 | ··········o·_\x8s_\x8a_\x8n_\x8i_\x8t_\x8i_\x8z_\x8e_\x8__\x8s_\x8y_\x8m_\x8l_\x8i_\x8n_\x8k_\x8s_\x8(_\x8) | 42 | ··········o·_\x8s_\x8a_\x8n_\x8i_\x8t_\x8i_\x8z_\x8e_\x8__\x8s_\x8y_\x8m_\x8l_\x8i_\x8n_\x8k_\x8s_\x8(_\x8) |
43 | ··········o·_\x8v_\x82_\x8(_\x8) | 43 | ··········o·_\x8v_\x82_\x8(_\x8) |
44 | ····*·_\x8d_\x8i_\x8s_\x8a_\x8b_\x8l_\x8e_\x8d_\x8__\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8o_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) | ||
45 | ····*·_\x8p_\x8o_\x8s_\x8i_\x8x_\x8__\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8o_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) | 44 | ····*·_\x8p_\x8o_\x8s_\x8i_\x8x_\x8__\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8o_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) |
46 | ····*·_\x8d_\x8 | 45 | ····*·_\x8d_\x8i_.s_.a_.b_.l_.e_.d_\x8__\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8o_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) |
47 | ····*·_\x8m_\x8m_\x8a_\x8p_\x8__\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8o_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) | 46 | ····*·_\x8m_\x8m_\x8a_\x8p_\x8__\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8o_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) |
47 | ····*·_\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8o_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) | ||
48 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t | 48 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8m_\x8o_\x8d_\x8e_\x8__\x8t |
49 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8__\x8t | 49 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8__\x8t |
50 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8m_\x8o_\x8v_\x8e_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | 50 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8m_\x8o_\x8v_\x8e_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t |
51 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 51 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
52 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8st\x8to\x8or\x8ra\x8ag\x8ge\x8e_\x8_p\x8pa\x8ar\x8ra\x8am\x8ms\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* | 52 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8st\x8to\x8or\x8ra\x8ag\x8ge\x8e_\x8_p\x8pa\x8ar\x8ra\x8am\x8ms\x8s·*\x8**\x8**\x8**\x8**\x8**\x8* |
53 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8d_\x8e_\x8f_\x8s_\x8._\x8h_\x8p_\x8p" | 53 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8d_\x8e_\x8f_\x8s_\x8._\x8h_\x8p_\x8p" |
54 | a·parameter·pack·used·to·construct·the·storage·for·a·torrent,·used·in | 54 | a·parameter·pack·used·to·construct·the·storage·for·a·torrent,·used·in |
Offset 96, 80 lines modified | Offset 96, 80 lines modified | ||
96 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8._\x8h_\x8p_\x8p" | 96 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8._\x8h_\x8p_\x8p" |
97 | The·file_storage·class·represents·a·file·list·and·the·piece·size.·Everything | 97 | The·file_storage·class·represents·a·file·list·and·the·piece·size.·Everything |
98 | necessary·to·interpret·a·regular·bittorrent·storage·file·structure. | 98 | necessary·to·interpret·a·regular·bittorrent·storage·file·structure. |
99 | class·file_storage | 99 | class·file_storage |
100 | { | 100 | { |
101 | ···bool·i\x8is\x8s_\x8_v\x8va\x8al\x8li\x8id\x8d·()·const; | 101 | ···bool·i\x8is\x8s_\x8_v\x8va\x8al\x8li\x8id\x8d·()·const; |
102 | ···void·r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e·(int·num_files); | 102 | ···void·r\x8re\x8es\x8se\x8er\x8rv\x8ve\x8e·(int·num_files); |
103 | ···void·a\x8ad\x8dd\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_b\x8bo\x8or\x8rr\x8ro\x8ow\x8w·(string_view·filename | ||
103 | ··· | 104 | ······,·std::string·const&·path,·std::int64_t·file_size |
104 | ······,·file_flags_t·file_flags·=·{} | 105 | ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr |
105 | ······,·std:: | 106 | ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() |
106 | ······,·char·const*·root_hash·=·nullptr); | 107 | ······,·char·const*·root_hash·=·nullptr); |
107 | ···void·a\x8ad\x8dd\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_b\x8bo\x8or\x8rr\x8ro\x8ow\x8w·(error_code&·ec,·string_view·filename | 108 | ···void·a\x8ad\x8dd\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_b\x8bo\x8or\x8rr\x8ro\x8ow\x8w·(error_code&·ec,·string_view·filename |
108 | ······,·std::string·const&·path,·std::int64_t·file_size | 109 | ······,·std::string·const&·path,·std::int64_t·file_size |
109 | ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr | 110 | ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr |
110 | ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() | 111 | ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() |
111 | ······,·char·const*·root_hash·=·nullptr); | 112 | ······,·char·const*·root_hash·=·nullptr); |
113 | ···void·a\x8ad\x8dd\x8d_\x8_f\x8fi\x8il\x8le\x8e·(std::string·const&·path,·std::int64_t·file_size | ||
114 | ······,·file_flags_t·file_flags·=·{} | ||
115 | ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view() | ||
116 | ······,·char·const*·root_hash·=·nullptr); | ||
112 | ···void·a\x8ad\x8dd\x8d_\x8_f\x8fi\x8il\x8le\x8e·(error_code&·ec,·std::string·const&·path,·std::int64_t | 117 | ···void·a\x8ad\x8dd\x8d_\x8_f\x8fi\x8il\x8le\x8e·(error_code&·ec,·std::string·const&·path,·std::int64_t |
113 | file_size | 118 | file_size |
114 | ······,·file_flags_t·file_flags·=·{} | 119 | ······,·file_flags_t·file_flags·=·{} |
115 | ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view() | 120 | ······,·std::time_t·mtime·=·0,·string_view·symlink_path·=·string_view() |
116 | ······,·char·const*·root_hash·=·nullptr); | 121 | ······,·char·const*·root_hash·=·nullptr); |
117 | ···void·a\x8ad\x8dd\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_b\x8bo\x8or\x8rr\x8ro\x8ow\x8w·(string_view·filename | ||
118 | ······,·std::string·const&·path,·std::int64_t·file_size | ||
119 | ······,·file_flags_t·file_flags·=·{},·char·const*·filehash·=·nullptr | ||
120 | ······,·std::int64_t·mtime·=·0,·string_view·symlink_path·=·string_view() | ||
121 | ······,·char·const*·root_hash·=·nullptr); | ||
122 | ···void·r\x8re\x8en\x8na\x8am\x8me\x8e_\x8_f\x8fi\x8il\x8le\x8e·(file_index_t·index,·std::string·const&·new_filename); | 122 | ···void·r\x8re\x8en\x8na\x8am\x8me\x8e_\x8_f\x8fi\x8il\x8le\x8e·(file_index_t·index,·std::string·const&·new_filename); |
123 | ···std::vector<file_slice>·m\x8ma\x8ap\x8p_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·(piece_index_t·piece,·std::int64_t·offset | 123 | ···std::vector<file_slice>·m\x8ma\x8ap\x8p_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·(piece_index_t·piece,·std::int64_t·offset |
124 | ······,·std::int64_t·size)·const; | 124 | ······,·std::int64_t·size)·const; |
125 | ···peer_request·m\x8ma\x8ap\x8p_\x8_f\x8fi\x8il\x8le\x8e·(file_index_t·file,·std::int64_t·offset,·int·size) | 125 | ···peer_request·m\x8ma\x8ap\x8p_\x8_f\x8fi\x8il\x8le\x8e·(file_index_t·file,·std::int64_t·offset,·int·size) |
126 | const; | 126 | const; |
127 | ···int·n\x8nu\x8um\x8m_\x8_f\x8fi\x8il\x8le\x8es\x8s·()·const·noexcept; | 127 | ···int·n\x8nu\x8um\x8m_\x8_f\x8fi\x8il\x8le\x8es\x8s·()·const·noexcept; |
128 | ···file_index_t·e\x8en\x8nd\x8d_\x8_f\x8fi\x8il\x8le\x8e·()·const·noexcept; | 128 | ···file_index_t·e\x8en\x8nd\x8d_\x8_f\x8fi\x8il\x8le\x8e·()·const·noexcept; |
129 | ···index_range<file_index_t>·f\x8fi\x8il\x8le\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const·noexcept; | 129 | ···index_range<file_index_t>·f\x8fi\x8il\x8le\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const·noexcept; |
130 | ···std::int64_t·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e·()·const; | 130 | ···std::int64_t·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e·()·const; |
131 | ···void·s\x8se\x8et\x8t_\x8_n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·(int·n); | ||
132 | ···int·n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·()·const; | 131 | ···int·n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·()·const; |
132 | ···void·s\x8se\x8et\x8t_\x8_n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·(int·n); | ||
133 | ···piece_index_t·e\x8en\x8nd\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; | 133 | ···piece_index_t·e\x8en\x8nd\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; |
134 | ···piece_index_t·l\x8la\x8as\x8st\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; | 134 | ···piece_index_t·l\x8la\x8as\x8st\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; |
135 | ···index_range<piece_index_t>·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const·noexcept; | 135 | ···index_range<piece_index_t>·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const·noexcept; |
136 | ···void·s\x8se\x8et\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·(int·l); | ||
137 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·()·const; | 136 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·()·const; |
137 | ···void·s\x8se\x8et\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·(int·l); | ||
138 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s\x8si\x8iz\x8ze\x8e·(piece_index_t·index)·const; | 138 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s\x8si\x8iz\x8ze\x8e·(piece_index_t·index)·const; |
139 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s\x8si\x8iz\x8ze\x8e2\x82·(piece_index_t·index)·const; | 139 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s\x8si\x8iz\x8ze\x8e2\x82·(piece_index_t·index)·const; |
140 | ···int·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s_\x8_i\x8in\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e2\x82·(piece_index_t·index)·const; | 140 | ···int·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s_\x8_i\x8in\x8n_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e2\x82·(piece_index_t·index)·const; |
141 | ···int·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s_\x8_p\x8pe\x8er\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; | 141 | ···int·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s_\x8_p\x8pe\x8er\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; |
142 | ···std::string·const&·n\x8na\x8am\x8me\x8e·()·const; | ||
143 | ···void·s\x8se\x8et\x8t_\x8_n\x8na\x8am\x8me\x8e·(std::string·const&·n); | 142 | ···void·s\x8se\x8et\x8t_\x8_n\x8na\x8am\x8me\x8e·(std::string·const&·n); |
143 | ···std::string·const&·n\x8na\x8am\x8me\x8e·()·const; | ||
144 | ···void·s\x8sw\x8wa\x8ap\x8p·(file_storage&·ti)·noexcept; | 144 | ···void·s\x8sw\x8wa\x8ap\x8p·(file_storage&·ti)·noexcept; |
145 | ···void·c\x8ca\x8an\x8no\x8on\x8ni\x8ic\x8ca\x8al\x8li\x8iz\x8ze\x8e·(); | 145 | ···void·c\x8ca\x8an\x8no\x8on\x8ni\x8ic\x8ca\x8al\x8li\x8iz\x8ze\x8e·(); |
146 | ···std::string·f\x8fi\x8il\x8le\x8e_\x8_p\x8pa\x8at\x8th\x8h·(file_index_t·index,·std::string·const&·save_path·= | ||
147 | "")·const; | ||
148 | ···std::int64_t·f\x8fi\x8il\x8le\x8e_\x8_o\x8of\x8ff\x8fs\x8se\x8et\x8t·(file_index_t·index)·const; | ||
149 | ···sha256_hash·r\x8ro\x8oo\x8ot\x8t·(file_index_t·index)·const; | ||
150 | ···std::string·s\x8sy\x8ym\x8ml\x8li\x8in\x8nk\x8k·(file_index_t·index)·const; | 146 | ···std::string·s\x8sy\x8ym\x8ml\x8li\x8in\x8nk\x8k·(file_index_t·index)·const; |
147 | ···string_view·f\x8fi\x8il\x8le\x8e_\x8_n\x8na\x8am\x8me\x8e·(file_index_t·index)·const; | ||
151 | ···char·const*·r\x8ro\x8oo\x8ot\x8t_\x8_p\x8pt\x8tr\x8r·(file_index_t·const·index)·const; | 148 | ···char·const*·r\x8ro\x8oo\x8ot\x8t_\x8_p\x8pt\x8tr\x8r·(file_index_t·const·index)·const; |
152 | ···std::time_t·m\x8mt\x8ti\x8im\x8me\x8e·(file_index_t·index)·const; | ||
153 | ···bool·p\x8pa\x8ad\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_a\x8at\x8t·(file_index_t·index)·const; | 149 | ···bool·p\x8pa\x8ad\x8d_\x8_f\x8fi\x8il\x8le\x8e_\x8_a\x8at\x8t·(file_index_t·index)·const; |
154 | ···sha1_hash·h\x8ha\x8as\x8sh\x8h·(file_index_t·index)·const; | ||
155 | ···st | 150 | ···std::int64_t·f.fi.il.le.e_._o.of.ff.fs.se.et.t·(file_index_t·index)·const; |
156 | ···std::int64_t·f\x8fi\x8il\x8le\x8e_\x8_s\x8si\x8iz\x8ze\x8e·(file_index_t·index)·const; | 151 | ···std::int64_t·f\x8fi\x8il\x8le\x8e_\x8_s\x8si\x8iz\x8ze\x8e·(file_index_t·index)·const; |
157 | ···int·f\x8fi\x8il\x8le\x8e_\x8_n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·(file_index_t·index)·const; | ||
158 | ··· | 152 | ···sha1_hash·h.ha.as.sh.h·(file_index_t·index)·const; |
Max diff block lines reached; 18695/28369 bytes (65.90%) of diff not shown. |
Offset 39, 51 lines modified | Offset 39, 51 lines modified | ||
39 | </li> | 39 | </li> |
40 | <li><a·class="reference·internal"·href="#partial-piece-info"·id="toc-entry-4">partial_piece_info</a></li> | 40 | <li><a·class="reference·internal"·href="#partial-piece-info"·id="toc-entry-4">partial_piece_info</a></li> |
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="# | 46 | <li><a·class="reference·internal"·href="#post-peer-info-get-peer-info"·id="toc-entry-10">post_peer_info()·get_peer_info()</a></li> |
47 | <li><a·class="reference·internal"·href="# | 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="# | 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="# | 49 | <li><a·class="reference·internal"·href="#set-piece-deadline-clear-piece-deadlines-reset-piece-deadline"·id="toc-entry-13">set_piece_deadline()·clear_piece_deadlines()·reset_piece_deadline()</a></li> |
50 | <li><a·class="reference·internal"·href="# | 50 | <li><a·class="reference·internal"·href="#file-progress-post-file-progress"·id="toc-entry-14">file_progress()·post_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="# | 53 | <li><a·class="reference·internal"·href="#post-trackers-trackers-replace-trackers-add-tracker"·id="toc-entry-17">post_trackers()·trackers()·replace_trackers()·add_tracker()</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="# | 55 | <li><a·class="reference·internal"·href="#http-seeds-add-http-seed-remove-http-seed"·id="toc-entry-19">http_seeds()·add_http_seed()·remove_http_seed()</a></li> |
55 | <li><a·class="reference·internal"·href="#add-http-seed-remove-http-seed-http-seeds"·id="toc-entry-19">add_http_seed()·remove_http_seed()·http_seeds()</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-set-flags-unset-flags"·id="toc-entry-24">flags()·set_flags()·unset_flags()</a></li> | 60 | <li><a·class="reference·internal"·href="#flags-set-flags-unset-flags"·id="toc-entry-24">flags()·set_flags()·unset_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- | 65 | <li><a·class="reference·internal"·href="#queue-position-top-queue-position-bottom-queue-position-queue-position-down-queue-position-up"·id="toc-entry-29">queue_position_top()·queue_position_bottom()·queue_position()·queue_position_down()·queue_position_up()</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-buffer-set-ssl-certificate"·id="toc-entry-31">set_ssl_certificate_buffer()·set_ssl_certificate()</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-torrent-file-with-hashes"·id="toc-entry-32">torrent_file()·torrent_file_with_hashes()</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="#piece-availability | 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- | 71 | <li><a·class="reference·internal"·href="#piece-priority-get-piece-priorities-prioritize-pieces"·id="toc-entry-35">piece_priority()·get_piece_priorities()·prioritize_pieces()</a></li> |
72 | <li><a·class="reference·internal"·href="# | 72 | <li><a·class="reference·internal"·href="#prioritize-files-get-file-priorities-file-priority"·id="toc-entry-36">prioritize_files()·get_file_priorities()·file_priority()</a></li> |
73 | <li><a·class="reference·internal"·href="#force- | 73 | <li><a·class="reference·internal"·href="#force-dht-announce-force-reannounce-force-lsd-announce"·id="toc-entry-37">force_dht_announce()·force_reannounce()·force_lsd_announce()</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="#set- | 75 | <li><a·class="reference·internal"·href="#set-upload-limit-set-download-limit-download-limit-upload-limit"·id="toc-entry-39">set_upload_limit()·set_download_limit()·download_limit()·upload_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="#set-max-uploads-max-uploads"·id="toc-entry-42">set_max_uploads()·max_uploads()</a></li> | 78 | <li><a·class="reference·internal"·href="#set-max-uploads-max-uploads"·id="toc-entry-42">set_max_uploads()·max_uploads()</a></li> |
79 | <li><a·class="reference·internal"·href="# | 79 | <li><a·class="reference·internal"·href="#max-connections-set-max-connections"·id="toc-entry-43">max_connections()·set_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-hash | 82 | <li><a·class="reference·internal"·href="#info-hashes-info-hash"·id="toc-entry-46">info_hashes()·info_hash()</a></li> |
83 | <li><a·class="reference·internal"·href="#operator-operator-operator"·id="toc-entry-47">operator==()·operator!=()·operator<()</a></li> | 83 | <li><a·class="reference·internal"·href="#operator-operator-operator"·id="toc-entry-47">operator==()·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> |
87 | <li><a·class="reference·internal"·href="#in-session"·id="toc-entry-51">in_session()</a></li> | 87 | <li><a·class="reference·internal"·href="#in-session"·id="toc-entry-51">in_session()</a></li> |
88 | </ul> | 88 | </ul> |
89 | </li> | 89 | </li> |
Offset 94, 16 lines modified | Offset 94, 16 lines modified | ||
94 | <h1>block_info</h1> | 94 | <h1>block_info</h1> |
95 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/torrent_handle.hpp">libtorrent/torrent_handle.hpp</a>"</p> | 95 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/torrent_handle.hpp">libtorrent/torrent_handle.hpp</a>"</p> |
96 | <p>holds·the·state·of·a·block·in·a·piece.·Who·we·requested | 96 | <p>holds·the·state·of·a·block·in·a·piece.·Who·we·requested |
97 | it·from·and·how·far·along·we·are·at·downloading·it.</p> | 97 | it·from·and·how·far·along·we·are·at·downloading·it.</p> |
98 | <pre·class="literal-block"> | 98 | <pre·class="literal-block"> |
99 | struct·block_info | 99 | struct·block_info |
100 | { | 100 | { |
101 | ···void·<strong>set_peer</strong>·(tcp::endpoint·const&·ep); | ||
102 | ···<a·class="reference·external"·href="tcp::endpoint">tcp::endpoint</a>·<strong>peer</strong>·()·const; | 101 | ···<a·class="reference·external"·href="tcp::endpoint">tcp::endpoint</a>·<strong>peer</strong>·()·const; |
102 | ···void·<strong>set_peer</strong>·(tcp::endpoint·const&·ep); | ||
103 | ···enum·block_state_t | 103 | ···enum·block_state_t |
104 | ···{ | 104 | ···{ |
105 | ······none, | 105 | ······none, |
106 | ······requested, | 106 | ······requested, |
107 | ······writing, | 107 | ······writing, |
108 | ······finished, | 108 | ······finished, |
Offset 115, 16 lines modified | Offset 115, 16 lines modified | ||
115 | ···unsigned·num_peers:14; | 115 | ···unsigned·num_peers:14; |
116 | }; | 116 | }; |
117 | </pre> | 117 | </pre> |
118 | <a·name="peer()"></a> | 118 | <a·name="peer()"></a> |
119 | <a·name="set_peer()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:block_info%3A%3A%5Bpeer%28%29+set_peer%28%29%5D&labels=documentation&body=Documentation+under+heading+%22block_info%3A%3A%5Bpeer%28%29+set_peer%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="peer-set-peer"> | 119 | <a·name="set_peer()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:block_info%3A%3A%5Bpeer%28%29+set_peer%28%29%5D&labels=documentation&body=Documentation+under+heading+%22block_info%3A%3A%5Bpeer%28%29+set_peer%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="peer-set-peer"> |
120 | <h2>peer()·set_peer()</h2> | 120 | <h2>peer()·set_peer()</h2> |
121 | <pre·class="literal-block"> | 121 | <pre·class="literal-block"> |
122 | void·<strong>set_peer</strong>·(tcp::endpoint·const&·ep); | ||
123 | <a·class="reference·external"·href="tcp::endpoint">tcp::endpoint</a>·<strong>peer</strong>·()·const; | 122 | <a·class="reference·external"·href="tcp::endpoint">tcp::endpoint</a>·<strong>peer</strong>·()·const; |
123 | void·<strong>set_peer</strong>·(tcp::endpoint·const&·ep); | ||
124 | </pre> | 124 | </pre> |
125 | <p>The·peer·is·the·ip·address·of·the·peer·this·block·was·downloaded·from.</p> | 125 | <p>The·peer·is·the·ip·address·of·the·peer·this·block·was·downloaded·from.</p> |
126 | <a·name="block_state_t"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:enum+block_state_t&labels=documentation&body=Documentation+under+heading+%22enum+block_state_t%22+could+be+improved">report·issue</a>]</span></div> | 126 | <a·name="block_state_t"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:enum+block_state_t&labels=documentation&body=Documentation+under+heading+%22enum+block_state_t%22+could+be+improved">report·issue</a>]</span></div> |
127 | <div·class="section"·id="enum-block-state-t"> | 127 | <div·class="section"·id="enum-block-state-t"> |
128 | <h2>enum·block_state_t</h2> | 128 | <h2>enum·block_state_t</h2> |
129 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/torrent_handle.hpp">libtorrent/torrent_handle.hpp</a>"</p> | 129 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/torrent_handle.hpp">libtorrent/torrent_handle.hpp</a>"</p> |
130 | <table·border="1"·class="docutils"> | 130 | <table·border="1"·class="docutils"> |
Offset 254, 119 lines modified | Offset 254, 119 lines modified | ||
254 | Which·means·you·cannot·perform·any·operation·on·it,·unless·you·first | 254 | Which·means·you·cannot·perform·any·operation·on·it,·unless·you·first |
255 | assign·it·a·valid·handle.·If·you·try·to·perform·any·operation·on·an | 255 | assign·it·a·valid·handle.·If·you·try·to·perform·any·operation·on·an |
256 | uninitialized·handle,·it·will·throw·<tt·class="docutils·literal">invalid_handle</tt>.</p> | 256 | uninitialized·handle,·it·will·throw·<tt·class="docutils·literal">invalid_handle</tt>.</p> |
257 | <div·class="admonition·warning"> | 257 | <div·class="admonition·warning"> |
258 | <p·class="first·admonition-title">Warning</p> | 258 | <p·class="first·admonition-title">Warning</p> |
259 | <p·class="last">All·operations·on·a·<a·class="reference·external"·href="reference-Torrent_Handle.html#torrent_handle">torrent_handle</a>·may·throw·system_error | 259 | <p·class="last">All·operations·on·a·<a·class="reference·external"·href="reference-Torrent_Handle.html#torrent_handle">torrent_handle</a>·may·throw·system_error |
260 | exception,·in·case·the·handle·is·no·longer·referring·to·a·torrent. | 260 | exception,·in·case·the·handle·is·no·longer·referring·to·a·torrent. |
261 | There·is·one·exception·<a·class="reference·external"·href="reference- | 261 | There·is·one·exception·<a·class="reference·external"·href="reference-Session.html#is_valid()">is_valid()</a>·will·never·throw.·Since·the·torrents |
262 | are·processed·by·a·background·thread,·there·is·no·guarantee·that·a | 262 | are·processed·by·a·background·thread,·there·is·no·guarantee·that·a |
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_handle | 266 | struct·torrent_handle |
267 | { | 267 | { |
268 | ···friend·std::size_t·<strong>hash_value</strong>·(torrent_handle·const&·th); | 268 | ···friend·std::size_t·<strong>hash_value</strong>·(torrent_handle·const&·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; | 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<char>·data,·add_piece_flags_t·flags·=·{})·const; | 271 | ···void·<strong>add_piece</strong>·(piece_index_t·piece,·std::vector<char>·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; | 274 | ···void·<strong>post_peer_info</strong>·()·const; |
275 | ···void·<strong>get_peer_info</strong>·(std::vector<peer_info>&·v)·const; | 275 | ···void·<strong>get_peer_info</strong>·(std::vector<peer_info>&·v)·const; |
276 | ···torrent_status·<strong>status</strong>·(status_flags_t·flags·=·status_flags_t::all())·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<partial_piece_info>&·queue)·const; | ||
279 | ···void·<strong>post_download_queue</strong>·()·const; | ||
280 | ···std::vector<partial_piece_info>·<strong>get_download_queue</strong>·()·const; | 278 | ···std::vector<partial_piece_info>·<strong>get_download_queue</strong>·()·const; |
281 | ···void·<strong> | 279 | ···void·<strong>post_download_queue</strong>·()·const; |
280 | ···void·<strong>get_download_queue</strong>·(std::vector<partial_piece_info>&·queue)·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 | ···std::vector<std::int64_t>·<strong>file_progress</strong>·(file_progress_flags_t·flags·=·{})·const; | 284 | ···std::vector<std::int64_t>·<strong>file_progress</strong>·(file_progress_flags_t·flags·=·{})·const; |
285 | ···void·<strong>post_file_progress</strong>·(file_progress_flags_t·flags)·const; | ||
286 | ···void·<strong>file_progress</strong>·(std::vector<std::int64_t>&·progress,·file_progress_flags_t·flags·=·{})·const; | 285 | ···void·<strong>file_progress</strong>·(std::vector<std::int64_t>&·progress,·file_progress_flags_t·flags·=·{})·const; |
286 | ···void·<strong>post_file_progress</strong>·(file_progress_flags_t·flags)·const; | ||
287 | ···std::vector<open_file_state>·<strong>file_status</strong>·()·const; | 287 | ···std::vector<open_file_state>·<strong>file_status</strong>·()·const; |
Max diff block lines reached; 58411/72414 bytes (80.66%) of diff not shown. |
Offset 8, 68 lines modified | Offset 8, 68 lines modified | ||
8 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8t | 8 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8t |
9 | ····*·_\x8p_\x8a_\x8r_\x8t_\x8i_\x8a_\x8l_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o | 9 | ····*·_\x8p_\x8a_\x8r_\x8t_\x8i_\x8a_\x8l_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o |
10 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | 10 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e |
11 | ··········o·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8(_\x8) | 11 | ··········o·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8(_\x8) |
12 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 12 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
13 | ··········o·_\x8r_\x8e_\x8a_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 13 | ··········o·_\x8r_\x8e_\x8a_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
14 | ··········o·_\x8h_\x8a_\x8v_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 14 | ··········o·_\x8h_\x8a_\x8v_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
15 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8)_\x8·_\x8p_\x8o_\x8s_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8) | ||
16 | ··········o·_\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8)_\x8·_\x8p_\x8o_\x8s_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8) | ||
17 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8q_\x8u_\x8e_\x8u_\x8e_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8q_\x8u_\x8e_\x8u_\x8e_\x8(_\x8) | ||
18 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8d_\x8e_\x8a_\x8d_\x8l_\x8i_\x8n_\x8e_\x8s_\x8(_\x8)_\x8·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8d_\x8e_\x8a_\x8d_\x8l_\x8i_\x8n_\x8e_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8d_\x8e_\x8a_\x8d_\x8l_\x8i_\x8n_\x8e_\x8(_\x8) | ||
19 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8 | 15 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8p_.e_.e_.r_.__.i_.n_.f_.o_.(_.)_.·_.g_.e_.t_.__.p_.e_.e_.r_.__.i_.n_.f_.o_\x8(_\x8) |
16 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8)_\x8·_\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8) | ||
17 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8q_\x8u_\x8e_\x8u_\x8e_\x8(_\x8)_\x8·_\x8p_\x8o_\x8s_\x8t_\x8__\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8q_\x8u_\x8e_\x8u_\x8e_\x8(_\x8) | ||
18 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8d_\x8e_\x8a_\x8d_\x8l_\x8i_\x8n_\x8e_\x8(_\x8)_\x8·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8d_\x8e_\x8a_\x8d_\x8l_\x8i_\x8n_\x8e_\x8s_\x8(_\x8)_\x8·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8d_\x8e_\x8a_\x8d_\x8l_\x8i_\x8n_\x8e_\x8(_\x8) | ||
19 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8o_\x8g_\x8r_\x8e_\x8s_\x8s_\x8(_\x8)_\x8·_\x8p_\x8o_\x8s_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8o_\x8g_\x8r_\x8e_\x8s_\x8s_\x8(_\x8) | ||
20 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8) | 20 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8) |
21 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8(_\x8) | 21 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8(_\x8) |
22 | ··········o·_\x8 | 22 | ··········o·_\x8p_.o_.s_.t_.__.t_.r_.a_.c_.k_.e_.r_.s_.(_.)_.·_.t_.r_.a_.c_.k_.e_.r_.s_.(_.)_.·_.r_.e_.p_.l_.a_.c_.e_.__.t_.r_.a_.c_.k_.e_.r_.s_.(_.)_.·_.a_.d_.d_.__.t_.r_.a_.c_.k_.e_.r_\x8(_\x8) |
23 | ··········o·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8u_\x8r_\x8l_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8)_\x8·_\x8u_\x8r_\x8l_\x8__\x8s_\x8e_\x8e_\x8d_\x8s_\x8(_\x8)_\x8·_\x8a_\x8d_\x8d_\x8__\x8u_\x8r_\x8l_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8) | ||
23 | ··········o·_\x8 | 24 | ··········o·_\x8h_.t_.t_.p_.__.s_.e_.e_.d_.s_.(_.)_.·_.a_.d_.d_.__.h_.t_.t_.p_.__.s_.e_.e_.d_.(_.)_.·_.r_.e_.m_.o_.v_.e_.__.h_.t_.t_.p_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8) |
24 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8h_\x8t_\x8t_\x8p_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8)_\x8·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8__\x8h_\x8t_\x8t_\x8p_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8)_\x8·_\x8h_\x8t_\x8t_\x8p_\x8__\x8s_\x8e_\x8e_\x8d_\x8s_\x8(_\x8) | ||
25 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | 25 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) |
26 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8t_\x8a_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 26 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8m_\x8e_\x8t_\x8a_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
27 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) | 27 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) |
28 | ··········o·_\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8(_\x8)_\x8·_\x8p_\x8a_\x8u_\x8s_\x8e_\x8(_\x8) | 28 | ··········o·_\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8(_\x8)_\x8·_\x8p_\x8a_\x8u_\x8s_\x8e_\x8(_\x8) |
29 | ··········o·_\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8)_\x8·_\x8u_\x8n_\x8s_\x8e_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8) | 29 | ··········o·_\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8)_\x8·_\x8u_\x8n_\x8s_\x8e_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8) |
30 | ··········o·_\x8f_\x8l_\x8u_\x8s_\x8h_\x8__\x8c_\x8a_\x8c_\x8h_\x8e_\x8(_\x8) | 30 | ··········o·_\x8f_\x8l_\x8u_\x8s_\x8h_\x8__\x8c_\x8a_\x8c_\x8h_\x8e_\x8(_\x8) |
31 | ··········o·_\x8f_\x8o_\x8r_\x8c_\x8e_\x8__\x8r_\x8e_\x8c_\x8h_\x8e_\x8c_\x8k_\x8(_\x8) | 31 | ··········o·_\x8f_\x8o_\x8r_\x8c_\x8e_\x8__\x8r_\x8e_\x8c_\x8h_\x8e_\x8c_\x8k_\x8(_\x8) |
32 | ··········o·_\x8s_\x8a_\x8v_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 32 | ··········o·_\x8s_\x8a_\x8v_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
33 | ··········o·_\x8n_\x8e_\x8e_\x8d_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 33 | ··········o·_\x8n_\x8e_\x8e_\x8d_\x8__\x8s_\x8a_\x8v_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
34 | ··········o·_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8__\x8 | 34 | ··········o·_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_.o_.p_.(_.)_.·_.q_.u_.e_.u_.e_.__.p_.o_.s_.i_.t_.i_.o_.n_.__.b_.o_.t_.t_.o_.m_\x8(_\x8)_\x8·_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) |
35 | ············_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8__\x8 | 35 | ············_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8__\x8d_.o_.w_.n_.(_.)_.·_.q_.u_.e_.u_.e_.__.p_.o_.s_.i_.t_.i_.o_.n_.__.u_\x8p_\x8(_\x8) |
36 | ··········o·_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8__\x8s_\x8e_\x8t_\x8(_\x8) | 36 | ··········o·_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8__\x8s_\x8e_\x8t_\x8(_\x8) |
37 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8s_\x8s_\x8l_\x8__\x8c_\x8e_\x8r_\x8t_\x8i_\x8f_\x8i_\x8c_\x8a_\x8t_\x8e_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8s_\x8s_\x8l_\x8__\x8c_\x8e_\x8r_\x8t_\x8i_\x8f_\x8i_\x8c_\x8a_\x8t_\x8e_\x8(_\x8) | 37 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8s_\x8s_\x8l_\x8__\x8c_\x8e_\x8r_\x8t_\x8i_\x8f_\x8i_\x8c_\x8a_\x8t_\x8e_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8s_\x8s_\x8l_\x8__\x8c_\x8e_\x8r_\x8t_\x8i_\x8f_\x8i_\x8c_\x8a_\x8t_\x8e_\x8(_\x8) |
38 | ··········o·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8)_\x8·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) | 38 | ··········o·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8)_\x8·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8w_\x8i_\x8t_\x8h_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) |
39 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8a_\x8y_\x8e_\x8r_\x8s_\x8(_\x8) | 39 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8a_\x8y_\x8e_\x8r_\x8s_\x8(_\x8) |
40 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8a_\x8v_\x8a_\x8i_\x8l_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8y_\x8(_\x8)_\x8·_\x8p_\x8o_\x8s_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8a_\x8v_\x8a_\x8i_\x8l_\x8a_\x8b_\x8i_\x8l_\x8i_\x8t_\x8y_\x8(_\x8) | ||
41 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8(_\x8)_\x8·_\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8i_\x8z_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8i_\x8e_\x8s_\x8(_\x8) | ||
42 | ··········o·_\x8 | 40 | ··········o·_\x8p_.o_.s_.t_.__.p_.i_.e_.c_.e_.__.a_.v_.a_.i_.l_.a_.b_.i_.l_.i_.t_.y_.(_.)_.·_.p_.i_.e_.c_.e_.__.a_.v_.a_.i_.l_.a_.b_.i_.l_.i_.t_.y_\x8(_\x8) |
41 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8i_\x8e_\x8s_\x8(_\x8)_\x8·_\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8i_\x8z_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8) | ||
42 | ··········o·_\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8i_\x8z_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8i_\x8e_\x8s_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8(_\x8) | ||
43 | ··········o·_\x8f_\x8o_\x8r_\x8c_\x8e_\x8__\x8 | 43 | ··········o·_\x8f_\x8o_\x8r_\x8c_\x8e_\x8__\x8d_.h_.t_.__.a_.n_.n_.o_.u_.n_.c_.e_.(_.)_.·_.f_.o_.r_.c_.e_.__.r_.e_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8(_\x8)_\x8·_\x8f_\x8o_\x8r_\x8c_\x8e_\x8__\x8l_\x8s_\x8d_\x8__\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8(_\x8) |
44 | ··········o·_\x8s_\x8c_\x8r_\x8a_\x8p_\x8e_\x8__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8(_\x8) | 44 | ··········o·_\x8s_\x8c_\x8r_\x8a_\x8p_\x8e_\x8__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8(_\x8) |
45 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8 | 45 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8u_.p_.l_.o_.a_.d_.__.l_.i_.m_.i_.t_.(_.)_.·_.s_.e_.t_.__.d_.o_.w_.n_.l_.o_.a_.d_.__.l_.i_.m_.i_.t_.(_.)_.·_.d_.o_.w_.n_\x8l_\x8o_\x8a_\x8d_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8(_\x8) |
46 | ············_\x8 | 46 | ············_\x8u_.p_\x8l_\x8o_\x8a_\x8d_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8(_\x8) |
47 | ··········o·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8(_\x8) | 47 | ··········o·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8(_\x8) |
48 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8(_\x8) | 48 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8(_\x8) |
49 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8m_\x8a_\x8x_\x8__\x8u_\x8p_\x8l_\x8o_\x8a_\x8d_\x8s_\x8(_\x8)_\x8·_\x8m_\x8a_\x8x_\x8__\x8u_\x8p_\x8l_\x8o_\x8a_\x8d_\x8s_\x8(_\x8) | 49 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8m_\x8a_\x8x_\x8__\x8u_\x8p_\x8l_\x8o_\x8a_\x8d_\x8s_\x8(_\x8)_\x8·_\x8m_\x8a_\x8x_\x8__\x8u_\x8p_\x8l_\x8o_\x8a_\x8d_\x8s_\x8(_\x8) |
50 | ··········o·_\x8 | 50 | ··········o·_\x8m_.a_.x_.__.c_.o_.n_.n_.e_.c_.t_.i_.o_.n_.s_.(_.)_.·_.s_.e_.t_.__\x8m_\x8a_\x8x_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8(_\x8) |
51 | ··········o·_\x8m_\x8o_\x8v_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8(_\x8) | 51 | ··········o·_\x8m_\x8o_\x8v_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8(_\x8) |
52 | ··········o·_\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 52 | ··········o·_\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
53 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_.)_.·_.i_.n_.f_.o_.__.h_.a_.s_.h | 53 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_.s_.(_.)_.·_.i_.n_.f_.o_.__.h_.a_.s_.h_\x8(_\x8) |
54 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8=_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8!_\x8=_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_\x8(_\x8) | 54 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8=_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8!_\x8=_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_\x8(_\x8) |
55 | ··········o·_\x8i_\x8d_\x8(_\x8) | 55 | ··········o·_\x8i_\x8d_\x8(_\x8) |
56 | ··········o·_\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8(_\x8) | 56 | ··········o·_\x8n_\x8a_\x8t_\x8i_\x8v_\x8e_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8(_\x8) |
57 | ··········o·_\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 57 | ··········o·_\x8u_\x8s_\x8e_\x8r_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
58 | ··········o·_\x8i_\x8n_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | 58 | ··········o·_\x8i_\x8n_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) |
59 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8(_\x8) | 59 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8(_\x8) |
60 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 60 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
61 | *\x8**\x8**\x8**\x8**\x8**\x8*·b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 61 | *\x8**\x8**\x8**\x8**\x8**\x8*·b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
62 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8._\x8h_\x8p_\x8p" | 62 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8._\x8h_\x8p_\x8p" |
63 | holds·the·state·of·a·block·in·a·piece.·Who·we·requested·it·from·and·how·far | 63 | holds·the·state·of·a·block·in·a·piece.·Who·we·requested·it·from·and·how·far |
64 | along·we·are·at·downloading·it. | 64 | along·we·are·at·downloading·it. |
65 | struct·block_info | 65 | struct·block_info |
66 | { | 66 | { |
67 | ···void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r·(tcp::endpoint·const&·ep); | ||
68 | ···_\x8t_\x8c_\x8p_\x8:_\x8:_\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t·p\x8pe\x8ee\x8er\x8r·()·const; | 67 | ···_\x8t_\x8c_\x8p_\x8:_\x8:_\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t·p\x8pe\x8ee\x8er\x8r·()·const; |
68 | ···void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r·(tcp::endpoint·const&·ep); | ||
69 | ···enum·block_state_t | 69 | ···enum·block_state_t |
70 | ···{ | 70 | ···{ |
71 | ······none, | 71 | ······none, |
72 | ······requested, | 72 | ······requested, |
73 | ······writing, | 73 | ······writing, |
74 | ······finished, | 74 | ······finished, |
Offset 78, 16 lines modified | Offset 78, 16 lines modified | ||
78 | ···unsigned·bytes_progress:15; | 78 | ···unsigned·bytes_progress:15; |
79 | ···unsigned·block_size:15; | 79 | ···unsigned·block_size:15; |
80 | ···unsigned·state:2; | 80 | ···unsigned·state:2; |
81 | ···unsigned·num_peers:14; | 81 | ···unsigned·num_peers:14; |
82 | }; | 82 | }; |
83 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 83 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
84 | *\x8**\x8**\x8**\x8**\x8*·p\x8pe\x8ee\x8er\x8r(\x8()\x8)·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 84 | *\x8**\x8**\x8**\x8**\x8*·p\x8pe\x8ee\x8er\x8r(\x8()\x8)·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
85 | void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r·(tcp::endpoint·const&·ep); | ||
86 | _\x8t_\x8c_\x8p_\x8:_\x8:_\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t·p\x8pe\x8ee\x8er\x8r·()·const; | 85 | _\x8t_\x8c_\x8p_\x8:_\x8:_\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t·p\x8pe\x8ee\x8er\x8r·()·const; |
86 | void·s\x8se\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r·(tcp::endpoint·const&·ep); | ||
87 | The·peer·is·the·ip·address·of·the·peer·this·block·was·downloaded·from. | 87 | The·peer·is·the·ip·address·of·the·peer·this·block·was·downloaded·from. |
88 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 88 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
89 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nu\x8um\x8m·b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_s\x8st\x8ta\x8at\x8te\x8e_\x8_t\x8t·*\x8**\x8**\x8**\x8**\x8* | 89 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nu\x8um\x8m·b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_s\x8st\x8ta\x8at\x8te\x8e_\x8_t\x8t·*\x8**\x8**\x8**\x8**\x8* |
90 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8._\x8h_\x8p_\x8p" | 90 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8._\x8h_\x8p_\x8p" |
91 | ·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8· | 91 | ·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8· |
92 | |_\x8n\x8n_\x8a\x8a_\x8m\x8m_\x8e\x8e_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8v\x8v_\x8a\x8a_\x8l\x8l_\x8u\x8u_\x8e\x8e_\x8|_\x8d\x8d_\x8e\x8e_\x8s\x8s_\x8c\x8c_\x8r\x8r_\x8i\x8i_\x8p\x8p_\x8t\x8t_\x8i\x8i_\x8o\x8o_\x8n\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 92 | |_\x8n\x8n_\x8a\x8a_\x8m\x8m_\x8e\x8e_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8v\x8v_\x8a\x8a_\x8l\x8l_\x8u\x8u_\x8e\x8e_\x8|_\x8d\x8d_\x8e\x8e_\x8s\x8s_\x8c\x8c_\x8r\x8r_\x8i\x8i_\x8p\x8p_\x8t\x8t_\x8i\x8i_\x8o\x8o_\x8n\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
93 | |none·····|0····|This·block·has·not·been·downloaded·or·requested·form·any···| | 93 | |none·····|0····|This·block·has·not·been·downloaded·or·requested·form·any···| |
Offset 183, 112 lines modified | Offset 183, 112 lines modified | ||
183 | flags·=·{})·const; | 183 | flags·=·{})·const; |
184 | ···void·a\x8ad\x8dd\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(piece_index_t·piece,·std::vector<char>·data, | 184 | ···void·a\x8ad\x8dd\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(piece_index_t·piece,·std::vector<char>·data, |
185 | add_piece_flags_t·flags·=·{})·const; | 185 | add_piece_flags_t·flags·=·{})·const; |
186 | ···void·r\x8re\x8ea\x8ad\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(piece_index_t·piece)·const; | 186 | ···void·r\x8re\x8ea\x8ad\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(piece_index_t·piece)·const; |
187 | ···bool·h\x8ha\x8av\x8ve\x8e_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(piece_index_t·piece)·const; | 187 | ···bool·h\x8ha\x8av\x8ve\x8e_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(piece_index_t·piece)·const; |
188 | ···void·p\x8po\x8os\x8st\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_i\x8in\x8nf\x8fo\x8o·()·const; | 188 | ···void·p\x8po\x8os\x8st\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_i\x8in\x8nf\x8fo\x8o·()·const; |
189 | ···void·g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_i\x8in\x8nf\x8fo\x8o·(std::vector<peer_info>&·v)·const; | 189 | ···void·g\x8ge\x8et\x8t_\x8_p\x8pe\x8ee\x8er\x8r_\x8_i\x8in\x8nf\x8fo\x8o·(std::vector<peer_info>&·v)·const; |
190 | ···torrent_status·s\x8st\x8ta\x8at\x8tu\x8us\x8s·(status_flags_t·flags·=·status_flags_t::all())·const; | ||
191 | ···void·p\x8po\x8os\x8st\x8t_\x8_s\x8st\x8ta\x8at\x8tu\x8us\x8s·(status_flags_t·flags·=·status_flags_t::all())·const; | 190 | ···void·p\x8po\x8os\x8st\x8t_\x8_s\x8st\x8ta\x8at\x8tu\x8us\x8s·(status_flags_t·flags·=·status_flags_t::all())·const; |
191 | ···torrent_status·s\x8st\x8ta\x8at\x8tu\x8us\x8s·(status_flags_t·flags·=·status_flags_t::all())·const; | ||
192 | ···void·g\x8ge\x8et\x8t_\x8_d\x8do\x8ow\x8wn\x8nl\x8lo\x8oa\x8ad\x8d_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·(std::vector<partial_piece_info>&·queue)·const; | ||
193 | ···void·p\x8po\x8os\x8st\x8t_\x8_d\x8do\x8ow\x8wn\x8nl\x8lo\x8oa\x8ad\x8d_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·()·const; | ||
194 | ···std::vector<partial_piece_info>·g\x8ge\x8et\x8t_\x8_d\x8do\x8ow\x8wn\x8nl\x8lo\x8oa\x8ad\x8d_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·()·const; | 192 | ···std::vector<partial_piece_info>·g\x8ge\x8et\x8t_\x8_d\x8do\x8ow\x8wn\x8nl\x8lo\x8oa\x8ad\x8d_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·()·const; |
195 | ···void· | 193 | ···void·p.po.os.st.t_._d.do.ow.wn.nl.lo.oa.ad.d_._q.qu.ue.eu.ue.e·()·const; |
194 | ···void·g\x8ge\x8et\x8t_\x8_d\x8do\x8ow\x8wn\x8nl\x8lo\x8oa\x8ad\x8d_\x8_q\x8qu\x8ue\x8eu\x8ue\x8e·(std::vector<partial_piece_info>&·queue)·const; | ||
196 | ···void·s\x8se\x8et\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_d\x8de\x8ea\x8ad\x8dl\x8li\x8in\x8ne\x8e·(piece_index_t·index,·int·deadline,·deadline_flags_t | 195 | ···void·s\x8se\x8et\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_d\x8de\x8ea\x8ad\x8dl\x8li\x8in\x8ne\x8e·(piece_index_t·index,·int·deadline,·deadline_flags_t |
197 | flags·=·{})·const; | 196 | flags·=·{})·const; |
198 | ···void·r\x8re\x8es\x8se\x8et\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_d\x8de\x8ea\x8ad\x8dl\x8li\x8in\x8ne\x8e·(piece_index_t·index)·const; | 197 | ···void·r\x8re\x8es\x8se\x8et\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_d\x8de\x8ea\x8ad\x8dl\x8li\x8in\x8ne\x8e·(piece_index_t·index)·const; |
198 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_d\x8de\x8ea\x8ad\x8dl\x8li\x8in\x8ne\x8es\x8s·()·const; | ||
199 | ···std::vector<std::int64_t>·f\x8fi\x8il\x8le\x8e_\x8_p\x8pr\x8ro\x8og\x8gr\x8re\x8es\x8ss\x8s·(file_progress_flags_t·flags·=·{}) | 199 | ···std::vector<std::int64_t>·f\x8fi\x8il\x8le\x8e_\x8_p\x8pr\x8ro\x8og\x8gr\x8re\x8es\x8ss\x8s·(file_progress_flags_t·flags·=·{}) |
200 | const; | 200 | const; |
201 | ···void·p\x8po\x8os\x8st\x8t_\x8_f\x8fi\x8il\x8le\x8e_\x8_p\x8pr\x8ro\x8og\x8gr\x8re\x8es\x8ss\x8s·(file_progress_flags_t·flags)·const; | ||
202 | ···void·f\x8fi\x8il\x8le\x8e_\x8_p\x8pr\x8ro\x8og\x8gr\x8re\x8es\x8ss\x8s·(std::vector<std::int64_t>&·progress, | 201 | ···void·f\x8fi\x8il\x8le\x8e_\x8_p\x8pr\x8ro\x8og\x8gr\x8re\x8es\x8ss\x8s·(std::vector<std::int64_t>&·progress, |
203 | file_progress_flags_t·flags·=·{})·const; | 202 | file_progress_flags_t·flags·=·{})·const; |
203 | ···void·p\x8po\x8os\x8st\x8t_\x8_f\x8fi\x8il\x8le\x8e_\x8_p\x8pr\x8ro\x8og\x8gr\x8re\x8es\x8ss\x8s·(file_progress_flags_t·flags)·const; | ||
204 | ···std::vector<open_file_state>·f\x8fi\x8il\x8le\x8e_\x8_s\x8st\x8ta\x8at\x8tu\x8us\x8s·()·const; | 204 | ···std::vector<open_file_state>·f\x8fi\x8il\x8le\x8e_\x8_s\x8st\x8ta\x8at\x8tu\x8us\x8s·()·const; |
205 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_e\x8er\x8rr\x8ro\x8or\x8r·()·const; | 205 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_e\x8er\x8rr\x8ro\x8or\x8r·()·const; |
206 | ···void·p\x8po\x8os\x8st\x8t_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·()·const; | 206 | ···void·p\x8po\x8os\x8st\x8t_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·()·const; |
207 | ···void·a\x8ad\x8dd\x8d_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r·(announce_entry·const&)·const; | 207 | ···void·a\x8ad\x8dd\x8d_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r·(announce_entry·const&)·const; |
208 | ···void·r\x8re\x8ep\x8pl\x8la\x8ac\x8ce\x8e_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·(std::vector<announce_entry>·const&)·const; | ||
209 | ···std::vector<announce_entry>·t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·()·const; | 208 | ···std::vector<announce_entry>·t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·()·const; |
209 | ···void·r\x8re\x8ep\x8pl\x8la\x8ac\x8ce\x8e_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·(std::vector<announce_entry>·const&)·const; | ||
Max diff block lines reached; 40005/52230 bytes (76.59%) of diff not shown. |
Offset 41, 23 lines modified | Offset 41, 23 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="#a | 48 | <li><a·class="reference·internal"·href="#trackers-clear-trackers-add-tracker"·id="toc-entry-12">trackers()·clear_trackers()·add_tracker()</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="#collections-similar-torrents"·id="toc-entry-13">collections()·similar_torrents()</a></li> |
50 | <li><a·class="reference·internal"·href="# | 50 | <li><a·class="reference·internal"·href="#set-web-seeds-add-http-seed-add-url-seed-web-seeds"·id="toc-entry-14">set_web_seeds()·add_http_seed()·add_url_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="#num-pieces-piece-length"·id="toc-entry-16">num_pieces()·piece_length()</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="#piece- | 54 | <li><a·class="reference·internal"·href="#end-piece-piece-range-last-piece"·id="toc-entry-18">end_piece()·piece_range()·last_piece()</a></li> |
55 | <li><a·class="reference·internal"·href="#info-hash-info-hash | 55 | <li><a·class="reference·internal"·href="#info-hashes-info-hash"·id="toc-entry-19">info_hashes()·info_hash()</a></li> |
56 | <li><a·class="reference·internal"·href="#v | 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> |
Offset 154, 15 lines modified | Offset 154, 15 lines modified | ||
154 | </dl> | 154 | </dl> |
155 | <a·name="extra_headers"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:web_seed_entry%3A%3A%5Bextra_headers%5D&labels=documentation&body=Documentation+under+heading+%22web_seed_entry%3A%3A%5Bextra_headers%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | 155 | <a·name="extra_headers"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:web_seed_entry%3A%3A%5Bextra_headers%5D&labels=documentation&body=Documentation+under+heading+%22web_seed_entry%3A%3A%5Bextra_headers%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> |
156 | <dt>extra_headers</dt> | 156 | <dt>extra_headers</dt> |
157 | <dd>Any·extra·HTTP·headers·that·need·to·be·passed·to·the·web·seed</dd> | 157 | <dd>Any·extra·HTTP·headers·that·need·to·be·passed·to·the·web·seed</dd> |
158 | </dl> | 158 | </dl> |
159 | <a·name="type"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:web_seed_entry%3A%3A%5Btype%5D&labels=documentation&body=Documentation+under+heading+%22web_seed_entry%3A%3A%5Btype%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | 159 | <a·name="type"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:web_seed_entry%3A%3A%5Btype%5D&labels=documentation&body=Documentation+under+heading+%22web_seed_entry%3A%3A%5Btype%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> |
160 | <dt>type</dt> | 160 | <dt>type</dt> |
161 | <dd>The·type·of·web·seed·(see·<a·class="reference·external"·href="reference- | 161 | <dd>The·type·of·web·seed·(see·<a·class="reference·external"·href="reference-Bdecoding.html#type_t">type_t</a>)</dd> |
162 | </dl> | 162 | </dl> |
163 | <a·name="load_torrent_limits"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+load_torrent_limits&labels=documentation&body=Documentation+under+heading+%22class+load_torrent_limits%22+could+be+improved">report·issue</a>]</span></div> | 163 | <a·name="load_torrent_limits"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+load_torrent_limits&labels=documentation&body=Documentation+under+heading+%22class+load_torrent_limits%22+could+be+improved">report·issue</a>]</span></div> |
164 | </div> | 164 | </div> |
165 | <div·class="section"·id="load-torrent-limits"> | 165 | <div·class="section"·id="load-torrent-limits"> |
166 | <h1>load_torrent_limits</h1> | 166 | <h1>load_torrent_limits</h1> |
167 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/torrent_info.hpp">libtorrent/torrent_info.hpp</a>"</p> | 167 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/torrent_info.hpp">libtorrent/torrent_info.hpp</a>"</p> |
168 | <p>this·object·holds·configuration·options·for·limits·to·use·when·loading | 168 | <p>this·object·holds·configuration·options·for·limits·to·use·when·loading |
Offset 197, 69 lines modified | Offset 197, 69 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·"<a·class="reference·external"·href="include/libtorrent/torrent_info.hpp">libtorrent/torrent_info.hpp</a>"</p> | 199 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/torrent_info.hpp">libtorrent/torrent_info.hpp</a>"</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_info | 202 | class·torrent_info |
203 | { | 203 | { |
204 | ···<strong>torrent_info</strong>·(char·const*·buffer,·int·size); | ||
205 | ···<strong>torrent_info</strong>·(torrent_info·const&·t); | ||
206 | ···<strong>torrent_info</strong>·(char·const*·buffer,·int·size,·error_code&·ec); | ||
207 | ···<strong>torrent_info</strong>·(span<char·const>·buffer,·load_torrent_limits·const&·cfg,·from_span_t); | ||
208 | ···explicit·<strong>torrent_info</strong>·(span<char·const>·buffer,·from_span_t); | 204 | ···explicit·<strong>torrent_info</strong>·(span<char·const>·buffer,·from_span_t); |
209 | ··· | 205 | ···<strong>torrent_info</strong>·(span<char·const>·buffer,·load_torrent_limits·const&·cfg,·from_span_t); |
206 | ···<strong>torrent_info</strong>·(bdecode_node·const&·torrent_file,·load_torrent_limits·const&·cfg); | ||
210 | ···explicit·<strong>torrent_info</strong>·(std::string·const&·filename); | 207 | ···explicit·<strong>torrent_info</strong>·(std::string·const&·filename); |
211 | ···<strong>torrent_info</strong>·( | 208 | ···<strong>torrent_info</strong>·(torrent_info·const&·t); |
209 | ···<strong>torrent_info</strong>·(char·const*·buffer,·int·size); | ||
210 | ···explicit·<strong>torrent_info</strong>·(info_hash_t·const&·info_hash); | ||
212 | ···explicit·<strong>torrent_info</strong>·(bdecode_node·const&·torrent_file); | 211 | ···explicit·<strong>torrent_info</strong>·(bdecode_node·const&·torrent_file); |
212 | ···<strong>torrent_info</strong>·(std::string·const&·filename,·load_torrent_limits·const&·cfg); | ||
213 | ···<strong>torrent_info</strong>·(bdecode_node·const&·torrent_file,·error_code&·ec); | 213 | ···<strong>torrent_info</strong>·(bdecode_node·const&·torrent_file,·error_code&·ec); |
214 | ···<strong>torrent_info</strong>·(span<char·const>·buffer,·error_code&·ec,·from_span_t); | ||
214 | ···<strong>torrent_info</strong>·(std::string·const&·filename,·error_code&·ec); | 215 | ···<strong>torrent_info</strong>·(std::string·const&·filename,·error_code&·ec); |
216 | ···<strong>torrent_info</strong>·(char·const*·buffer,·int·size,·error_code&·ec); | ||
215 | ···<strong>torrent_info</strong>·(bdecode_node·const&·torrent_file,·load_torrent_limits·const&·cfg); | ||
216 | ···<strong>torrent_info</strong>·(std::string·const&·filename,·load_torrent_limits·const&·cfg); | ||
217 | ···<strong>~torrent_info</strong>·(); | 217 | ···<strong>~torrent_info</strong>·(); |
218 | ···file_storage·const&·<strong>orig_files</strong>·()·const; | ||
219 | ···file_storage·const&·<strong>files</strong>·()·const; | 218 | ···file_storage·const&·<strong>files</strong>·()·const; |
219 | ···file_storage·const&·<strong>orig_files</strong>·()·const; | ||
220 | ···void·<strong>rename_file</strong>·(file_index_t·index,·std::string·const&·new_filename); | 220 | ···void·<strong>rename_file</strong>·(file_index_t·index,·std::string·const&·new_filename); |
221 | ···void·<strong>remap_files</strong>·(file_storage·const&·f); | 221 | ···void·<strong>remap_files</strong>·(file_storage·const&·f); |
222 | ···void·<strong>add_tracker</strong>·(std::string·const&·url,·int·tier·=·0); | ||
223 | ···std::vector<announce_entry>·const&·<strong>trackers</strong>·()·const; | ||
222 | ···void·<strong>clear_trackers</strong>·(); | 224 | ···void·<strong>clear_trackers</strong>·(); |
223 | ···void·<strong>add_tracker</strong>·(std::string·const&·url,·int·tier | 225 | ···void·<strong>add_tracker</strong>·(std::string·const&·url,·int·tier |
224 | ······,·announce_entry::tracker_source·source); | 226 | ······,·announce_entry::tracker_source·source); |
225 | ···void·<strong>add_tracker</strong>·(std::string·const&·url,·int·tier·=·0); | ||
226 | ···std::vector<announce_entry>·const&·<strong>trackers</strong>·()·const; | ||
227 | ···std::vector<sha1_hash>·<strong>similar_torrents</strong>·()·const; | ||
228 | ···std::vector<std::string>·<strong>collections</strong>·()·const; | 227 | ···std::vector<std::string>·<strong>collections</strong>·()·const; |
228 | ···std::vector<sha1_hash>·<strong>similar_torrents</strong>·()·const; | ||
229 | ···std::vector<web_seed_entry>·const&·<strong>web_seeds</strong>·()·const; | ||
230 | ···void·<strong>set_web_seeds</strong>·(std::vector<web_seed_entry>·seeds); | ||
231 | ···void·<strong>add_url_seed</strong>·(std::string·const&·url | ||
232 | ······,·std::string·const&·ext_auth·=·std::string() | ||
233 | ······,·web_seed_entry::headers_t·const&·ext_headers·=·web_seed_entry::headers_t()); | ||
234 | ···void·<strong>add_http_seed</strong>·(std::string·const&·url | 229 | ···void·<strong>add_http_seed</strong>·(std::string·const&·url |
235 | ······,·std::string·const&·extern_auth·=·std::string() | 230 | ······,·std::string·const&·extern_auth·=·std::string() |
236 | ······,·web_seed_entry::headers_t·const&·extra_headers·=·web_seed_entry::headers_t()); | 231 | ······,·web_seed_entry::headers_t·const&·extra_headers·=·web_seed_entry::headers_t()); |
232 | ···void·<strong>add_url_seed</strong>·(std::string·const&·url | ||
233 | ······,·std::string·const&·ext_auth·=·std::string() | ||
234 | ······,·web_seed_entry::headers_t·const&·ext_headers·=·web_seed_entry::headers_t()); | ||
235 | ···std::vector<web_seed_entry>·const&·<strong>web_seeds</strong>·()·const; | ||
236 | ···void·<strong>set_web_seeds</strong>·(std::vector<web_seed_entry>·seeds); | ||
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 | ···piece_index_t·<strong>end_piece</strong>·()·const; |
242 | ···piece_index_t·<strong>last_piece</strong>·()·const; | ||
243 | ···index_range<piece_index_t>·<strong>piece_range</strong>·()·const; | 242 | ···index_range<piece_index_t>·<strong>piece_range</strong>·()·const; |
244 | ··· | 243 | ···piece_index_t·<strong>last_piece</strong>·()·const; |
245 | ···sha1_hash·<strong>info_hash</strong>·()·const·noexcept; | 244 | ···sha1_hash·<strong>info_hash</strong>·()·const·noexcept; |
246 | ··· | 245 | ···info_hash_t·const&·<strong>info_hashes</strong>·()·const; |
247 | ···bool·<strong>v1</strong>·()·const; | 246 | ···bool·<strong>v1</strong>·()·const; |
247 | ···bool·<strong>v2</strong>·()·const; | ||
248 | ···int·<strong>num_files</strong>·()·const; | 248 | ···int·<strong>num_files</strong>·()·const; |
249 | ···std::vector<file_slice>·<strong>map_block</strong>·(piece_index_t·const·piece | 249 | ···std::vector<file_slice>·<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; |
251 | ···peer_request·<strong>map_file</strong>·(file_index_t·const·file,·std::int64_t·offset,·int·size)·const; | 251 | ···peer_request·<strong>map_file</strong>·(file_index_t·const·file,·std::int64_t·offset,·int·size)·const; |
252 | ···string_view·<strong>ssl_cert</strong>·()·const; | 252 | ···string_view·<strong>ssl_cert</strong>·()·const; |
253 | ···bool·<strong>is_valid</strong>·()·const; | 253 | ···bool·<strong>is_valid</strong>·()·const; |
254 | ···bool·<strong>priv</strong>·()·const; | 254 | ···bool·<strong>priv</strong>·()·const; |
255 | ···bool·<strong>is_i2p</strong>·()·const; | 255 | ···bool·<strong>is_i2p</strong>·()·const; |
256 | ···int·<strong>piece_size</strong>·(piece_index_t·index)·const; | 256 | ···int·<strong>piece_size</strong>·(piece_index_t·index)·const; |
257 | ···sha1_hash·<strong>hash_for_piece</strong>·(piece_index_t·index)·const; | ||
258 | ···char·const*·<strong>hash_for_piece_ptr</strong>·(piece_index_t·const·index)·const; | 257 | ···char·const*·<strong>hash_for_piece_ptr</strong>·(piece_index_t·const·index)·const; |
258 | ···sha1_hash·<strong>hash_for_piece</strong>·(piece_index_t·index)·const; | ||
259 | ···bool·<strong>is_loaded</strong>·()·const; | 259 | ···bool·<strong>is_loaded</strong>·()·const; |
260 | ···const·std::string&·<strong>name</strong>·()·const; | 260 | ···const·std::string&·<strong>name</strong>·()·const; |
261 | ···std::time_t·<strong>creation_date</strong>·()·const; | 261 | ···std::time_t·<strong>creation_date</strong>·()·const; |
262 | ···const·std::string&·<strong>creator</strong>·()·const; | 262 | ···const·std::string&·<strong>creator</strong>·()·const; |
263 | ···const·std::string&·<strong>comment</strong>·()·const; | 263 | ···const·std::string&·<strong>comment</strong>·()·const; |
264 | ···std::vector<std::pair<std::string,·int>>·const&·<strong>nodes</strong>·()·const; | 264 | ···std::vector<std::pair<std::string,·int>>·const&·<strong>nodes</strong>·()·const; |
265 | ···void·<strong>add_node</strong>·(std::pair<std::string,·int>·const&·node); | 265 | ···void·<strong>add_node</strong>·(std::pair<std::string,·int>·const&·node); |
Max diff block lines reached; 21734/32992 bytes (65.88%) of diff not shown. |
Offset 10, 23 lines modified | Offset 10, 23 lines modified | ||
10 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8s | 10 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8s |
11 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o | 11 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o |
12 | ··········o·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8) | 12 | ··········o·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8) |
13 | ··········o·_\x8~_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8) | 13 | ··········o·_\x8~_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8) |
14 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8)_\x8·_\x8o_\x8r_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 14 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8)_\x8·_\x8o_\x8r_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
15 | ··········o·_\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 15 | ··········o·_\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
16 | ··········o·_\x8r_\x8e_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 16 | ··········o·_\x8r_\x8e_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
17 | ··········o·_\x8a_. | 17 | ··········o·_\x8t_.r_.a_.c_.k_.e_.r_.s_.(_.)_.·_.c_.l_.e_.a_.r_.__.t_.r_.a_.c_.k_.e_.r_.s_.(_.)_.·_.a_.d_.d_.__.t_.r_.a_.c_.k_.e_.r_\x8(_\x8) |
18 | ··········o·_\x8c_\x8o_\x8l_\x8l_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8(_\x8)_\x8·_\x8s_\x8i_\x8m_\x8i_\x8l_\x8a_\x8r_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8s_\x8(_\x8) | 18 | ··········o·_\x8c_\x8o_\x8l_\x8l_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8(_\x8)_\x8·_\x8s_\x8i_\x8m_\x8i_\x8l_\x8a_\x8r_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8s_\x8(_\x8) |
19 | ··········o·_\x8 | 19 | ··········o·_\x8s_.e_.t_.__.w_.e_.b_.__.s_.e_.e_.d_.s_.(_.)_.·_.a_.d_.d_.__.h_.t_.t_.p_.__.s_.e_.e_.d_.(_.)_.·_.a_.d_.d_.__.u_.r_.l_.__.s_.e_.e_.d_\x8(_\x8)_\x8·_\x8w_\x8e_\x8b_\x8__\x8s_\x8e_\x8e_\x8d_\x8s_\x8(_\x8) |
20 | ··········o·_\x8t_\x8o_\x8t_\x8a_\x8l_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | 20 | ··········o·_\x8t_\x8o_\x8t_\x8a_\x8l_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) |
21 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8)_\x8·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8) | 21 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8)_\x8·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8) |
22 | ··········o·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8__\x8p_\x8e_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | 22 | ··········o·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8__\x8p_\x8e_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
23 | ··········o·_\x8 | 23 | ··········o·_\x8e_.n_.d_.__.p_.i_.e_.c_.e_.(_.)_.·_.p_.i_.e_.c_.e_.__.r_.a_.n_.g_.e_.(_.)_.·_.l_.a_.s_.t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
24 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_.)_.·_.i_.n_.f_.o_.__.h_.a_.s_.h | 24 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_.s_.(_.)_.·_.i_.n_.f_.o_.__.h_.a_.s_.h_\x8(_\x8) |
25 | ··········o·_\x8v_\x8 | 25 | ··········o·_\x8v_\x82_.(_.)_.·_.v_.1_\x8(_\x8) |
26 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 26 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
27 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8(_\x8) | 27 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8(_\x8) |
28 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 28 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
29 | ··········o·_\x8s_\x8s_\x8l_\x8__\x8c_\x8e_\x8r_\x8t_\x8(_\x8) | 29 | ··········o·_\x8s_\x8s_\x8l_\x8__\x8c_\x8e_\x8r_\x8t_\x8(_\x8) |
30 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) | 30 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) |
31 | ··········o·_\x8p_\x8r_\x8i_\x8v_\x8(_\x8) | 31 | ··········o·_\x8p_\x8r_\x8i_\x8v_\x8(_\x8) |
32 | ··········o·_\x8i_\x8s_\x8__\x8i_\x82_\x8p_\x8(_\x8) | 32 | ··········o·_\x8i_\x8s_\x8__\x8i_\x82_\x8p_\x8(_\x8) |
Offset 120, 74 lines modified | Offset 120, 74 lines modified | ||
120 | ······the·max·number·of·bdecode·tokens | 120 | ······the·max·number·of·bdecode·tokens |
121 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 121 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
122 | *\x8**\x8**\x8**\x8**\x8**\x8*·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* | 122 | *\x8**\x8**\x8**\x8**\x8**\x8*·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·*\x8**\x8**\x8**\x8**\x8**\x8* |
123 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8._\x8h_\x8p_\x8p" | 123 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8._\x8h_\x8p_\x8p" |
124 | the·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o·class·holds·the·information·found·in·a·.torrent·file. | 124 | the·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o·class·holds·the·information·found·in·a·.torrent·file. |
125 | class·torrent_info | 125 | class·torrent_info |
126 | { | 126 | { |
127 | ···t.to.or.rr.re.en.nt.t_._i.in.nf.fo.o·(char·const | 127 | ···explicit·t.to.or.rr.re.en.nt.t_._i.in.nf.fo.o·(span<char·const>·buffer,·from_span_t); |
128 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(torrent_info·const&·t); | ||
129 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(char·const*·buffer,·int·size,·error_code&·ec); | ||
130 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(span<char·const>·buffer,·load_torrent_limits·const&·cfg, | 128 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(span<char·const>·buffer,·load_torrent_limits·const&·cfg, |
131 | from_span_t); | 129 | from_span_t); |
132 | ···explicit·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(span<char·const>·buffer,·from_span_t); | ||
133 | ··· | 130 | ···t.to.or.rr.re.en.nt.t_._i.in.nf.fo.o·(bdecode_node·const&·torrent_file,·load_torrent_limits·const& |
131 | cfg); | ||
134 | ···explicit·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(std::string·const&·filename); | 132 | ···explicit·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(std::string·const&·filename); |
133 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(torrent_info·const&·t); | ||
135 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·( | 134 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(char·const*·buffer,·int·size); |
135 | ···explicit·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(info_hash_t·const&·info_hash); | ||
136 | ···explicit·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(bdecode_node·const&·torrent_file); | 136 | ···explicit·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(bdecode_node·const&·torrent_file); |
137 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(std::string·const&·filename,·load_torrent_limits·const&·cfg); | ||
137 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(bdecode_node·const&·torrent_file,·error_code&·ec); | 138 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(bdecode_node·const&·torrent_file,·error_code&·ec); |
139 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(span<char·const>·buffer,·error_code&·ec,·from_span_t); | ||
138 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(std::string·const&·filename,·error_code&·ec); | 140 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(std::string·const&·filename,·error_code&·ec); |
141 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(char·const*·buffer,·int·size,·error_code&·ec); | ||
139 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(bdecode_node·const&·torrent_file,·load_torrent_limits·const& | ||
140 | cfg); | ||
141 | ···t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(std::string·const&·filename,·load_torrent_limits·const&·cfg); | ||
142 | ···~\x8~t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(); | 142 | ···~\x8~t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(); |
143 | ···file_storage·const&·o\x8or\x8ri\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8es\x8s·()·const; | ||
144 | ···file_storage·const&·f\x8fi\x8il\x8le\x8es\x8s·()·const; | 143 | ···file_storage·const&·f\x8fi\x8il\x8le\x8es\x8s·()·const; |
144 | ···file_storage·const&·o\x8or\x8ri\x8ig\x8g_\x8_f\x8fi\x8il\x8le\x8es\x8s·()·const; | ||
145 | ···void·r\x8re\x8en\x8na\x8am\x8me\x8e_\x8_f\x8fi\x8il\x8le\x8e·(file_index_t·index,·std::string·const&·new_filename); | 145 | ···void·r\x8re\x8en\x8na\x8am\x8me\x8e_\x8_f\x8fi\x8il\x8le\x8e·(file_index_t·index,·std::string·const&·new_filename); |
146 | ···void·r\x8re\x8em\x8ma\x8ap\x8p_\x8_f\x8fi\x8il\x8le\x8es\x8s·(file_storage·const&·f); | 146 | ···void·r\x8re\x8em\x8ma\x8ap\x8p_\x8_f\x8fi\x8il\x8le\x8es\x8s·(file_storage·const&·f); |
147 | ···void·a\x8ad\x8dd\x8d_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r·(std::string·const&·url,·int·tier·=·0); | ||
148 | ···std::vector<announce_entry>·const&·t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·()·const; | ||
147 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·(); | 149 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·(); |
148 | ···void·a\x8ad\x8dd\x8d_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r·(std::string·const&·url,·int·tier | 150 | ···void·a\x8ad\x8dd\x8d_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r·(std::string·const&·url,·int·tier |
149 | ······,·announce_entry::tracker_source·source); | 151 | ······,·announce_entry::tracker_source·source); |
150 | ···void·a\x8ad\x8dd\x8d_\x8_t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r·(std::string·const&·url,·int·tier·=·0); | ||
151 | ···std::vector<announce_entry>·const&·t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8rs\x8s·()·const; | ||
152 | ···std::vector<sha1_hash>·s\x8si\x8im\x8mi\x8il\x8la\x8ar\x8r_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8ts\x8s·()·const; | ||
153 | ···std::vector<std::string>·c\x8co\x8ol\x8ll\x8le\x8ec\x8ct\x8ti\x8io\x8on\x8ns\x8s·()·const; | 152 | ···std::vector<std::string>·c\x8co\x8ol\x8ll\x8le\x8ec\x8ct\x8ti\x8io\x8on\x8ns\x8s·()·const; |
153 | ···std::vector<sha1_hash>·s\x8si\x8im\x8mi\x8il\x8la\x8ar\x8r_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8ts\x8s·()·const; | ||
154 | ···std::vector<web_seed_entry>·const&·w\x8we\x8eb\x8b_\x8_s\x8se\x8ee\x8ed\x8ds\x8s·()·const; | ||
155 | ···void·s\x8se\x8et\x8t_\x8_w\x8we\x8eb\x8b_\x8_s\x8se\x8ee\x8ed\x8ds\x8s·(std::vector<web_seed_entry>·seeds); | ||
156 | ···void·a\x8ad\x8dd\x8d_\x8_u\x8ur\x8rl\x8l_\x8_s\x8se\x8ee\x8ed\x8d·(std::string·const&·url | ||
157 | ······,·std::string·const&·ext_auth·=·std::string() | ||
158 | ······,·web_seed_entry::headers_t·const&·ext_headers·=·web_seed_entry:: | ||
159 | headers_t()); | ||
160 | ···void·a\x8ad\x8dd\x8d_\x8_h\x8ht\x8tt\x8tp\x8p_\x8_s\x8se\x8ee\x8ed\x8d·(std::string·const&·url | 154 | ···void·a\x8ad\x8dd\x8d_\x8_h\x8ht\x8tt\x8tp\x8p_\x8_s\x8se\x8ee\x8ed\x8d·(std::string·const&·url |
161 | ······,·std::string·const&·extern_auth·=·std::string() | 155 | ······,·std::string·const&·extern_auth·=·std::string() |
162 | ······,·web_seed_entry::headers_t·const&·extra_headers·=·web_seed_entry:: | 156 | ······,·web_seed_entry::headers_t·const&·extra_headers·=·web_seed_entry:: |
163 | headers_t()); | 157 | headers_t()); |
158 | ···void·a\x8ad\x8dd\x8d_\x8_u\x8ur\x8rl\x8l_\x8_s\x8se\x8ee\x8ed\x8d·(std::string·const&·url | ||
159 | ······,·std::string·const&·ext_auth·=·std::string() | ||
160 | ······,·web_seed_entry::headers_t·const&·ext_headers·=·web_seed_entry:: | ||
161 | headers_t()); | ||
162 | ···std::vector<web_seed_entry>·const&·w\x8we\x8eb\x8b_\x8_s\x8se\x8ee\x8ed\x8ds\x8s·()·const; | ||
163 | ···void·s\x8se\x8et\x8t_\x8_w\x8we\x8eb\x8b_\x8_s\x8se\x8ee\x8ed\x8ds\x8s·(std::vector<web_seed_entry>·seeds); | ||
164 | ···std::int64_t·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e·()·const; | 164 | ···std::int64_t·t\x8to\x8ot\x8ta\x8al\x8l_\x8_s\x8si\x8iz\x8ze\x8e·()·const; |
165 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·()·const; | ||
166 | ···int·n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·()·const; | 165 | ···int·n\x8nu\x8um\x8m_\x8_p\x8pi\x8ie\x8ec\x8ce\x8es\x8s·()·const; |
166 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8le\x8en\x8ng\x8gt\x8th\x8h·()·const; | ||
167 | ···int·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s_\x8_p\x8pe\x8er\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; | 167 | ···int·b\x8bl\x8lo\x8oc\x8ck\x8ks\x8s_\x8_p\x8pe\x8er\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; |
168 | ···piece_index_t·e\x8en\x8nd\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; | 168 | ···piece_index_t·e\x8en\x8nd\x8d_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; |
169 | ···piece_index_t·l\x8la\x8as\x8st\x8t_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·()·const; | ||
170 | ···index_range<piece_index_t>·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const; | 169 | ···index_range<piece_index_t>·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_r\x8ra\x8an\x8ng\x8ge\x8e·()·const; |
171 | ··· | 170 | ···piece_index_t·l.la.as.st.t_._p.pi.ie.ec.ce.e·()·const; |
172 | ···sha1_hash·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h·()·const·noexcept; | 171 | ···sha1_hash·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h·()·const·noexcept; |
173 | ··· | 172 | ···info_hash_t·const&·i.in.nf.fo.o_._h.ha.as.sh.he.es.s·()·const; |
174 | ···bool·v\x8v1\x81·()·const; | 173 | ···bool·v\x8v1\x81·()·const; |
174 | ···bool·v\x8v2\x82·()·const; | ||
175 | ···int·n\x8nu\x8um\x8m_\x8_f\x8fi\x8il\x8le\x8es\x8s·()·const; | 175 | ···int·n\x8nu\x8um\x8m_\x8_f\x8fi\x8il\x8le\x8es\x8s·()·const; |
176 | ···std::vector<file_slice>·m\x8ma\x8ap\x8p_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·(piece_index_t·const·piece | 176 | ···std::vector<file_slice>·m\x8ma\x8ap\x8p_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·(piece_index_t·const·piece |
177 | ······,·std::int64_t·offset,·int·size)·const; | 177 | ······,·std::int64_t·offset,·int·size)·const; |
178 | ···peer_request·m\x8ma\x8ap\x8p_\x8_f\x8fi\x8il\x8le\x8e·(file_index_t·const·file,·std::int64_t·offset,·int | 178 | ···peer_request·m\x8ma\x8ap\x8p_\x8_f\x8fi\x8il\x8le\x8e·(file_index_t·const·file,·std::int64_t·offset,·int |
179 | size)·const; | 179 | size)·const; |
180 | ···string_view·s\x8ss\x8sl\x8l_\x8_c\x8ce\x8er\x8rt\x8t·()·const; | 180 | ···string_view·s\x8ss\x8sl\x8l_\x8_c\x8ce\x8er\x8rt\x8t·()·const; |
181 | ···bool·i\x8is\x8s_\x8_v\x8va\x8al\x8li\x8id\x8d·()·const; | 181 | ···bool·i\x8is\x8s_\x8_v\x8va\x8al\x8li\x8id\x8d·()·const; |
182 | ···bool·p\x8pr\x8ri\x8iv\x8v·()·const; | 182 | ···bool·p\x8pr\x8ri\x8iv\x8v·()·const; |
183 | ···bool·i\x8is\x8s_\x8_i\x8i2\x82p\x8p·()·const; | 183 | ···bool·i\x8is\x8s_\x8_i\x8i2\x82p\x8p·()·const; |
184 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s\x8si\x8iz\x8ze\x8e·(piece_index_t·index)·const; | 184 | ···int·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_s\x8si\x8iz\x8ze\x8e·(piece_index_t·index)·const; |
185 | ···sha1_hash·h\x8ha\x8as\x8sh\x8h_\x8_f\x8fo\x8or\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(piece_index_t·index)·const; | ||
186 | ···char·const*·h\x8ha\x8as\x8sh\x8h_\x8_f\x8fo\x8or\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_p\x8pt\x8tr\x8r·(piece_index_t·const·index)·const; | 185 | ···char·const*·h\x8ha\x8as\x8sh\x8h_\x8_f\x8fo\x8or\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_p\x8pt\x8tr\x8r·(piece_index_t·const·index)·const; |
186 | ···sha1_hash·h\x8ha\x8as\x8sh\x8h_\x8_f\x8fo\x8or\x8r_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e·(piece_index_t·index)·const; | ||
187 | ···bool·i\x8is\x8s_\x8_l\x8lo\x8oa\x8ad\x8de\x8ed\x8d·()·const; | 187 | ···bool·i\x8is\x8s_\x8_l\x8lo\x8oa\x8ad\x8de\x8ed\x8d·()·const; |
188 | ···const·std::string&·n\x8na\x8am\x8me\x8e·()·const; | 188 | ···const·std::string&·n\x8na\x8am\x8me\x8e·()·const; |
189 | ···std::time_t·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n_\x8_d\x8da\x8at\x8te\x8e·()·const; | 189 | ···std::time_t·c\x8cr\x8re\x8ea\x8at\x8ti\x8io\x8on\x8n_\x8_d\x8da\x8at\x8te\x8e·()·const; |
190 | ···const·std::string&·c\x8cr\x8re\x8ea\x8at\x8to\x8or\x8r·()·const; | 190 | ···const·std::string&·c\x8cr\x8re\x8ea\x8at\x8to\x8or\x8r·()·const; |
191 | ···const·std::string&·c\x8co\x8om\x8mm\x8me\x8en\x8nt\x8t·()·const; | 191 | ···const·std::string&·c\x8co\x8om\x8mm\x8me\x8en\x8nt\x8t·()·const; |
192 | ···std::vector<std::pair<std::string,·int>>·const&·n\x8no\x8od\x8de\x8es\x8s·()·const; | 192 | ···std::vector<std::pair<std::string,·int>>·const&·n\x8no\x8od\x8de\x8es\x8s·()·const; |
193 | ···void·a\x8ad\x8dd\x8d_\x8_n\x8no\x8od\x8de\x8e·(std::pair<std::string,·int>·const&·node); | 193 | ···void·a\x8ad\x8dd\x8d_\x8_n\x8no\x8od\x8de\x8e·(std::pair<std::string,·int>·const&·node); |
Offset 196, 29 lines modified | Offset 196, 29 lines modified | ||
196 | ···bdecode_node·i\x8in\x8nf\x8fo\x8o·(char·const*·key)·const; | 196 | ···bdecode_node·i\x8in\x8nf\x8fo\x8o·(char·const*·key)·const; |
197 | ···span<char·const>·i\x8in\x8nf\x8fo\x8o_\x8_s\x8se\x8ec\x8ct\x8ti\x8io\x8on\x8n·()·const; | 197 | ···span<char·const>·i\x8in\x8nf\x8fo\x8o_\x8_s\x8se\x8ec\x8ct\x8ti\x8io\x8on\x8n·()·const; |
198 | ···span<char·const>·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8la\x8ay\x8ye\x8er\x8r·(file_index_t)·const; | 198 | ···span<char·const>·p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8la\x8ay\x8ye\x8er\x8r·(file_index_t)·const; |
199 | ···void·f\x8fr\x8re\x8ee\x8e_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8la\x8ay\x8ye\x8er\x8rs\x8s·(); | 199 | ···void·f\x8fr\x8re\x8ee\x8e_\x8_p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_l\x8la\x8ay\x8ye\x8er\x8rs\x8s·(); |
200 | }; | 200 | }; |
201 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 201 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
202 | *\x8**\x8**\x8**\x8**\x8*·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 202 | *\x8**\x8**\x8**\x8**\x8*·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
203 | t.to.or.rr.re.en.nt.t_._i.in.nf.fo.o·(char·const | 203 | explicit·t.to.or.rr.re.en.nt.t_._i.in.nf.fo.o·(span<char·const>·buffer,·from_span_t); |
204 | t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_i\x8in\x8nf\x8fo\x8o·(torrent_info·const&·t); | ||
Max diff block lines reached; 12327/21749 bytes (56.68%) of diff not shown. |
Offset 31, 15 lines modified | Offset 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=()· | 38 | <li><a·class="reference·internal"·href="#operator-announce-entry-announce-entry"·id="toc-entry-4">operator=()·announce_entry()·~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 131, 18 lines modified | Offset 131, 18 lines modified | ||
131 | <h1>announce_entry</h1> | 131 | <h1>announce_entry</h1> |
132 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/announce_entry.hpp">libtorrent/announce_entry.hpp</a>"</p> | 132 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/announce_entry.hpp">libtorrent/announce_entry.hpp</a>"</p> |
133 | <p>this·class·holds·information·about·one·bittorrent·tracker,·as·it | 133 | <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_entry | 136 | struct·announce_entry |
137 | { | 137 | { |
138 | ···announce_entry&·<strong>operator=</strong>·(announce_entry·const&)·&; | ||
138 | ···<strong>announce_entry</strong>·(announce_entry·const&); | 139 | ···<strong>announce_entry</strong>·(announce_entry·const&); |
139 | ···<strong>announce_entry</strong>·(); | ||
140 | ···<strong>~announce_entry</strong>·(); | 140 | ···<strong>~announce_entry</strong>·(); |
141 | ··· | 141 | ···<strong>announce_entry</strong>·(); |
142 | ···explicit·<strong>announce_entry</strong>·(string_view·u); | 142 | ···explicit·<strong>announce_entry</strong>·(string_view·u); |
143 | ···enum·tracker_source | 143 | ···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, |
Offset 155, 22 lines modified | Offset 155, 22 lines modified | ||
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="operator=()"></a> | 161 | <a·name="operator=()"></a> |
162 | <a·name=" | 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+ | 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+headi[·...·truncated·by·diffoscope;·len:·69,·SHA:·6981a2c6b71157d749891e6c7b53f0e7e310497efbbf219f9f26168be0ab2695·...·]announce_entry%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="operator-announce-entry-announce-entry"> |
164 | <h2>operator=()· | 164 | <h2>operator=()·announce_entry()·~announce_entry()</h2> |
165 | <pre·class="literal-block"> | 165 | <pre·class="literal-block"> |
166 | announce_entry&·<strong>operator=</strong>·(announce_entry·const&)·&; | ||
166 | <strong>announce_entry</strong>·(announce_entry·const&); | 167 | <strong>announce_entry</strong>·(announce_entry·const&); |
167 | <strong>announce_entry</strong>·(); | ||
168 | <strong>~announce_entry</strong>·(); | 168 | <strong>~announce_entry</strong>·(); |
169 | 169 | <strong>announce_entry</strong>·(); | |
170 | explicit·<strong>announce_entry</strong>·(string_view·u); | 170 | explicit·<strong>announce_entry</strong>·(string_view·u); |
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·"<a·class="reference·external"·href="include/libtorrent/announce_entry.hpp">libtorrent/announce_entry.hpp</a>"</p> | 176 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/announce_entry.hpp">libtorrent/announce_entry.hpp</a>"</p> |
Offset 189, 15 lines modified | Offset 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- | 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> |
Offset 2, 15 lines modified | Offset 2, 15 lines modified | ||
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h | 6 | ····*·_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h |
7 | ····*·_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t | 7 | ····*·_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t |
8 | ····*·_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | 8 | ····*·_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y |
9 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8)_\x8·_\x8 | 9 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8)_\x8·_\x8a_.n_.n_.o_.u_.n_.c_.e_.__.e_.n_.t_.r_.y_.(_.)_.·_.~_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) |
10 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e | 10 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8s_\x8o_\x8u_\x8r_\x8c_\x8e |
11 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 11 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
12 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_i\x8in\x8nf\x8fo\x8oh\x8ha\x8as\x8sh\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* | 12 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_i\x8in\x8nf\x8fo\x8oh\x8ha\x8as\x8sh\x8h·*\x8**\x8**\x8**\x8**\x8**\x8* |
13 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8._\x8h_\x8p_\x8p" | 13 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8._\x8h_\x8p_\x8p" |
14 | struct·announce_infohash | 14 | struct·announce_infohash |
15 | { | 15 | { |
16 | ···std::string·message; | 16 | ···std::string·message; |
Offset 78, 18 lines modified | Offset 78, 18 lines modified | ||
78 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 78 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
79 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* | 79 | *\x8**\x8**\x8**\x8**\x8**\x8*·a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·*\x8**\x8**\x8**\x8**\x8**\x8* |
80 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8._\x8h_\x8p_\x8p" | 80 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8._\x8h_\x8p_\x8p" |
81 | this·class·holds·information·about·one·bittorrent·tracker,·as·it·relates·to·a | 81 | this·class·holds·information·about·one·bittorrent·tracker,·as·it·relates·to·a |
82 | specific·torrent. | 82 | specific·torrent. |
83 | struct·announce_entry | 83 | struct·announce_entry |
84 | { | 84 | { |
85 | ···announce_entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(announce_entry·const&)·&; | ||
85 | ···a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(announce_entry·const&); | 86 | ···a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(announce_entry·const&); |
86 | ···a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(); | ||
87 | ···~\x8~a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(); | 87 | ···~\x8~a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(); |
88 | ···a | 88 | ···a.an.nn.no.ou.un.nc.ce.e_._e.en.nt.tr.ry.y·(); |
89 | ···explicit·a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(string_view·u); | 89 | ···explicit·a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(string_view·u); |
90 | ···enum·tracker_source | 90 | ···enum·tracker_source |
91 | ···{ | 91 | ···{ |
92 | ······source_torrent, | 92 | ······source_torrent, |
93 | ······source_client, | 93 | ······source_client, |
94 | ······source_magnet_link, | 94 | ······source_magnet_link, |
Offset 101, 19 lines modified | Offset 101, 19 lines modified | ||
101 | ···std::vector<announce_endpoint>·endpoints; | 101 | ···std::vector<announce_endpoint>·endpoints; |
102 | ···std::uint8_t·t\x8ti\x8ie\x8er\x8r··=·0; | 102 | ···std::uint8_t·t\x8ti\x8ie\x8er\x8r··=·0; |
103 | ···std::uint8_t·f\x8fa\x8ai\x8il\x8l_\x8_l\x8li\x8im\x8mi\x8it\x8t··=·0; | 103 | ···std::uint8_t·f\x8fa\x8ai\x8il\x8l_\x8_l\x8li\x8im\x8mi\x8it\x8t··=·0; |
104 | ···std::uint8_t·source:4; | 104 | ···std::uint8_t·source:4; |
105 | ···bool·verified:1; | 105 | ···bool·verified:1; |
106 | }; | 106 | }; |
107 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 107 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
108 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)· | 108 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·a.an.nn.no.ou.un.nc.ce.e_._e.en.nt.tr.ry.y(.().)·~.~a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
109 | announce_entry&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(announce_entry·const&)·&; | ||
109 | a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(announce_entry·const&); | 110 | a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(announce_entry·const&); |
110 | a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(); | ||
111 | ~\x8~a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(); | 111 | ~\x8~a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(); |
112 | a | 112 | a.an.nn.no.ou.un.nc.ce.e_._e.en.nt.tr.ry.y·(); |
113 | explicit·a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(string_view·u); | 113 | explicit·a\x8an\x8nn\x8no\x8ou\x8un\x8nc\x8ce\x8e_\x8_e\x8en\x8nt\x8tr\x8ry\x8y·(string_view·u); |
114 | constructs·a·tracker·announce·_\x8e_\x8n_\x8t_\x8r_\x8y·with·u·as·the·URL. | 114 | constructs·a·tracker·announce·_\x8e_\x8n_\x8t_\x8r_\x8y·with·u·as·the·URL. |
115 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 115 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
116 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nu\x8um\x8m·t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* | 116 | *\x8**\x8**\x8**\x8**\x8*·e\x8en\x8nu\x8um\x8m·t\x8tr\x8ra\x8ac\x8ck\x8ke\x8er\x8r_\x8_s\x8so\x8ou\x8ur\x8rc\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8* |
117 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8._\x8h_\x8p_\x8p" | 117 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8._\x8h_\x8p_\x8p" |
118 | ·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8· | 118 | ·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8· |
119 | |_\x8n\x8n_\x8a\x8a_\x8m\x8m_\x8e\x8e_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8v\x8v_\x8a\x8a_\x8l\x8l_\x8u\x8u_\x8e\x8e_\x8|_\x8d\x8d_\x8e\x8e_\x8s\x8s_\x8c\x8c_\x8r\x8r_\x8i\x8i_\x8p\x8p_\x8t\x8t_\x8i\x8i_\x8o\x8o_\x8n\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 119 | |_\x8n\x8n_\x8a\x8a_\x8m\x8m_\x8e\x8e_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8v\x8v_\x8a\x8a_\x8l\x8l_\x8u\x8u_\x8e\x8e_\x8|_\x8d\x8d_\x8e\x8e_\x8s\x8s_\x8c\x8c_\x8r\x8r_\x8i\x8i_\x8p\x8p_\x8t\x8t_\x8i\x8i_\x8o\x8o_\x8n\x8n_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
Offset 31, 15 lines modified | Offset 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="#bitfield"·id="toc-entry-1">bitfield</a><ul> | 35 | <li><a·class="reference·internal"·href="#bitfield"·id="toc-entry-1">bitfield</a><ul> |
36 | <li><a·class="reference·internal"·href="#bitfield-1"·id="toc-entry-2">bitfield()</a></li> | 36 | <li><a·class="reference·internal"·href="#bitfield-1"·id="toc-entry-2">bitfield()</a></li> |
37 | <li><a·class="reference·internal"·href="#assign"·id="toc-entry-3">assign()</a></li> | 37 | <li><a·class="reference·internal"·href="#assign"·id="toc-entry-3">assign()</a></li> |
38 | <li><a·class="reference·internal"·href="# | 38 | <li><a·class="reference·internal"·href="#get-bit-operator"·id="toc-entry-4">get_bit()·operator[]()</a></li> |
39 | <li><a·class="reference·internal"·href="#clear-bit-set-bit"·id="toc-entry-5">clear_bit()·set_bit()</a></li> | 39 | <li><a·class="reference·internal"·href="#clear-bit-set-bit"·id="toc-entry-5">clear_bit()·set_bit()</a></li> |
40 | <li><a·class="reference·internal"·href="#all-set"·id="toc-entry-6">all_set()</a></li> | 40 | <li><a·class="reference·internal"·href="#all-set"·id="toc-entry-6">all_set()</a></li> |
41 | <li><a·class="reference·internal"·href="#none-set"·id="toc-entry-7">none_set()</a></li> | 41 | <li><a·class="reference·internal"·href="#none-set"·id="toc-entry-7">none_set()</a></li> |
42 | <li><a·class="reference·internal"·href="#size"·id="toc-entry-8">size()</a></li> | 42 | <li><a·class="reference·internal"·href="#size"·id="toc-entry-8">size()</a></li> |
43 | <li><a·class="reference·internal"·href="#num-words"·id="toc-entry-9">num_words()</a></li> | 43 | <li><a·class="reference·internal"·href="#num-words"·id="toc-entry-9">num_words()</a></li> |
44 | <li><a·class="reference·internal"·href="#num-bytes"·id="toc-entry-10">num_bytes()</a></li> | 44 | <li><a·class="reference·internal"·href="#num-bytes"·id="toc-entry-10">num_bytes()</a></li> |
45 | <li><a·class="reference·internal"·href="#empty"·id="toc-entry-11">empty()</a></li> | 45 | <li><a·class="reference·internal"·href="#empty"·id="toc-entry-11">empty()</a></li> |
Offset 54, 15 lines modified | Offset 54, 15 lines modified | ||
54 | <li><a·class="reference·internal"·href="#hasher-operator"·id="toc-entry-18">hasher()·operator=()</a></li> | 54 | <li><a·class="reference·internal"·href="#hasher-operator"·id="toc-entry-18">hasher()·operator=()</a></li> |
55 | <li><a·class="reference·internal"·href="#update"·id="toc-entry-19">update()</a></li> | 55 | <li><a·class="reference·internal"·href="#update"·id="toc-entry-19">update()</a></li> |
56 | <li><a·class="reference·internal"·href="#final"·id="toc-entry-20">final()</a></li> | 56 | <li><a·class="reference·internal"·href="#final"·id="toc-entry-20">final()</a></li> |
57 | <li><a·class="reference·internal"·href="#reset"·id="toc-entry-21">reset()</a></li> | 57 | <li><a·class="reference·internal"·href="#reset"·id="toc-entry-21">reset()</a></li> |
58 | </ul> | 58 | </ul> |
59 | </li> | 59 | </li> |
60 | <li><a·class="reference·internal"·href="#hasher256"·id="toc-entry-22">hasher256</a><ul> | 60 | <li><a·class="reference·internal"·href="#hasher256"·id="toc-entry-22">hasher256</a><ul> |
61 | <li><a·class="reference·internal"·href="# | 61 | <li><a·class="reference·internal"·href="#operator-hasher256"·id="toc-entry-23">operator=()·hasher256()</a></li> |
62 | <li><a·class="reference·internal"·href="#update-1"·id="toc-entry-24">update()</a></li> | 62 | <li><a·class="reference·internal"·href="#update-1"·id="toc-entry-24">update()</a></li> |
63 | <li><a·class="reference·internal"·href="#final-1"·id="toc-entry-25">final()</a></li> | 63 | <li><a·class="reference·internal"·href="#final-1"·id="toc-entry-25">final()</a></li> |
64 | <li><a·class="reference·internal"·href="#reset-1"·id="toc-entry-26">reset()</a></li> | 64 | <li><a·class="reference·internal"·href="#reset-1"·id="toc-entry-26">reset()</a></li> |
65 | </ul> | 65 | </ul> |
66 | </li> | 66 | </li> |
67 | </ul> | 67 | </ul> |
68 | </div> | 68 | </div> |
Offset 70, 49 lines modified | Offset 70, 49 lines modified | ||
70 | <h1>bitfield</h1> | 70 | <h1>bitfield</h1> |
71 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/bitfield.hpp">libtorrent/bitfield.hpp</a>"</p> | 71 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/bitfield.hpp">libtorrent/bitfield.hpp</a>"</p> |
72 | <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> | 72 | <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> |
73 | in·a·heap·allocated·array.</p> | 73 | in·a·heap·allocated·array.</p> |
74 | <pre·class="literal-block"> | 74 | <pre·class="literal-block"> |
75 | struct·bitfield | 75 | struct·bitfield |
76 | { | 76 | { |
77 | ···<strong>bitfield</strong>·(bitfield&&·rhs)·noexcept·=·default; | ||
78 | ···<strong>bitfield</strong>·(int·bits,·bool·val); | ||
79 | ···<strong>bitfield</strong>·(bitfield·const&·rhs); | ||
80 | ···explicit·<strong>bitfield</strong>·(int·bits); | 77 | ···explicit·<strong>bitfield</strong>·(int·bits); |
81 | ···<strong>bitfield</strong>·()·noexcept·=·default; | 78 | ···<strong>bitfield</strong>·()·noexcept·=·default; |
79 | ···<strong>bitfield</strong>·(bitfield·const&·rhs); | ||
80 | ···<strong>bitfield</strong>·(bitfield&&·rhs)·noexcept·=·default; | ||
82 | ···<strong>bitfield</strong>·(char·const*·b,·int·bits); | 81 | ···<strong>bitfield</strong>·(char·const*·b,·int·bits); |
82 | ···<strong>bitfield</strong>·(int·bits,·bool·val); | ||
83 | ···void·<strong>assign</strong>·(char·const*·b,·int·const·bits); | 83 | ···void·<strong>assign</strong>·(char·const*·b,·int·const·bits); |
84 | ···bool·<strong>get_bit</strong>·(int·index)·const·noexcept; | ||
85 | ···bool·<strong>operator[]</strong>·(int·index)·const·noexcept; | 84 | ···bool·<strong>operator[]</strong>·(int·index)·const·noexcept; |
85 | ···bool·<strong>get_bit</strong>·(int·index)·const·noexcept; | ||
86 | ···void·<strong>clear_bit</strong>·(int·index)·noexcept; | 86 | ···void·<strong>clear_bit</strong>·(int·index)·noexcept; |
87 | ···void·<strong>set_bit</strong>·(int·index)·noexcept; | 87 | ···void·<strong>set_bit</strong>·(int·index)·noexcept; |
88 | ···bool·<strong>all_set</strong>·()·const·noexcept; | 88 | ···bool·<strong>all_set</strong>·()·const·noexcept; |
89 | ···bool·<strong>none_set</strong>·()·const·noexcept; | 89 | ···bool·<strong>none_set</strong>·()·const·noexcept; |
90 | ···int·<strong>size</strong>·()·const·noexcept; | 90 | ···int·<strong>size</strong>·()·const·noexcept; |
91 | ···int·<strong>num_words</strong>·()·const·noexcept; | 91 | ···int·<strong>num_words</strong>·()·const·noexcept; |
92 | ···int·<strong>num_bytes</strong>·()·const·noexcept; | 92 | ···int·<strong>num_bytes</strong>·()·const·noexcept; |
93 | ···bool·<strong>empty</strong>·()·const·noexcept; | 93 | ···bool·<strong>empty</strong>·()·const·noexcept; |
94 | ···char·const*·<strong>data</strong>·()·const·noexcept; | ||
95 | ···char*·<strong>data</strong>·()·noexcept; | 94 | ···char*·<strong>data</strong>·()·noexcept; |
95 | ···char·const*·<strong>data</strong>·()·const·noexcept; | ||
96 | ···void·<strong>swap</strong>·(bitfield&·rhs)·noexcept; | 96 | ···void·<strong>swap</strong>·(bitfield&·rhs)·noexcept; |
97 | ···int·<strong>count</strong>·()·const·noexcept; | 97 | ···int·<strong>count</strong>·()·const·noexcept; |
98 | ···int·<strong>find_first_set</strong>·()·const·noexcept; | 98 | ···int·<strong>find_first_set</strong>·()·const·noexcept; |
99 | ···int·<strong>find_last_clear</strong>·()·const·noexcept; | 99 | ···int·<strong>find_last_clear</strong>·()·const·noexcept; |
100 | ···bool·<strong>operator==</strong>·(lt::bitfield·const&·rhs)·const; | 100 | ···bool·<strong>operator==</strong>·(lt::bitfield·const&·rhs)·const; |
101 | }; | 101 | }; |
102 | </pre> | 102 | </pre> |
103 | <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"> | 103 | <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"> |
104 | <h2>bitfield()</h2> | 104 | <h2>bitfield()</h2> |
105 | <pre·class="literal-block"> | 105 | <pre·class="literal-block"> |
106 | <strong>bitfield</strong>·(bitfield&&·rhs)·noexcept·=·default; | ||
107 | <strong>bitfield</strong>·(int·bits,·bool·val); | ||
108 | <strong>bitfield</strong>·(bitfield·const&·rhs); | ||
109 | explicit·<strong>bitfield</strong>·(int·bits); | 106 | explicit·<strong>bitfield</strong>·(int·bits); |
110 | <strong>bitfield</strong>·()·noexcept·=·default; | 107 | <strong>bitfield</strong>·()·noexcept·=·default; |
108 | <strong>bitfield</strong>·(bitfield·const&·rhs); | ||
109 | <strong>bitfield</strong>·(bitfield&&·rhs)·noexcept·=·default; | ||
111 | <strong>bitfield</strong>·(char·const*·b,·int·bits); | 110 | <strong>bitfield</strong>·(char·const*·b,·int·bits); |
111 | <strong>bitfield</strong>·(int·bits,·bool·val); | ||
112 | </pre> | 112 | </pre> |
113 | <p>constructs·a·new·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>.·The·default·constructor·creates·an·empty | 113 | <p>constructs·a·new·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>.·The·default·constructor·creates·an·empty |
114 | <a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>.·<tt·class="docutils·literal">bits</tt>·is·the·size·of·the·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>·(specified·in·bits). | 114 | <a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>.·<tt·class="docutils·literal">bits</tt>·is·the·size·of·the·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>·(specified·in·bits). |
115 | <tt·class="docutils·literal">val</tt>·is·the·value·to·initialize·the·bits·to.·If·not·specified | 115 | <tt·class="docutils·literal">val</tt>·is·the·value·to·initialize·the·bits·to.·If·not·specified |
116 | all·bits·are·initialized·to·0.</p> | 116 | all·bits·are·initialized·to·0.</p> |
117 | <p>The·constructor·taking·a·pointer·<tt·class="docutils·literal">b</tt>·and·<tt·class="docutils·literal">bits</tt>·copies·a·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a> | 117 | <p>The·constructor·taking·a·pointer·<tt·class="docutils·literal">b</tt>·and·<tt·class="docutils·literal">bits</tt>·copies·a·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a> |
118 | from·the·specified·buffer,·and·<tt·class="docutils·literal">bits</tt>·number·of·bits·(rounded·up·to | 118 | from·the·specified·buffer,·and·<tt·class="docutils·literal">bits</tt>·number·of·bits·(rounded·up·to |
Offset 121, 21 lines modified | Offset 121, 21 lines modified | ||
121 | <div·class="section"·id="assign"> | 121 | <div·class="section"·id="assign"> |
122 | <h2>assign()</h2> | 122 | <h2>assign()</h2> |
123 | <pre·class="literal-block"> | 123 | <pre·class="literal-block"> |
124 | void·<strong>assign</strong>·(char·const*·b,·int·const·bits); | 124 | void·<strong>assign</strong>·(char·const*·b,·int·const·bits); |
125 | </pre> | 125 | </pre> |
126 | <p>copy·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>·from·buffer·<tt·class="docutils·literal">b</tt>·of·<tt·class="docutils·literal">bits</tt>·number·of·bits,·rounded·up·to | 126 | <p>copy·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>·from·buffer·<tt·class="docutils·literal">b</tt>·of·<tt·class="docutils·literal">bits</tt>·number·of·bits,·rounded·up·to |
127 | the·nearest·byte·boundary.</p> | 127 | the·nearest·byte·boundary.</p> |
128 | <a·name=" | 128 | <a·name="get_bit()"></a> |
129 | <a·name=" | 129 | <a·name="operator[]()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bget_bit%28%29+operator%5B%5D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bget_bit%28%29+[·...·truncated·by·diffoscope;·len:·14,·SHA:·d4f8b5212d572ab22d11b72810e9126d81acdb76e2ebfba9cc006feba5a4e47f·...·]%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
130 | <div·class="section"·id=" | 130 | <div·class="section"·id="get-bit-operator"> |
131 | <h2> | 131 | <h2>get_bit()·operator[]()</h2> |
132 | <pre·class="literal-block"> | 132 | <pre·class="literal-block"> |
133 | bool·<strong>get_bit</strong>·(int·index)·const·noexcept; | ||
134 | bool·<strong>operator[]</strong>·(int·index)·const·noexcept; | 133 | bool·<strong>operator[]</strong>·(int·index)·const·noexcept; |
134 | bool·<strong>get_bit</strong>·(int·index)·const·noexcept; | ||
135 | </pre> | 135 | </pre> |
136 | <p>query·bit·at·<tt·class="docutils·literal">index</tt>.·Returns·true·if·bit·is·1,·otherwise·false.</p> | 136 | <p>query·bit·at·<tt·class="docutils·literal">index</tt>.·Returns·true·if·bit·is·1,·otherwise·false.</p> |
137 | <a·name="clear_bit()"></a> | 137 | <a·name="clear_bit()"></a> |
138 | <a·name="set_bit()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bclear_bit%28%29+set_bit%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bclear_bit%28%29+set_bit%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 138 | <a·name="set_bit()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bclear_bit%28%29+set_bit%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bclear_bit%28%29+set_bit%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
139 | <div·class="section"·id="clear-bit-set-bit"> | 139 | <div·class="section"·id="clear-bit-set-bit"> |
140 | <h2>clear_bit()·set_bit()</h2> | 140 | <h2>clear_bit()·set_bit()</h2> |
141 | <pre·class="literal-block"> | 141 | <pre·class="literal-block"> |
Offset 187, 16 lines modified | Offset 187, 16 lines modified | ||
187 | bool·<strong>empty</strong>·()·const·noexcept; | 187 | bool·<strong>empty</strong>·()·const·noexcept; |
188 | </pre> | 188 | </pre> |
189 | <p>returns·true·if·the·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>·has·zero·size.</p> | 189 | <p>returns·true·if·the·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>·has·zero·size.</p> |
190 | <a·name="data()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bdata%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bdata%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 190 | <a·name="data()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bdata%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bdata%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
191 | <div·class="section"·id="data"> | 191 | <div·class="section"·id="data"> |
192 | <h2>data()</h2> | 192 | <h2>data()</h2> |
193 | <pre·class="literal-block"> | 193 | <pre·class="literal-block"> |
194 | char·const*·<strong>data</strong>·()·const·noexcept; | ||
195 | char*·<strong>data</strong>·()·noexcept; | 194 | char*·<strong>data</strong>·()·noexcept; |
195 | char·const*·<strong>data</strong>·()·const·noexcept; | ||
196 | </pre> | 196 | </pre> |
197 | <p>returns·a·pointer·to·the·internal·buffer·of·the·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>,·or | 197 | <p>returns·a·pointer·to·the·internal·buffer·of·the·<a·class="reference·external"·href="reference-Utility.html#bitfield">bitfield</a>,·or |
198 | <tt·class="docutils·literal">nullptr</tt>·if·it's·empty.</p> | 198 | <tt·class="docutils·literal">nullptr</tt>·if·it's·empty.</p> |
199 | <a·name="swap()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bswap%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bswap%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | 199 | <a·name="swap()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:bitfield%3A%3A%5Bswap%28%29%5D&labels=documentation&body=Documentation+under+heading+%22bitfield%3A%3A%5Bswap%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> |
Max diff block lines reached; 5110/14649 bytes (34.88%) of diff not shown. |
Offset 2, 15 lines modified | Offset 2, 15 lines modified | ||
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d | 6 | ····*·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d |
7 | ··········o·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8(_\x8) | 7 | ··········o·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8(_\x8) |
8 | ··········o·_\x8a_\x8s_\x8s_\x8i_\x8g_\x8n_\x8(_\x8) | 8 | ··········o·_\x8a_\x8s_\x8s_\x8i_\x8g_\x8n_\x8(_\x8) |
9 | ··········o·_\x8 | 9 | ··········o·_\x8g_.e_.t_.__.b_.i_.t_.(_.)_.·_.o_.p_.e_.r_.a_.t_.o_.r_.[_.]_\x8(_\x8) |
10 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8b_\x8i_\x8t_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8(_\x8) | 10 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8b_\x8i_\x8t_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8(_\x8) |
11 | ··········o·_\x8a_\x8l_\x8l_\x8__\x8s_\x8e_\x8t_\x8(_\x8) | 11 | ··········o·_\x8a_\x8l_\x8l_\x8__\x8s_\x8e_\x8t_\x8(_\x8) |
12 | ··········o·_\x8n_\x8o_\x8n_\x8e_\x8__\x8s_\x8e_\x8t_\x8(_\x8) | 12 | ··········o·_\x8n_\x8o_\x8n_\x8e_\x8__\x8s_\x8e_\x8t_\x8(_\x8) |
13 | ··········o·_\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | 13 | ··········o·_\x8s_\x8i_\x8z_\x8e_\x8(_\x8) |
14 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8w_\x8o_\x8r_\x8d_\x8s_\x8(_\x8) | 14 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8w_\x8o_\x8r_\x8d_\x8s_\x8(_\x8) |
15 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8b_\x8y_\x8t_\x8e_\x8s_\x8(_\x8) | 15 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8b_\x8y_\x8t_\x8e_\x8s_\x8(_\x8) |
16 | ··········o·_\x8e_\x8m_\x8p_\x8t_\x8y_\x8(_\x8) | 16 | ··········o·_\x8e_\x8m_\x8p_\x8t_\x8y_\x8(_\x8) |
Offset 21, 73 lines modified | Offset 21, 73 lines modified | ||
21 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8l_\x8a_\x8s_\x8t_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) | 21 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8l_\x8a_\x8s_\x8t_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) |
22 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r | 22 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r |
23 | ··········o·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | 23 | ··········o·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) |
24 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | 24 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) |
25 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) | 25 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) |
26 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) | 26 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) |
27 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x82_\x85_\x86 | 27 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x82_\x85_\x86 |
28 | ··········o·_\x8 | 28 | ··········o·_\x8o_.p_.e_.r_.a_.t_.o_.r_.=_.(_.)_.·_.h_.a_.s_.h_.e_.r_.2_.5_.6_\x8(_\x8) |
29 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | 29 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) |
30 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) | 30 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) |
31 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) | 31 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) |
32 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 32 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
33 | *\x8**\x8**\x8**\x8**\x8**\x8*·b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* | 33 | *\x8**\x8**\x8**\x8**\x8**\x8*·b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·*\x8**\x8**\x8**\x8**\x8**\x8* |
34 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8._\x8h_\x8p_\x8p" | 34 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8._\x8h_\x8p_\x8p" |
35 | The·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·type·stores·any·number·of·bits·as·a·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·in·a·heap·allocated | 35 | The·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·type·stores·any·number·of·bits·as·a·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·in·a·heap·allocated |
36 | array. | 36 | array. |
37 | struct·bitfield | 37 | struct·bitfield |
38 | { | 38 | { |
39 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield&&·rhs)·noexcept·=·default; | ||
40 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(int·bits,·bool·val); | ||
41 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield·const&·rhs); | ||
42 | ···explicit·b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(int·bits); | 39 | ···explicit·b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(int·bits); |
43 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·()·noexcept·=·default; | 40 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·()·noexcept·=·default; |
41 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield·const&·rhs); | ||
42 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield&&·rhs)·noexcept·=·default; | ||
44 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(char·const*·b,·int·bits); | 43 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(char·const*·b,·int·bits); |
44 | ···b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(int·bits,·bool·val); | ||
45 | ···void·a\x8as\x8ss\x8si\x8ig\x8gn\x8n·(char·const*·b,·int·const·bits); | 45 | ···void·a\x8as\x8ss\x8si\x8ig\x8gn\x8n·(char·const*·b,·int·const·bits); |
46 | ···bool·g\x8ge\x8et\x8t_\x8_b\x8bi\x8it\x8t·(int·index)·const·noexcept; | ||
47 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(int·index)·const·noexcept; | 46 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(int·index)·const·noexcept; |
47 | ···bool·g\x8ge\x8et\x8t_\x8_b\x8bi\x8it\x8t·(int·index)·const·noexcept; | ||
48 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_b\x8bi\x8it\x8t·(int·index)·noexcept; | 48 | ···void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_b\x8bi\x8it\x8t·(int·index)·noexcept; |
49 | ···void·s\x8se\x8et\x8t_\x8_b\x8bi\x8it\x8t·(int·index)·noexcept; | 49 | ···void·s\x8se\x8et\x8t_\x8_b\x8bi\x8it\x8t·(int·index)·noexcept; |
50 | ···bool·a\x8al\x8ll\x8l_\x8_s\x8se\x8et\x8t·()·const·noexcept; | 50 | ···bool·a\x8al\x8ll\x8l_\x8_s\x8se\x8et\x8t·()·const·noexcept; |
51 | ···bool·n\x8no\x8on\x8ne\x8e_\x8_s\x8se\x8et\x8t·()·const·noexcept; | 51 | ···bool·n\x8no\x8on\x8ne\x8e_\x8_s\x8se\x8et\x8t·()·const·noexcept; |
52 | ···int·s\x8si\x8iz\x8ze\x8e·()·const·noexcept; | 52 | ···int·s\x8si\x8iz\x8ze\x8e·()·const·noexcept; |
53 | ···int·n\x8nu\x8um\x8m_\x8_w\x8wo\x8or\x8rd\x8ds\x8s·()·const·noexcept; | 53 | ···int·n\x8nu\x8um\x8m_\x8_w\x8wo\x8or\x8rd\x8ds\x8s·()·const·noexcept; |
54 | ···int·n\x8nu\x8um\x8m_\x8_b\x8by\x8yt\x8te\x8es\x8s·()·const·noexcept; | 54 | ···int·n\x8nu\x8um\x8m_\x8_b\x8by\x8yt\x8te\x8es\x8s·()·const·noexcept; |
55 | ···bool·e\x8em\x8mp\x8pt\x8ty\x8y·()·const·noexcept; | 55 | ···bool·e\x8em\x8mp\x8pt\x8ty\x8y·()·const·noexcept; |
56 | ···char·const*·d\x8da\x8at\x8ta\x8a·()·const·noexcept; | ||
57 | ···char*·d\x8da\x8at\x8ta\x8a·()·noexcept; | 56 | ···char*·d\x8da\x8at\x8ta\x8a·()·noexcept; |
57 | ···char·const*·d\x8da\x8at\x8ta\x8a·()·const·noexcept; | ||
58 | ···void·s\x8sw\x8wa\x8ap\x8p·(bitfield&·rhs)·noexcept; | 58 | ···void·s\x8sw\x8wa\x8ap\x8p·(bitfield&·rhs)·noexcept; |
59 | ···int·c\x8co\x8ou\x8un\x8nt\x8t·()·const·noexcept; | 59 | ···int·c\x8co\x8ou\x8un\x8nt\x8t·()·const·noexcept; |
60 | ···int·f\x8fi\x8in\x8nd\x8d_\x8_f\x8fi\x8ir\x8rs\x8st\x8t_\x8_s\x8se\x8et\x8t·()·const·noexcept; | 60 | ···int·f\x8fi\x8in\x8nd\x8d_\x8_f\x8fi\x8ir\x8rs\x8st\x8t_\x8_s\x8se\x8et\x8t·()·const·noexcept; |
61 | ···int·f\x8fi\x8in\x8nd\x8d_\x8_l\x8la\x8as\x8st\x8t_\x8_c\x8cl\x8le\x8ea\x8ar\x8r·()·const·noexcept; | 61 | ···int·f\x8fi\x8in\x8nd\x8d_\x8_l\x8la\x8as\x8st\x8t_\x8_c\x8cl\x8le\x8ea\x8ar\x8r·()·const·noexcept; |
62 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(lt::bitfield·const&·rhs)·const; | 62 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(lt::bitfield·const&·rhs)·const; |
63 | }; | 63 | }; |
64 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 64 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
65 | *\x8**\x8**\x8**\x8**\x8*·b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 65 | *\x8**\x8**\x8**\x8**\x8*·b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
66 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield&&·rhs)·noexcept·=·default; | ||
67 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(int·bits,·bool·val); | ||
68 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield·const&·rhs); | ||
69 | explicit·b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(int·bits); | 66 | explicit·b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(int·bits); |
70 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·()·noexcept·=·default; | 67 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·()·noexcept·=·default; |
68 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield·const&·rhs); | ||
69 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(bitfield&&·rhs)·noexcept·=·default; | ||
71 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(char·const*·b,·int·bits); | 70 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(char·const*·b,·int·bits); |
71 | b\x8bi\x8it\x8tf\x8fi\x8ie\x8el\x8ld\x8d·(int·bits,·bool·val); | ||
72 | constructs·a·new·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d.·The·default·constructor·creates·an·empty·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d. | 72 | constructs·a·new·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d.·The·default·constructor·creates·an·empty·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d. |
73 | bits·is·the·size·of·the·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·(specified·in·bits).·val·is·the·value·to | 73 | bits·is·the·size·of·the·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·(specified·in·bits).·val·is·the·value·to |
74 | initialize·the·bits·to.·If·not·specified·all·bits·are·initialized·to·0. | 74 | initialize·the·bits·to.·If·not·specified·all·bits·are·initialized·to·0. |
75 | The·constructor·taking·a·pointer·b·and·bits·copies·a·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·from·the | 75 | The·constructor·taking·a·pointer·b·and·bits·copies·a·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·from·the |
76 | specified·buffer,·and·bits·number·of·bits·(rounded·up·to·the·nearest·byte | 76 | specified·buffer,·and·bits·number·of·bits·(rounded·up·to·the·nearest·byte |
77 | boundary). | 77 | boundary). |
78 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 78 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
79 | *\x8**\x8**\x8**\x8**\x8*·a\x8as\x8ss\x8si\x8ig\x8gn\x8n(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 79 | *\x8**\x8**\x8**\x8**\x8*·a\x8as\x8ss\x8si\x8ig\x8gn\x8n(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
80 | void·a\x8as\x8ss\x8si\x8ig\x8gn\x8n·(char·const*·b,·int·const·bits); | 80 | void·a\x8as\x8ss\x8si\x8ig\x8gn\x8n·(char·const*·b,·int·const·bits); |
81 | copy·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·from·buffer·b·of·bits·number·of·bits,·rounded·up·to·the·nearest | 81 | copy·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·from·buffer·b·of·bits·number·of·bits,·rounded·up·to·the·nearest |
82 | byte·boundary. | 82 | byte·boundary. |
83 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 83 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
84 | *\x8**\x8**\x8**\x8**\x8*·g\x8ge\x8et\x8t_\x8_b\x8bi\x8it\x8t(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8](\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
84 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8](\x8()\x8)·g\x8ge\x8et\x8t_\x8_b\x8bi\x8it\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
85 | bool·g\x8ge\x8et\x8t_\x8_b\x8bi\x8it\x8t·(int·index)·const·noexcept; | ||
86 | bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(int·index)·const·noexcept; | 85 | bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\x8[]\x8]·(int·index)·const·noexcept; |
86 | bool·g\x8ge\x8et\x8t_\x8_b\x8bi\x8it\x8t·(int·index)·const·noexcept; | ||
87 | query·bit·at·index.·Returns·true·if·bit·is·1,·otherwise·false. | 87 | query·bit·at·index.·Returns·true·if·bit·is·1,·otherwise·false. |
88 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 88 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
89 | *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_b\x8bi\x8it\x8t(\x8()\x8)·s\x8se\x8et\x8t_\x8_b\x8bi\x8it\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 89 | *\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_b\x8bi\x8it\x8t(\x8()\x8)·s\x8se\x8et\x8t_\x8_b\x8bi\x8it\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
90 | void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_b\x8bi\x8it\x8t·(int·index)·noexcept; | 90 | void·c\x8cl\x8le\x8ea\x8ar\x8r_\x8_b\x8bi\x8it\x8t·(int·index)·noexcept; |
91 | void·s\x8se\x8et\x8t_\x8_b\x8bi\x8it\x8t·(int·index)·noexcept; | 91 | void·s\x8se\x8et\x8t_\x8_b\x8bi\x8it\x8t·(int·index)·noexcept; |
92 | set·bit·at·index·to·0·(clear_bit)·or·1·(set_bit). | 92 | set·bit·at·index·to·0·(clear_bit)·or·1·(set_bit). |
93 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 93 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
Offset 113, 16 lines modified | Offset 113, 16 lines modified | ||
113 | returns·the·number·of·bytes·needed·to·represent·all·bits·in·this·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d | 113 | returns·the·number·of·bytes·needed·to·represent·all·bits·in·this·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d |
114 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 114 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
115 | *\x8**\x8**\x8**\x8**\x8*·e\x8em\x8mp\x8pt\x8ty\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 115 | *\x8**\x8**\x8**\x8**\x8*·e\x8em\x8mp\x8pt\x8ty\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
116 | bool·e\x8em\x8mp\x8pt\x8ty\x8y·()·const·noexcept; | 116 | bool·e\x8em\x8mp\x8pt\x8ty\x8y·()·const·noexcept; |
117 | returns·true·if·the·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·has·zero·size. | 117 | returns·true·if·the·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d·has·zero·size. |
118 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 118 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
119 | *\x8**\x8**\x8**\x8**\x8*·d\x8da\x8at\x8ta\x8a(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 119 | *\x8**\x8**\x8**\x8**\x8*·d\x8da\x8at\x8ta\x8a(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
120 | char·const*·d\x8da\x8at\x8ta\x8a·()·const·noexcept; | ||
121 | char*·d\x8da\x8at\x8ta\x8a·()·noexcept; | 120 | char*·d\x8da\x8at\x8ta\x8a·()·noexcept; |
121 | char·const*·d\x8da\x8at\x8ta\x8a·()·const·noexcept; | ||
122 | returns·a·pointer·to·the·internal·buffer·of·the·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d,·or·nullptr·if·it's | 122 | returns·a·pointer·to·the·internal·buffer·of·the·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d,·or·nullptr·if·it's |
123 | empty. | 123 | empty. |
124 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 124 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
125 | *\x8**\x8**\x8**\x8**\x8*·s\x8sw\x8wa\x8ap\x8p(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | 125 | *\x8**\x8**\x8**\x8**\x8*·s\x8sw\x8wa\x8ap\x8p(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* |
126 | void·s\x8sw\x8wa\x8ap\x8p·(bitfield&·rhs)·noexcept; | 126 | void·s\x8sw\x8wa\x8ap\x8p·(bitfield&·rhs)·noexcept; |
127 | swaps·the·bit-fields·two·variables·refer·to | 127 | swaps·the·bit-fields·two·variables·refer·to |
128 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 128 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
Offset 151, 29 lines modified | Offset 151, 29 lines modified | ||
151 | If·you·want·to·reuse·the·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·object·once·you·have·created·a·hash,·you·have | 151 | If·you·want·to·reuse·the·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·object·once·you·have·created·a·hash,·you·have |
152 | to·call·reset()·to·reinitialize·it. | 152 | to·call·reset()·to·reinitialize·it. |
153 | The·built-in·software·version·of·sha1-algorithm·was·implemented·by·Steve·Reid | 153 | The·built-in·software·version·of·sha1-algorithm·was·implemented·by·Steve·Reid |
154 | and·released·as·public·domain.·For·more·info,·see·src/sha1.cpp. | 154 | and·released·as·public·domain.·For·more·info,·see·src/sha1.cpp. |
155 | class·hasher | 155 | class·hasher |
156 | { | 156 | { |
157 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r·(); | 157 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r·(); |
158 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r·(hasher·const&); | ||
159 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r·(char·const*·data,·int·len); | ||
Max diff block lines reached; 3043/9737 bytes (31.25%) of diff not shown. |
Offset 19, 214 lines modified | Offset 19, 214 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">Torrent· | 25 | <p·class="rubric">Torrent·Info</p> |
26 | <div·class="line-block"> | 26 | <div·class="line-block"> |
27 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_ | 27 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#web_seed_entry">web_seed_entry</a></div> |
28 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_ | 28 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#load_torrent_limits">load_torrent_limits</a></div> |
29 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_ | 29 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a></div> |
30 | </div> | ||
31 | <p·class="rubric">Torrent·Status</p> | ||
32 | <div·class="line-block"> | ||
30 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_ | 33 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Status.html#torrent_status">torrent_status</a></div> |
31 | </div> | 34 | </div> |
32 | <p·class="rubric">Core</p> | 35 | <p·class="rubric">Core</p> |
33 | <div·class="line-block"> | 36 | <div·class="line-block"> |
34 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#info_hash_t">info_hash_t</a></div> | ||
35 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#piece_block">piece_block</a></div> | 37 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#piece_block">piece_block</a></div> |
36 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_request">peer_request</a></div> | 38 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_request">peer_request</a></div> |
39 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#info_hash_t">info_hash_t</a></div> | ||
37 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_info">peer_info</a></div> | 40 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_info">peer_info</a></div> |
38 | <div·class="line"><a·class="reference·external"·href="reference-Core.html# | 41 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_peer_equal()">torrent_peer_equal()</a></div> |
39 | <div·class="line"><a·class="reference·external"·href="reference-Core.html# | 42 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#version()">version()</a></div> |
40 | <div·class="line"><a·class="reference·external"·href="reference-Core.html# | 43 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#truncate_files()">truncate_files()</a></div> |
41 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#make_magnet_uri()">make_magnet_uri()</a></div> | 44 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#make_magnet_uri()">make_magnet_uri()</a></div> |
42 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#parse_magnet_uri()">parse_magnet_uri()</a></div> | 45 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#parse_magnet_uri()">parse_magnet_uri()</a></div> |
43 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#t | 46 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_file()">load_torrent_file()</a></div> |
44 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#version()">version()</a></div> | ||
45 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_ | 47 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_buffer()">load_torrent_buffer()</a></div> |
48 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_parsed()">load_torrent_parsed()</a></div> | ||
46 | <div·class="line"><a·class="reference·external"·href="reference-Core.html# | 49 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#socket_type_t">socket_type_t</a></div> |
47 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#protocol_version">protocol_version</a></div> | 50 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#protocol_version">protocol_version</a></div> |
48 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#event_t">event_t</a></div> | 51 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#event_t">event_t</a></div> |
49 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#socket_type_t">socket_type_t</a></div> | ||
50 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_transport">portmap_transport</a></div> | 52 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_transport">portmap_transport</a></div> |
51 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_protocol">portmap_protocol</a></div> | 53 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_protocol">portmap_protocol</a></div> |
54 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#connection_type">connection_type</a></div> | ||
52 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#int">int</a></div> | 55 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#int">int</a></div> |
53 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_flags_t">torrent_flags_t</a></div> | ||
54 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#download_priority_t">download_priority_t</a></div> | ||
55 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#pex_flags_t">pex_flags_t</a></div> | ||
56 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#charconst*">char·const*</a></div> | 56 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#charconst*">char·const*</a></div> |
57 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#std::uint64_t">std::uint64_t</a></div> | 57 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#std::uint64_t">std::uint64_t</a></div> |
58 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#download_priority_t">download_priority_t</a></div> | ||
59 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#pex_flags_t">pex_flags_t</a></div> | ||
60 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_flags_t">torrent_flags_t</a></div> | ||
61 | </div> | ||
62 | <p·class="rubric">Add·Torrent</p> | ||
63 | <div·class="line-block"> | ||
64 | <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a></div> | ||
65 | <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#client_data_t">client_data_t</a></div> | ||
66 | </div> | ||
67 | <p·class="rubric">Torrent·Handle</p> | ||
68 | <div·class="line-block"> | ||
69 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#block_info">block_info</a></div> | ||
70 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#partial_piece_info">partial_piece_info</a></div> | ||
71 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#torrent_handle">torrent_handle</a></div> | ||
72 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#hash_value()">hash_value()</a></div> | ||
58 | </div> | 73 | </div> |
59 | <p·class="rubric">Session</p> | 74 | <p·class="rubric">Session</p> |
60 | <div·class="line-block"> | 75 | <div·class="line-block"> |
61 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_handle">session_handle</a></div> | 76 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_handle">session_handle</a></div> |
77 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_params">session_params</a></div> | ||
62 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a></div> | 78 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a></div> |
63 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session">session</a></div> | 79 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session">session</a></div> |
64 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_params">session_params</a></div> | ||
65 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#read_session_params()">read_session_params()</a></div> | 80 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#read_session_params()">read_session_params()</a></div> |
66 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params()">write_session_params()</a></div> | 81 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params()">write_session_params()</a></div> |
67 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params_buf()">write_session_params_buf()</a></div> | 82 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params_buf()">write_session_params_buf()</a></div> |
68 | </div> | 83 | </div> |
69 | <p·class="rubric">T | 84 | <p·class="rubric">Trackers</p> |
70 | <div·class="line-block"> | 85 | <div·class="line-block"> |
86 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_infohash">announce_infohash</a></div> | ||
87 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_endpoint">announce_endpoint</a></div> | ||
71 | <div·class="line"><a·class="reference·external"·href="reference-T | 88 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_entry">announce_entry</a></div> |
72 | </div> | 89 | </div> |
73 | <p·class="rubric">Stats</p> | 90 | <p·class="rubric">Stats</p> |
74 | <div·class="line-block"> | 91 | <div·class="line-block"> |
75 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#stats_metric">stats_metric</a></div> | ||
76 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#counters">counters</a></div> | 92 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#counters">counters</a></div> |
93 | <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#session_stats_metrics()">session_stats_metrics()</a></div> | 94 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#session_stats_metrics()">session_stats_metrics()</a></div> |
78 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#find_metric_idx()">find_metric_idx()</a></div> | 95 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#find_metric_idx()">find_metric_idx()</a></div> |
79 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#metric_type_t">metric_type_t</a></div> | 96 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#metric_type_t">metric_type_t</a></div> |
80 | </div> | 97 | </div> |
81 | <p·class="rubric">Trackers</p> | ||
82 | <div·class="line-block"> | ||
83 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_infohash">announce_infohash</a></div> | ||
84 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_endpoint">announce_endpoint</a></div> | ||
85 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_entry">announce_entry</a></div> | ||
86 | </div> | ||
87 | <p·class="rubric">Add·Torrent</p> | ||
88 | <div·class="line-block"> | ||
89 | <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#client_data_t">client_data_t</a></div> | ||
90 | <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a></div> | ||
91 | </div> | ||
92 | <p·class="rubric">Settings</p> | 98 | <p·class="rubric">Settings</p> |
93 | <div·class="line-block"> | 99 | <div·class="line-block"> |
94 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#overview">overview</a></div> | 100 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#overview">overview</a></div> |
95 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a></div> | 101 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a></div> |
96 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#min_memory_usage()">min_memory_usage()</a></div> | ||
97 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#high_performance_seed()">high_performance_seed()</a></div> | ||
98 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#generate_fingerprint()">generate_fingerprint()</a></div> | 102 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#generate_fingerprint()">generate_fingerprint()</a></div> |
99 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#setting_by_name()">setting_by_name()</a></div> | 103 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#setting_by_name()">setting_by_name()</a></div> |
100 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#name_for_setting()">name_for_setting()</a></div> | 104 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#name_for_setting()">name_for_setting()</a></div> |
101 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#default_settings()">default_settings()</a></div> | 105 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#default_settings()">default_settings()</a></div> |
106 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#high_performance_seed()">high_performance_seed()</a></div> | ||
107 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#min_memory_usage()">min_memory_usage()</a></div> | ||
102 | </div> | ||
103 | <p·class="rubric">Torrent·Info</p> | ||
104 | <div·class="line-block"> | ||
105 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#web_seed_entry">web_seed_entry</a></div> | ||
106 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#load_torrent_limits">load_torrent_limits</a></div> | ||
107 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a></div> | ||
108 | </div> | 108 | </div> |
109 | <p·class="rubric">DHT</p> | 109 | <p·class="rubric">DHT</p> |
110 | <div·class="line-block"> | 110 | <div·class="line-block"> |
111 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#dht_storage_counters">dht_storage_counters</a></div> | 111 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#dht_storage_counters">dht_storage_counters</a></div> |
112 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#dht_storage_interface">dht_storage_interface</a></div> | 112 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#dht_storage_interface">dht_storage_interface</a></div> |
113 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#dht_state">dht_state</a></div> | 113 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#dht_state">dht_state</a></div> |
114 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#dht_default_storage_constructor()">dht_default_storage_constructor()</a></div> | 114 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#dht_default_storage_constructor()">dht_default_storage_constructor()</a></div> |
115 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#sign_mutable_item()">sign_mutable_item()</a></div> | 115 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#sign_mutable_item()">sign_mutable_item()</a></div> |
116 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#announce_flags_t">announce_flags_t</a></div> | 116 | <div·class="line"><a·class="reference·external"·href="reference-DHT.html#announce_flags_t">announce_flags_t</a></div> |
117 | </div> | 117 | </div> |
Max diff block lines reached; 15190/27673 bytes (54.89%) of diff not shown. |
Offset 1, 165 lines modified | Offset 1, 165 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | *\x8**\x8**\x8**\x8**\x8**\x8*·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·d\x8do\x8oc\x8cu\x8um\x8me\x8en\x8nt\x8ta\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | 3 | *\x8**\x8**\x8**\x8**\x8**\x8*·r\x8re\x8ef\x8fe\x8er\x8re\x8en\x8nc\x8ce\x8e·d\x8do\x8oc\x8cu\x8um\x8me\x8en\x8nt\x8ta\x8at\x8ti\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* |
4 | _\x8s_\x8i_\x8n_\x8g_\x8l_\x8e_\x8-_\x8p_\x8a_\x8g_\x8e_\x8·_\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n | 4 | _\x8s_\x8i_\x8n_\x8g_\x8l_\x8e_\x8-_\x8p_\x8a_\x8g_\x8e_\x8·_\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n |
5 | Torrent·Handle | ||
6 | _\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8i_\x8n_\x8f_\x8o | ||
7 | 5 | Torrent·Info | |
6 | _\x8w_\x8e_\x8b_\x8__\x8s_\x8e_\x8e_\x8d_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | ||
7 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8s | ||
8 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8 | 8 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_.n_.f_.o |
9 | 9 | Torrent·Status | |
10 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s | ||
10 | Core | 11 | Core |
11 | _\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t | ||
12 | _\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k | 12 | _\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k |
13 | _\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t | 13 | _\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t |
14 | _\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t | ||
14 | _\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | 15 | _\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o |
15 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8s_\x8e_\x8d_\x8(_\x8) | ||
16 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8) | ||
17 | _\x8 | 16 | _\x8t_.o_.r_.r_.e_.n_.t_.__.p_.e_.e_.r_.__.e_.q_.u_.a_.l_\x8(_\x8) |
17 | _\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
18 | _\x8t_\x8r_\x8u_\x8n_\x8c_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
18 | _\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | 19 | _\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) |
19 | _\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | 20 | _\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) |
20 | _\x8t_\x8r_\x8u_\x8n_\x8c_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
21 | _\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
22 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8e_\x8q_\x8u_\x8a_\x8l_\x8(_\x8) | ||
23 | _\x8 | 21 | _\x8l_.o_.a_.d_.__.t_.o_.r_.r_.e_.n_.t_.__.f_.i_.l_.e_.(_.) |
22 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8) | ||
23 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8s_\x8e_\x8d_\x8(_\x8) | ||
24 | _\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | ||
24 | _\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n | 25 | _\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n |
25 | _\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t | 26 | _\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t |
26 | _\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | ||
27 | _\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t | 27 | _\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t |
28 | _\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l | 28 | _\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l |
29 | _\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8y_\x8p_\x8e | ||
29 | _\x8i_\x8n_\x8t | 30 | _\x8i_\x8n_\x8t |
30 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
31 | _\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8__\x8t | ||
32 | _\x8p_\x8e_\x8x_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
33 | _\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* | 31 | _\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* |
34 | _\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t | 32 | _\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t |
33 | _\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8__\x8t | ||
34 | _\x8p_\x8e_\x8x_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
35 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
36 | Add·Torrent | ||
37 | _\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
38 | _\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t | ||
39 | Torrent·Handle | ||
40 | _\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8i_\x8n_\x8f_\x8o | ||
41 | _\x8p_\x8a_\x8r_\x8t_\x8i_\x8a_\x8l_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o | ||
42 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | ||
43 | _\x8h_\x8a_\x8s_\x8h_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8(_\x8) | ||
35 | Session | 44 | Session |
36 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | 45 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e |
46 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
37 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y | 47 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y |
38 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n | 48 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n |
39 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
40 | _\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | 49 | _\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) |
41 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | 50 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) |
42 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8__\x8b_\x8u_\x8f_\x8(_\x8) | 51 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8__\x8b_\x8u_\x8f_\x8(_\x8) |
43 | Torrent·Status | ||
44 | 52 | Trackers | |
53 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h | ||
54 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t | ||
55 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | ||
45 | Stats | 56 | Stats |
46 | _\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c | ||
47 | _\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s | 57 | _\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s |
58 | _\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c | ||
48 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8s_\x8(_\x8) | 59 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8s_\x8(_\x8) |
49 | _\x8f_\x8i_\x8n_\x8d_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8i_\x8d_\x8x_\x8(_\x8) | 60 | _\x8f_\x8i_\x8n_\x8d_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8i_\x8d_\x8x_\x8(_\x8) |
50 | _\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | 61 | _\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t |
51 | Trackers | ||
52 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h | ||
53 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t | ||
54 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | ||
55 | Add·Torrent | ||
56 | _\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t | ||
57 | _\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
58 | Settings | 62 | Settings |
59 | _\x8o_\x8v_\x8e_\x8r_\x8v_\x8i_\x8e_\x8w | 63 | _\x8o_\x8v_\x8e_\x8r_\x8v_\x8i_\x8e_\x8w |
60 | _\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k | 64 | _\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k |
61 | _\x8m_\x8i_\x8n_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8u_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | ||
62 | _\x8h_\x8i_\x8g_\x8h_\x8__\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8) | ||
63 | _\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8n_\x8g_\x8e_\x8r_\x8p_\x8r_\x8i_\x8n_\x8t_\x8(_\x8) | 65 | _\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8n_\x8g_\x8e_\x8r_\x8p_\x8r_\x8i_\x8n_\x8t_\x8(_\x8) |
64 | _\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8y_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) | 66 | _\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8y_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) |
65 | _\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8o_\x8r_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8(_\x8) | 67 | _\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8o_\x8r_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8(_\x8) |
66 | _\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8) | 68 | _\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8) |
69 | _\x8h_\x8i_\x8g_\x8h_\x8__\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8) | ||
70 | _\x8m_\x8i_\x8n_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8u_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | ||
67 | Torrent·Info | ||
68 | _\x8w_\x8e_\x8b_\x8__\x8s_\x8e_\x8e_\x8d_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | ||
69 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8s | ||
70 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o | ||
71 | DHT | 71 | DHT |
72 | _\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s | 72 | _\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s |
73 | _\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | 73 | _\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
74 | _\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8e | 74 | _\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
75 | _\x8d_\x8h_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) | 75 | _\x8d_\x8h_\x8t_\x8__\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) |
76 | _\x8s_\x8i_\x8g_\x8n_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | 76 | _\x8s_\x8i_\x8g_\x8n_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) |
77 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | 77 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t |
78 | Resume·Data | 78 | Resume·Data |
79 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | ||
80 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8b_\x8u_\x8f_\x8(_\x8) | 79 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8b_\x8u_\x8f_\x8(_\x8) |
81 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8 | 80 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_.e_.s_.u_.m_.e_.__.d_.a_.t_.a_\x8(_\x8) |
82 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8b_\x8u_\x8f_\x8(_\x8) | 81 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8b_\x8u_\x8f_\x8(_\x8) |
82 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | ||
83 | _\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 83 | _\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
84 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | 84 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t |
85 | Bencoding | ||
86 | _\x8o_\x8v_\x8e_\x8r_\x8v_\x8i_\x8e_\x8w | ||
87 | _\x8e_\x8n_\x8t_\x8r_\x8y | ||
88 | _\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_\x8<_\x8(_\x8) | ||
89 | _\x8b_\x8e_\x8n_\x8c_\x8o_\x8d_\x8e_\x8(_\x8) | ||
90 | Bdecoding | ||
91 | _\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e | ||
92 | _\x8p_\x8r_\x8i_\x8n_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | ||
93 | _\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8(_\x8) | ||
94 | Create·Torrents | ||
95 | _\x8o_\x8v_\x8e_\x8r_\x8v_\x8i_\x8e_\x8w | ||
96 | _\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t | ||
97 | _\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
98 | _\x8s_\x8e_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) | ||
Max diff block lines reached; 4743/10569 bytes (44.88%) of diff not shown. |
Offset 28, 728 lines modified | Offset 28, 728 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="# | 35 | <li><a·class="reference·internal"·href="#bitfield"·id="toc-entry-1">bitfield</a><ul> |
36 | <li><a·class="reference·internal"·href="#bitfield-1"·id="toc-entry-2">bitfield()</a></li> | ||
37 | <li><a·class="reference·internal"·href="# | 37 | <li><a·class="reference·internal"·href="#assign"·id="toc-entry-3">assign()</a></li> |
38 | <li><a·class="reference·internal"·href="#operator-get-bit"·id="toc-entry-4">operator[]()·get_bit()</a></li> | ||
39 | <li><a·class="reference·internal"·href="#set-bit-clear-bit"·id="toc-entry-5">set_bit()·clear_bit()</a></li> | ||
40 | <li><a·class="reference·internal"·href="#all-set"·id="toc-entry-6">all_set()</a></li> | ||
41 | <li><a·class="reference·internal"·href="#none-set"·id="toc-entry-7">none_set()</a></li> | ||
42 | <li><a·class="reference·internal"·href="#size"·id="toc-entry-8">size()</a></li> | ||
43 | <li><a·class="reference·internal"·href="#num-words"·id="toc-entry-9">num_words()</a></li> | ||
44 | <li><a·class="reference·internal"·href="#num-bytes"·id="toc-entry-10">num_bytes()</a></li> | ||
45 | <li><a·class="reference·internal"·href="#empty"·id="toc-entry-11">empty()</a></li> | ||
46 | <li><a·class="reference·internal"·href="#data"·id="toc-entry-12">data()</a></li> | ||
47 | <li><a·class="reference·internal"·href="#swap"·id="toc-entry-13">swap()</a></li> | ||
48 | <li><a·class="reference·internal"·href="#count"·id="toc-entry-14">count()</a></li> | ||
49 | <li><a·class="reference·internal"·href="#find-first-set"·id="toc-entry-15">find_first_set()</a></li> | ||
50 | <li><a·class="reference·internal"·href="#find-last-clear"·id="toc-entry-16">find_last_clear()</a></li> | ||
38 | </ul> | 51 | </ul> |
39 | </li> | 52 | </li> |
53 | <li><a·class="reference·internal"·href="#hasher"·id="toc-entry-17">hasher</a><ul> | ||
54 | <li><a·class="reference·internal"·href="#operator-hasher"·id="toc-entry-18">operator=()·hasher()</a></li> | ||
55 | <li><a·class="reference·internal"·href="#update"·id="toc-entry-19">update()</a></li> | ||
56 | <li><a·class="reference·internal"·href="#final"·id="toc-entry-20">final()</a></li> | ||
40 | <li><a·class="reference·internal"·href="# | 57 | <li><a·class="reference·internal"·href="#reset"·id="toc-entry-21">reset()</a></li> |
41 | <li><a·class="reference·internal"·href="#tracker-alert"·id="toc-entry-5">tracker_alert</a><ul> | ||
42 | <li><a·class="reference·internal"·href="#tracker-url"·id="toc-entry-6">tracker_url()</a></li> | ||
43 | </ul> | 58 | </ul> |
44 | </li> | 59 | </li> |
60 | <li><a·class="reference·internal"·href="#hasher256"·id="toc-entry-22">hasher256</a><ul> | ||
61 | <li><a·class="reference·internal"·href="#hasher256-operator"·id="toc-entry-23">hasher256()·operator=()</a></li> | ||
62 | <li><a·class="reference·internal"·href="#update-1"·id="toc-entry-24">update()</a></li> | ||
45 | <li><a·class="reference·internal"·href="# | 63 | <li><a·class="reference·internal"·href="#final-1"·id="toc-entry-25">final()</a></li> |
46 | <li><a·class="reference·internal"·href="#re | 64 | <li><a·class="reference·internal"·href="#reset-1"·id="toc-entry-26">reset()</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> | ||
49 | <li><a·class="reference·internal"·href="#new-name-old-name"·id="toc-entry-11">new_name()·old_name()</a></li> | ||
50 | </ul> | 65 | </ul> |
51 | </li> | 66 | </li> |
52 | <li><a·class="reference·internal"·href="# | 67 | <li><a·class="reference·internal"·href="#ip-filter"·id="toc-entry-27">ip_filter</a><ul> |
68 | <li><a·class="reference·internal"·href="#empty-1"·id="toc-entry-28">empty()</a></li> | ||
69 | <li><a·class="reference·internal"·href="#add-rule"·id="toc-entry-29">add_rule()</a></li> | ||
53 | <li><a·class="reference·internal"·href="# | 70 | <li><a·class="reference·internal"·href="#access"·id="toc-entry-30">access()</a></li> |
71 | <li><a·class="reference·internal"·href="#export-filter"·id="toc-entry-31">export_filter()</a></li> | ||
54 | <li><a·class="reference·internal"·href="#enum- | 72 | <li><a·class="reference·internal"·href="#enum-access-flags"·id="toc-entry-32">enum·access_flags</a></li> |
55 | </ul> | 73 | </ul> |
56 | </li> | 74 | </li> |
75 | <li><a·class="reference·internal"·href="#port-filter"·id="toc-entry-33">port_filter</a><ul> | ||
57 | <li><a·class="reference·internal"·href="#state-changed-alert"·id="toc-entry-15">state_changed_alert</a></li> | ||
58 | <li><a·class="reference·internal"·href="#tracker-error-alert"·id="toc-entry-16">tracker_error_alert</a><ul> | ||
59 | <li><a·class="reference·internal"·href="# | 76 | <li><a·class="reference·internal"·href="#add-rule-1"·id="toc-entry-34">add_rule()</a></li> |
77 | <li><a·class="reference·internal"·href="#access-1"·id="toc-entry-35">access()</a></li> | ||
78 | <li><a·class="reference·internal"·href="#enum-access-flags-1"·id="toc-entry-36">enum·access_flags</a></li> | ||
60 | </ul> | 79 | </ul> |
61 | </li> | 80 | </li> |
62 | <li><a·class="reference·internal"·href="# | 81 | <li><a·class="reference·internal"·href="#web-seed-entry"·id="toc-entry-37">web_seed_entry</a><ul> |
82 | <li><a·class="reference·internal"·href="#operator"·id="toc-entry-38">operator==()</a></li> | ||
63 | <li><a·class="reference·internal"·href="# | 83 | <li><a·class="reference·internal"·href="#operator-1"·id="toc-entry-39">operator<()</a></li> |
84 | <li><a·class="reference·internal"·href="#enum-type-t"·id="toc-entry-40">enum·type_t</a></li> | ||
64 | </ul> | 85 | </ul> |
65 | </li> | 86 | </li> |
87 | <li><a·class="reference·internal"·href="#load-torrent-limits"·id="toc-entry-41">load_torrent_limits</a></li> | ||
88 | <li><a·class="reference·internal"·href="#torrent-info"·id="toc-entry-42">torrent_info</a><ul> | ||
89 | <li><a·class="reference·internal"·href="#torrent-info-1"·id="toc-entry-43">torrent_info()</a></li> | ||
90 | <li><a·class="reference·internal"·href="#torrent-info-2"·id="toc-entry-44">~torrent_info()</a></li> | ||
91 | <li><a·class="reference·internal"·href="#files-orig-files"·id="toc-entry-45">files()·orig_files()</a></li> | ||
66 | <li><a·class="reference·internal"·href="# | 92 | <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-46">rename_file()</a></li> |
93 | <li><a·class="reference·internal"·href="#remap-files"·id="toc-entry-47">remap_files()</a></li> | ||
94 | <li><a·class="reference·internal"·href="#add-tracker-clear-trackers-trackers"·id="toc-entry-48">add_tracker()·clear_trackers()·trackers()</a></li> | ||
95 | <li><a·class="reference·internal"·href="#collections-similar-torrents"·id="toc-entry-49">collections()·similar_torrents()</a></li> | ||
96 | <li><a·class="reference·internal"·href="#add-http-seed-set-web-seeds-add-url-seed-web-seeds"·id="toc-entry-50">add_http_seed()·set_web_seeds()·add_url_seed()·web_seeds()</a></li> | ||
97 | <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-51">total_size()</a></li> | ||
98 | <li><a·class="reference·internal"·href="#piece-length-num-pieces"·id="toc-entry-52">piece_length()·num_pieces()</a></li> | ||
99 | <li><a·class="reference·internal"·href="#blocks-per-piece"·id="toc-entry-53">blocks_per_piece()</a></li> | ||
100 | <li><a·class="reference·internal"·href="#end-piece-last-piece-piece-range"·id="toc-entry-54">end_piece()·last_piece()·piece_range()</a></li> | ||
101 | <li><a·class="reference·internal"·href="#info-hashes-info-hash"·id="toc-entry-55">info_hashes()·info_hash()</a></li> | ||
102 | <li><a·class="reference·internal"·href="#v1-v2"·id="toc-entry-56">v1()·v2()</a></li> | ||
103 | <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-57">num_files()</a></li> | ||
104 | <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-58">map_block()</a></li> | ||
67 | <li><a·class="reference·internal"·href="# | 105 | <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-59">map_file()</a></li> |
106 | <li><a·class="reference·internal"·href="#ssl-cert"·id="toc-entry-60">ssl_cert()</a></li> | ||
107 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-61">is_valid()</a></li> | ||
108 | <li><a·class="reference·internal"·href="#priv"·id="toc-entry-62">priv()</a></li> | ||
109 | <li><a·class="reference·internal"·href="#is-i2p"·id="toc-entry-63">is_i2p()</a></li> | ||
110 | <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-64">piece_size()</a></li> | ||
111 | <li><a·class="reference·internal"·href="#hash-for-piece-ptr-hash-for-piece"·id="toc-entry-65">hash_for_piece_ptr()·hash_for_piece()</a></li> | ||
112 | <li><a·class="reference·internal"·href="#name"·id="toc-entry-66">name()</a></li> | ||
113 | <li><a·class="reference·internal"·href="#creation-date"·id="toc-entry-67">creation_date()</a></li> | ||
114 | <li><a·class="reference·internal"·href="#creator"·id="toc-entry-68">creator()</a></li> | ||
115 | <li><a·class="reference·internal"·href="#comment"·id="toc-entry-69">comment()</a></li> | ||
68 | <li><a·class="reference·internal"·href="# | 116 | <li><a·class="reference·internal"·href="#nodes"·id="toc-entry-70">nodes()</a></li> |
117 | <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-71">add_node()</a></li> | ||
118 | <li><a·class="reference·internal"·href="#parse-info-section"·id="toc-entry-72">parse_info_section()</a></li> | ||
119 | <li><a·class="reference·internal"·href="#info"·id="toc-entry-73">info()</a></li> | ||
120 | <li><a·class="reference·internal"·href="#info-section"·id="toc-entry-74">info_section()</a></li> | ||
121 | <li><a·class="reference·internal"·href="#piece-layer"·id="toc-entry-75">piece_layer()</a></li> | ||
122 | <li><a·class="reference·internal"·href="#free-piece-layers"·id="toc-entry-76">free_piece_layers()</a></li> | ||
69 | </ul> | 123 | </ul> |
70 | </li> | 124 | </li> |
71 | <li><a·class="reference·internal"·href="# | 125 | <li><a·class="reference·internal"·href="#dht-routing-bucket"·id="toc-entry-77">dht_routing_bucket</a></li> |
72 | <li><a·class="reference·internal"·href="# | 126 | <li><a·class="reference·internal"·href="#torrent-alert"·id="toc-entry-78">torrent_alert</a><ul> |
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="# | 127 | <li><a·class="reference·internal"·href="#message"·id="toc-entry-79">message()</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> | ||
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> | 128 | </ul> |
82 | </li> | 129 | </li> |
83 | <li><a·class="reference·internal"·href="#peer-disconnected-alert"·id="toc-entry-33">peer_disconnected_alert</a></li> | ||
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="#p | 130 | <li><a·class="reference·internal"·href="#peer-alert"·id="toc-entry-80">peer_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> | ||
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="# | 131 | <li><a·class="reference·internal"·href="#tracker-alert"·id="toc-entry-81">tracker_alert</a><ul> |
Max diff block lines reached; 1551075/1564068 bytes (99.17%) of diff not shown. |
Offset 1, 12 lines modified | Offset 1, 88 lines modified | ||
1 | > | 1 | > |
2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] | 2 | _\x8[_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8·_\x8l_\x8o_\x8g_\x8o_\x8] |
3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.11 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d | ||
7 | ··········o·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8(_\x8) | ||
8 | ··········o·_\x8a_\x8s_\x8s_\x8i_\x8g_\x8n_\x8(_\x8) | ||
9 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8[_\x8]_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8(_\x8) | ||
10 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8b_\x8i_\x8t_\x8(_\x8)_\x8·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8b_\x8i_\x8t_\x8(_\x8) | ||
11 | ··········o·_\x8a_\x8l_\x8l_\x8__\x8s_\x8e_\x8t_\x8(_\x8) | ||
12 | ··········o·_\x8n_\x8o_\x8n_\x8e_\x8__\x8s_\x8e_\x8t_\x8(_\x8) | ||
13 | ··········o·_\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | ||
14 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8w_\x8o_\x8r_\x8d_\x8s_\x8(_\x8) | ||
15 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8b_\x8y_\x8t_\x8e_\x8s_\x8(_\x8) | ||
16 | ··········o·_\x8e_\x8m_\x8p_\x8t_\x8y_\x8(_\x8) | ||
17 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | ||
18 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) | ||
19 | ··········o·_\x8c_\x8o_\x8u_\x8n_\x8t_\x8(_\x8) | ||
20 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8s_\x8e_\x8t_\x8(_\x8) | ||
21 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8l_\x8a_\x8s_\x8t_\x8__\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) | ||
22 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r | ||
23 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x8(_\x8) | ||
24 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | ||
25 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) | ||
26 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) | ||
27 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x82_\x85_\x86 | ||
28 | ··········o·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x82_\x85_\x86_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | ||
29 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | ||
30 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) | ||
31 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) | ||
32 | ····*·_\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r | ||
33 | ··········o·_\x8e_\x8m_\x8p_\x8t_\x8y_\x8(_\x8) | ||
34 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8r_\x8u_\x8l_\x8e_\x8(_\x8) | ||
35 | ··········o·_\x8a_\x8c_\x8c_\x8e_\x8s_\x8s_\x8(_\x8) | ||
36 | ··········o·_\x8e_\x8x_\x8p_\x8o_\x8r_\x8t_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) | ||
37 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8a_\x8c_\x8c_\x8e_\x8s_\x8s_\x8__\x8f_\x8l_\x8a_\x8g_\x8s | ||
38 | ····*·_\x8p_\x8o_\x8r_\x8t_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r | ||
39 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8r_\x8u_\x8l_\x8e_\x8(_\x8) | ||
40 | ··········o·_\x8a_\x8c_\x8c_\x8e_\x8s_\x8s_\x8(_\x8) | ||
41 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8a_\x8c_\x8c_\x8e_\x8s_\x8s_\x8__\x8f_\x8l_\x8a_\x8g_\x8s | ||
42 | ····*·_\x8w_\x8e_\x8b_\x8__\x8s_\x8e_\x8e_\x8d_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | ||
43 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8=_\x8(_\x8) | ||
44 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_\x8(_\x8) | ||
45 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8t_\x8y_\x8p_\x8e_\x8__\x8t | ||
46 | ····*·_\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8s | ||
47 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o | ||
48 | ··········o·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8) | ||
49 | ··········o·_\x8~_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8) | ||
50 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8)_\x8·_\x8o_\x8r_\x8i_\x8g_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
51 | ··········o·_\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | ||
52 | ··········o·_\x8r_\x8e_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
53 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8(_\x8)_\x8·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8s_\x8(_\x8)_\x8·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8s_\x8(_\x8) | ||
54 | ··········o·_\x8c_\x8o_\x8l_\x8l_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8(_\x8)_\x8·_\x8s_\x8i_\x8m_\x8i_\x8l_\x8a_\x8r_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8s_\x8(_\x8) | ||
55 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8h_\x8t_\x8t_\x8p_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8w_\x8e_\x8b_\x8__\x8s_\x8e_\x8e_\x8d_\x8s_\x8(_\x8)_\x8·_\x8a_\x8d_\x8d_\x8__\x8u_\x8r_\x8l_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8)_\x8·_\x8w_\x8e_\x8b_\x8__\x8s_\x8e_\x8e_\x8d_\x8s_\x8(_\x8) | ||
56 | ··········o·_\x8t_\x8o_\x8t_\x8a_\x8l_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | ||
57 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8)_\x8·_\x8n_\x8u_\x8m_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8s_\x8(_\x8) | ||
58 | ··········o·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8__\x8p_\x8e_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | ||
59 | ··········o·_\x8e_\x8n_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8)_\x8·_\x8l_\x8a_\x8s_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8)_\x8·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) | ||
60 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8)_\x8·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8) | ||
61 | ··········o·_\x8v_\x81_\x8(_\x8)_\x8·_\x8v_\x82_\x8(_\x8) | ||
62 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
63 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8(_\x8) | ||
64 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | ||
65 | ··········o·_\x8s_\x8s_\x8l_\x8__\x8c_\x8e_\x8r_\x8t_\x8(_\x8) | ||
66 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) | ||
67 | ··········o·_\x8p_\x8r_\x8i_\x8v_\x8(_\x8) | ||
68 | ··········o·_\x8i_\x8s_\x8__\x8i_\x82_\x8p_\x8(_\x8) | ||
69 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | ||
70 | ··········o·_\x8h_\x8a_\x8s_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_\x8t_\x8r_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | ||
71 | ··········o·_\x8n_\x8a_\x8m_\x8e_\x8(_\x8) | ||
72 | ··········o·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | ||
73 | ··········o·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8o_\x8r_\x8(_\x8) | ||
74 | ··········o·_\x8c_\x8o_\x8m_\x8m_\x8e_\x8n_\x8t_\x8(_\x8) | ||
75 | ··········o·_\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) | ||
76 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) | ||
77 | ··········o·_\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) | ||
78 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8(_\x8) | ||
79 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) | ||
80 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8a_\x8y_\x8e_\x8r_\x8(_\x8) | ||
81 | ··········o·_\x8f_\x8r_\x8e_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8l_\x8a_\x8y_\x8e_\x8r_\x8s_\x8(_\x8) | ||
6 | ····*·_\x8d_\x8h_\x8t_\x8__\x8r_\x8o_\x8u_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8u_\x8c_\x8k_\x8e_\x8t | 82 | ····*·_\x8d_\x8h_\x8t_\x8__\x8r_\x8o_\x8u_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8u_\x8c_\x8k_\x8e_\x8t |
7 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 83 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
8 | ··········o·_\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | 84 | ··········o·_\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) |
9 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 85 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
10 | ····*·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 86 | ····*·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
11 | ··········o·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8u_\x8r_\x8l_\x8(_\x8) | 87 | ··········o·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8u_\x8r_\x8l_\x8(_\x8) |
12 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 88 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
Offset 114, 18 lines modified | Offset 190, 18 lines modified | ||
114 | ··········o·_\x8p_\x8k_\x8t_\x8__\x8b_\x8u_\x8f_\x8(_\x8) | 190 | ··········o·_\x8p_\x8k_\x8t_\x8__\x8b_\x8u_\x8f_\x8(_\x8) |
115 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t | 191 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t |
116 | ····*·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8__\x8r_\x8e_\x8p_\x8l_\x8y_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 192 | ····*·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8__\x8r_\x8e_\x8p_\x8l_\x8y_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
117 | ····*·_\x8d_\x8h_\x8t_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8__\x8r_\x8e_\x8s_\x8p_\x8o_\x8n_\x8s_\x8e_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 193 | ····*·_\x8d_\x8h_\x8t_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8__\x8r_\x8e_\x8s_\x8p_\x8o_\x8n_\x8s_\x8e_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
118 | ····*·_\x8p_\x8i_\x8c_\x8k_\x8e_\x8r_\x8__\x8l_\x8o_\x8g_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 194 | ····*·_\x8p_\x8i_\x8c_\x8k_\x8e_\x8r_\x8__\x8l_\x8o_\x8g_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
119 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 195 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
120 | ····*·_\x8d_\x8h_\x8t_\x8__\x8l_\x8i_\x8v_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8s_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 196 | ····*·_\x8d_\x8h_\x8t_\x8__\x8l_\x8i_\x8v_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8s_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
121 | ··········o·_\x8n_\x8 | 197 | ··········o·_\x8n_\x8u_.m_.__.n_.o_.d_.e_.s_.(_.)_.·_\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) |
122 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8h_\x8e_\x8a_\x8d_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 198 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8h_\x8e_\x8a_\x8d_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
123 | ····*·_\x8d_\x8h_\x8t_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 199 | ····*·_\x8d_\x8h_\x8t_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
124 | ··········o·_\x8 | 200 | ··········o·_\x8s_.a_.m_.p_.l_.e_.s_.(_.)_.·_.n_.u_.m_.__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8s_\x8(_\x8) |
125 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) | 201 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) |
126 | ··········o·_\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) | 202 | ··········o·_\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) |
127 | ····*·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8u_\x8p_\x8l_\x8o_\x8a_\x8d_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 203 | ····*·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8u_\x8p_\x8l_\x8o_\x8a_\x8d_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
128 | ····*·_\x8a_\x8l_\x8e_\x8r_\x8t_\x8s_\x8__\x8d_\x8r_\x8o_\x8p_\x8p_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 204 | ····*·_\x8a_\x8l_\x8e_\x8r_\x8t_\x8s_\x8__\x8d_\x8r_\x8o_\x8p_\x8p_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
129 | ····*·_\x8s_\x8o_\x8c_\x8k_\x8s_\x85_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 205 | ····*·_\x8s_\x8o_\x8c_\x8k_\x8s_\x85_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
130 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 206 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
131 | ····*·_\x8o_\x8v_\x8e_\x8r_\x8s_\x8i_\x8z_\x8e_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 207 | ····*·_\x8o_\x8v_\x8e_\x8r_\x8s_\x8i_\x8z_\x8e_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
Offset 142, 186 lines modified | Offset 218, 169 lines modified | ||
142 | ··········o·_\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | 218 | ··········o·_\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) |
143 | ··········o·_\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | 219 | ··········o·_\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) |
144 | ····*·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) | 220 | ····*·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) |
145 | ····*·_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8c_\x8a_\x8s_\x8t_\x8(_\x8) | 221 | ····*·_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8c_\x8a_\x8s_\x8t_\x8(_\x8) |
146 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8t | 222 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8t |
147 | ····*·_\x8i_\x8n_\x8t | 223 | ····*·_\x8i_\x8n_\x8t |
148 | ····*·_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8__\x8t | 224 | ····*·_\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8__\x8t |
149 | ····*·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8i_\x8n_\x8f_\x8o | ||
150 | ··········o·_\x8p_\x8e_\x8e_\x8r_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8(_\x8) | ||
151 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8t | ||
152 | ····*·_\x8p_\x8a_\x8r_\x8t_\x8i_\x8a_\x8l_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o | ||
153 | ····*·_\x8 | 225 | ····*·_\x8s_.t_.o_.r_.a_.g_.e_.__.p_.a_.r_.a_.m_.s |
226 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e | ||
227 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e | ||
154 | ··········o·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8(_\x8) | ||
155 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | ||
156 | ··········o·_\x8r_\x8e_\x8a_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | ||
157 | ··········o·_\x8h_\x8a_\x8v_\x8e_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | ||
158 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o_\x8(_\x8) | ||
Max diff block lines reached; 948236/956621 bytes (99.12%) of diff not shown. |
Offset 459, 226 lines modified | Offset 459, 452 lines modified | ||
459 | » auto·o·=·rpc.allocate_observer<null_observer>(std::move(algo),·source,·node_id()); | 459 | » auto·o·=·rpc.allocate_observer<null_observer>(std::move(algo),·source,·node_id()); |
460 | #if·TORRENT_USE_ASSERTS | 460 | #if·TORRENT_USE_ASSERTS |
461 | » o->m_in_constructor·=·false; | 461 | » o->m_in_constructor·=·false; |
462 | #endif | 462 | #endif |
463 | » o->flags·|=·observer::flag_queried; | 463 | » o->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 3</td><td><a·href="javascript:expand(9)">../src/session_impl.cpp:1142</a></td><td>closing·the·udp·sockets·here·means·that·the·uTP·connections·cannot·be·closed·gracefully</td></tr><tr·id="9"·style="display:·none;"·colspan="3"><td·colspan="3"><h2>closing·the·udp·sockets·here·means·that | ||
466 | the·uTP·connections·cannot·be·closed·gracefully</h2><h4>../src/session_impl.cpp:1142</h4><pre·style="background:·#f6f6f6;·border:·solid·1px·#ddd;">#ifndef·TORRENT_DISABLE_LOGGING | ||
467 | » » session_log("·aborting·all·connections·(%d)",·int(m_connections.size())); | ||
465 | </pre></td></tr><tr·style="background:·#fcc"><td>relevance 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&·target) | ||
467 | » { | ||
468 | #ifndef·TORRENT_DISABLE_DHT | ||
469 | » » async_call(&session_impl::dht_get_immutable_item,·target); | ||
470 | #else | ||
471 | » » TORRENT_UNUSED(target); | ||
472 | #endif | 468 | #endif |
469 | » » //·abort·all·connections | ||
470 | » » for·(auto·i·=·m_connections.begin();·i·!=·m_connections.end();) | ||
471 | » » { | ||
472 | » » » peer_connection*·p·=·(*i).get(); | ||
473 | » » » ++i; | ||
474 | » » » p->disconnect(errors::stopping_torrent,·operation_t::bittorrent); | ||
475 | » » } | ||
476 | » » //·close·the·listen·sockets | ||
477 | » » for·(auto·const&·l·:·m_listen_sockets) | ||
478 | » » { | ||
479 | » » » if·(l->sock) | ||
480 | » » » { | ||
481 | » » » » l->sock->close(ec); | ||
482 | » » » » TORRENT_ASSERT(!ec); | ||
483 | » » » } | ||
484 | <div·style="background:·#ffff00"·width="100%">» » » if·(l->udp_sock) | ||
485 | </div>» » » { | ||
486 | » » » » l->udp_sock->sock.close(); | ||
487 | » » » } | ||
488 | » » } | ||
489 | » » //·we·need·to·give·all·the·sockets·an·opportunity·to·actually·have·their·handlers | ||
490 | » » //·called·and·cancelled·before·we·continue·the·shutdown.·This·is·a·bit | ||
491 | » » //·complicated,·if·there·are·no·"undead"·peers,·it's·safe·to·resume·the | ||
492 | » » //·shutdown,·but·if·there·are,·we·have·to·wait·for·them·to·be·cleared·out | ||
493 | » » //·first.·In·session_impl::on_tick()·we·check·them·periodically.·If·we're | ||
494 | » » //·shutting·down·and·we·remove·the·last·one,·we'll·initiate | ||
495 | » » //·shutdown_stage2·from·there. | ||
496 | » » if·(m_undead_peers.empty()) | ||
497 | » » { | ||
498 | » » » post(m_io_context,·make_handler([this]·{·abort_stage2();·} | ||
499 | » » » » ,·m_abort_handler_storage,·*this)); | ||
500 | » » } | ||
473 | » } | 501 | » } |
502 | » void·session_impl::abort_stage2()·noexcept | ||
474 | » void·session_handle::dht_get_item(std::array<char,·32>·key | ||
475 | » » ,·std::string·salt) | ||
476 | » { | 503 | » { |
477 | #ifndef·TORRENT_DISABLE_DHT | ||
478 | » » async_call(&session_impl::dht_get_mutable_item,·key,·salt); | ||
479 | #else | ||
480 | » » TORRENT_UNUSED(key); | ||
481 | » » | 504 | » » m_download_rate.close(); |
505 | » » m_upload_rate.close(); | ||
506 | » » //·it's·OK·to·detach·the·threads·here.·The·disk_io_thread | ||
507 | » » //·has·an·internal·counter·and·won't·release·the·network | ||
508 | » » //·thread·until·they're·all·dead·(via·m_work). | ||
509 | » » m_disk_thread->abort(false); | ||
510 | » » //·now·it's·OK·for·the·network·thread·to·exit | ||
511 | </pre></td></tr><tr·style="background:·#fcc"><td>relevance 3</td><td><a·href="javascript:expand(10)">../src/session_impl.cpp:1638</a></td><td>the·logic·in·this·if-block·should·be·factored·out·into·a·separate·function.·At·least·most·of·it</td></tr><tr·id="10"·style="display:·none;"·colspan="3"><td·colspan="3"><h2>the·logic·in·this·if-block·should·be·factored·out·into·a | ||
512 | separate·function.·At·least·most·of·it</h2><h4>../src/session_impl.cpp:1638</h4><pre·style="background:·#f6f6f6;·border:·solid·1px·#ddd;">» » » » ,·(lep.flags·&·listen_socket_t::local_network)·?·"local-network·"·:·"" | ||
513 | » » » » ,·(lep.flags·&·listen_socket_t::accept_incoming)·?·"accept-incoming·"·:·"no-incoming·" | ||
514 | » » » » ,·(lep.flags·&·listen_socket_t::was_expanded)·?·"expanded-ip·"·:·"" | ||
515 | » » » » ,·(lep.flags·&·listen_socket_t::proxy)·?·"proxy·"·:·""); | ||
516 | » » } | ||
482 | #endif | 517 | #endif |
483 | » } | ||
484 | <div·style="background:·#ffff00"·width="100%">» sha1_hash·session_handle::dht_put_item(entry·data) | ||
485 | </div>» { | ||
486 | » » std::vector<char>·buf; | ||
487 | » » bencode(std::back_inserter(buf),·data); | ||
488 | » » | 518 | » » auto·ret·=·std::make_shared<listen_socket_t>(); |
519 | » » ret->ssl·=·lep.ssl; | ||
520 | » » ret->original_port·=·bind_ep.port(); | ||
521 | » » ret->flags·=·lep.flags; | ||
522 | » » ret->netmask·=·lep.netmask; | ||
523 | » » operation_t·last_op·=·operation_t::unknown; | ||
524 | » » socket_type_t·const·sock_type | ||
525 | » » » =·(lep.ssl·==·transport::ssl) | ||
526 | » » » ?·socket_type_t::tcp_ssl | ||
527 | » » » :·socket_type_t::tcp; | ||
528 | » » //·if·we're·in·force-proxy·mode,·don't·open·TCP·listen·sockets.·We·cannot | ||
529 | » » //·accept·connections·on·our·local·machine·in·this·case. | ||
530 | <div·style="background:·#ffff00"·width="100%">» » if·(ret->flags·&·listen_socket_t::accept_incoming) | ||
531 | </div>» » { | ||
532 | » » » ret->sock·=·std::make_shared<tcp::acceptor>(m_io_context); | ||
533 | » » » ret->sock->open(bind_ep.protocol(),·ec); | ||
534 | » » » last_op·=·operation_t::sock_open; | ||
535 | » » » if·(ec) | ||
536 | » » » { | ||
489 | #ifndef·TORRENT_DISABLE_ | 537 | #ifndef·TORRENT_DISABLE_LOGGING |
490 | » » | 538 | » » » » if·(should_log()) |
539 | » » » » { | ||
540 | » » » » » session_log("failed·to·open·socket:·%s" | ||
541 | » » » » » » ,·ec.message().c_str()); | ||
542 | » » » » } | ||
491 | #endif | 543 | #endif |
492 | » » return·ret; | ||
493 | » } | ||
494 | » void·session_handle::dht_put_item(std::array<char,·32>·key | ||
495 | » » ,·std::function<void(entry&,·std::array<char,64>& | ||
496 | » » » ,·std::int64_t&,·std::string·const&)>·cb | ||
497 | » » ,·std::string·salt) | ||
498 | » | 544 | » » » » if·(m_alerts.should_post<listen_failed_alert>()) |
545 | » » » » » m_alerts.emplace_alert<listen_failed_alert>(lep.device,·bind_ep,·last_op | ||
546 | » » » » » » ,·ec,·sock_type); | ||
547 | » » » » return·ret; | ||
548 | » » » } | ||
549 | #ifdef·TORRENT_WINDOWS | ||
550 | » » » { | ||
Max diff block lines reached; 713313/720426 bytes (99.01%) of diff not shown. |
Offset 454, 14 lines modified | Offset 454, 413 lines modified | ||
454 | |···············································································································································································| | 454 | |···············································································································································································| |
455 | |» auto·o·=·rpc.allocate_observer<null_observer>(std::move(algo),·source,·node_id());····························································································| | 455 | |» auto·o·=·rpc.allocate_observer<null_observer>(std::move(algo),·source,·node_id());····························································································| |
456 | |#if·TORRENT_USE_ASSERTS························································································································································| | 456 | |#if·TORRENT_USE_ASSERTS························································································································································| |
457 | |» o->m_in_constructor·=·false;··················································································································································| | 457 | |» o->m_in_constructor·=·false;··················································································································································| |
458 | |#endif·········································································································································································| | 458 | |#endif·········································································································································································| |
459 | |» o->flags·|=·observer::flag_queried;···········································································································································| | 459 | |» o->flags·|=·observer::flag_queried;···········································································································································| |
460 | |_\x8» _\x8r_\x8p_\x8c_\x8._\x8i_\x8n_\x8v_\x8o_\x8k_\x8e_\x8(_\x8r_\x8e_\x8q_\x8,_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8,_\x8·_\x8o_\x8)_\x8;_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | 460 | |_\x8» _\x8r_\x8p_\x8c_\x8._\x8i_\x8n_\x8v_\x8o_\x8k_\x8e_\x8(_\x8r_\x8e_\x8q_\x8,_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8,_\x8·_\x8o_\x8)_\x8;_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| |
461 | |_\x8r_\x8e_\x8l_\x8e_\x8v_\x8a_\x8n_\x8c_\x8e_\x8 _\x83_\x8|_\x8._\x8._\x8/_\x8s_\x8r_\x8c_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8i_\x8m_\x8p_\x8l_\x8._\x8c_\x8p_\x8p_\x8:_\x81_\x81_\x84_\x82_\x8·_\x8·_\x8|_\x8c_\x8l_\x8o_\x8s_\x8i_\x8n_\x8g_\x8·_\x8t_\x8h_\x8e_\x8·_\x8u_\x8d_\x8p_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8s_\x8·_\x8h_\x8e_\x8r_\x8e_\x8·_\x8m_\x8e_\x8a_\x8n_\x8s_\x8·_\x8t_\x8h_\x8a_\x8t_\x8·_\x8t_\x8h_\x8e_\x8·_\x8u_\x8T_\x8P_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8·_\x8c_\x8a_\x8n_\x8n_\x8o_\x8t_\x8·_\x8b_\x8e_\x8·_\x8c_\x8l_\x8o_\x8s_\x8e_\x8d_\x8·_\x8g_\x8r_\x8a_\x8c_\x8e_\x8f_\x8u_\x8l_\x8l_\x8y_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
462 | |*\x8**\x8**\x8**\x8**\x8*·c\x8cl\x8lo\x8os\x8si\x8in\x8ng\x8g·t\x8th\x8he\x8e·u\x8ud\x8dp\x8p·s\x8so\x8oc\x8ck\x8ke\x8et\x8ts\x8s·h\x8he\x8er\x8re\x8e·m\x8me\x8ea\x8an\x8ns\x8s·t\x8th\x8ha\x8at\x8t·t\x8th\x8he\x8e·u\x8uT\x8TP\x8P·c\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8ti\x8io\x8on\x8ns\x8s·c\x8ca\x8an\x8nn\x8no\x8ot\x8t·b\x8be\x8e·c\x8cl\x8lo\x8os\x8se\x8ed\x8d·g\x8gr\x8ra\x8ac\x8ce\x8ef\x8fu\x8ul\x8ll\x8ly\x8y·*\x8**\x8**\x8**\x8**\x8*············································································| | ||
463 | |*\x8**\x8**\x8*·.\x8..\x8./\x8/s\x8sr\x8rc\x8c/\x8/s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_i\x8im\x8mp\x8pl\x8l.\x8.c\x8cp\x8pp\x8p:\x8:1\x811\x814\x842\x82·*\x8**\x8**\x8*···········································································································································| | ||
464 | |#ifndef·TORRENT_DISABLE_LOGGING················································································································································| | ||
465 | |» » session_log("·aborting·all·connections·(%d)",·int(m_connections.size()));····································································································| | ||
466 | |#endif·········································································································································································| | ||
467 | |» » //·abort·all·connections·····················································································································································| | ||
468 | |» » for·(auto·i·=·m_connections.begin();·i·!=·m_connections.end();)··············································································································| | ||
469 | |» » {············································································································································································| | ||
470 | |» » » peer_connection*·p·=·(*i).get();············································································································································| | ||
471 | |» » » ++i;········································································································································································| | ||
472 | |» » » p->disconnect(errors::stopping_torrent,·operation_t::bittorrent);···········································································································| | ||
473 | |» » }············································································································································································| | ||
474 | |···············································································································································································| | ||
475 | |» » //·close·the·listen·sockets··················································································································································| | ||
476 | |» » for·(auto·const&·l·:·m_listen_sockets)·······································································································································| | ||
477 | |» » {············································································································································································| | ||
478 | |» » » if·(l->sock)································································································································································| | ||
479 | |» » » {···········································································································································································| | ||
480 | |» » » » l->sock->close(ec);························································································································································| | ||
481 | |» » » » TORRENT_ASSERT(!ec);·······················································································································································| | ||
482 | |» » » }···········································································································································································| | ||
483 | |···············································································································································································| | ||
484 | |if·(l->udp_sock)·······························································································································································| | ||
485 | |{··············································································································································································| | ||
486 | |» » » » l->udp_sock->sock.close();·················································································································································| | ||
487 | |» » » }···········································································································································································| | ||
488 | |» » }············································································································································································| | ||
489 | |···············································································································································································| | ||
490 | |» » //·we·need·to·give·all·the·sockets·an·opportunity·to·actually·have·their·handlers····························································································| | ||
491 | |» » //·called·and·cancelled·before·we·continue·the·shutdown.·This·is·a·bit·······································································································| | ||
492 | |» » //·complicated,·if·there·are·no·"undead"·peers,·it's·safe·to·resume·the······································································································| | ||
493 | |» » //·shutdown,·but·if·there·are,·we·have·to·wait·for·them·to·be·cleared·out····································································································| | ||
494 | |» » //·first.·In·session_impl::on_tick()·we·check·them·periodically.·If·we're····································································································| | ||
495 | |» » //·shutting·down·and·we·remove·the·last·one,·we'll·initiate··················································································································| | ||
496 | |» » //·shutdown_stage2·from·there.···············································································································································| | ||
497 | |» » if·(m_undead_peers.empty())··················································································································································| | ||
498 | |» » {············································································································································································| | ||
499 | |» » » post(m_io_context,·make_handler([this]·{·abort_stage2();·}··················································································································| | ||
500 | |» » » » ,·m_abort_handler_storage,·*this));········································································································································| | ||
501 | |» » }············································································································································································| | ||
502 | |» }·············································································································································································| | ||
503 | |···············································································································································································| | ||
504 | |» void·session_impl::abort_stage2()·noexcept····································································································································| | ||
505 | |» {·············································································································································································| | ||
506 | |» » m_download_rate.close();·····················································································································································| | ||
507 | |» » m_upload_rate.close();·······················································································································································| | ||
508 | |···············································································································································································| | ||
509 | |» » //·it's·OK·to·detach·the·threads·here.·The·disk_io_thread····················································································································| | ||
510 | |» » //·has·an·internal·counter·and·won't·release·the·network·····················································································································| | ||
511 | |» » //·thread·until·they're·all·dead·(via·m_work).·······························································································································| | ||
512 | |» » m_disk_thread->abort(false);·················································································································································| | ||
513 | |···············································································································································································| | ||
514 | |_\x8» _\x8» _\x8/_\x8/_\x8·_\x8n_\x8o_\x8w_\x8·_\x8i_\x8t_\x8'_\x8s_\x8·_\x8O_\x8K_\x8·_\x8f_\x8o_\x8r_\x8·_\x8t_\x8h_\x8e_\x8·_\x8n_\x8e_\x8t_\x8w_\x8o_\x8r_\x8k_\x8·_\x8t_\x8h_\x8r_\x8e_\x8a_\x8d_\x8·_\x8t_\x8o_\x8·_\x8e_\x8x_\x8i_\x8t_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
515 | |_\x8r_\x8e_\x8l_\x8e_\x8v_\x8a_\x8n_\x8c_\x8e_\x8 _\x83_\x8|_\x8._\x8._\x8/_\x8s_\x8r_\x8c_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8i_\x8m_\x8p_\x8l_\x8._\x8c_\x8p_\x8p_\x8:_\x81_\x86_\x83_\x88_\x8·_\x8·_\x8|_\x8t_\x8h_\x8e_\x8·_\x8l_\x8o_\x8g_\x8i_\x8c_\x8·_\x8i_\x8n_\x8·_\x8t_\x8h_\x8i_\x8s_\x8·_\x8i_\x8f_\x8-_\x8b_\x8l_\x8o_\x8c_\x8k_\x8·_\x8s_\x8h_\x8o_\x8u_\x8l_\x8d_\x8·_\x8b_\x8e_\x8·_\x8f_\x8a_\x8c_\x8t_\x8o_\x8r_\x8e_\x8d_\x8·_\x8o_\x8u_\x8t_\x8·_\x8i_\x8n_\x8t_\x8o_\x8·_\x8a_\x8·_\x8s_\x8e_\x8p_\x8a_\x8r_\x8a_\x8t_\x8e_\x8·_\x8f_\x8u_\x8n_\x8c_\x8t_\x8i_\x8o_\x8n_\x8._\x8·_\x8A_\x8t_\x8·_\x8l_\x8e_\x8a_\x8s_\x8t_\x8·_\x8m_\x8o_\x8s_\x8t_\x8·_\x8o_\x8f_\x8·_\x8i_\x8t_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
516 | |*\x8**\x8**\x8**\x8**\x8*·t\x8th\x8he\x8e·l\x8lo\x8og\x8gi\x8ic\x8c·i\x8in\x8n·t\x8th\x8hi\x8is\x8s·i\x8if\x8f-\x8-b\x8bl\x8lo\x8oc\x8ck\x8k·s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d·b\x8be\x8e·f\x8fa\x8ac\x8ct\x8to\x8or\x8re\x8ed\x8d·o\x8ou\x8ut\x8t·i\x8in\x8nt\x8to\x8o·a\x8a·s\x8se\x8ep\x8pa\x8ar\x8ra\x8at\x8te\x8e·f\x8fu\x8un\x8nc\x8ct\x8ti\x8io\x8on\x8n.\x8.·A\x8At\x8t·l\x8le\x8ea\x8as\x8st\x8t·m\x8mo\x8os\x8st\x8t·o\x8of\x8f·i\x8it\x8t·*\x8**\x8**\x8**\x8**\x8*····································································| | ||
517 | |*\x8**\x8**\x8*·.\x8..\x8./\x8/s\x8sr\x8rc\x8c/\x8/s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_i\x8im\x8mp\x8pl\x8l.\x8.c\x8cp\x8pp\x8p:\x8:1\x816\x863\x838\x88·*\x8**\x8**\x8*···········································································································································| | ||
518 | |,·(lep.flags·&·listen_socket_t::local_network)·?·"local-network·"·:·""·········································································································| | ||
519 | |» » » » ,·(lep.flags·&·listen_socket_t::accept_incoming)·?·"accept-incoming·"·:·"no-incoming·"·····················································································| | ||
520 | |» » » » ,·(lep.flags·&·listen_socket_t::was_expanded)·?·"expanded-ip·"·:·""········································································································| | ||
521 | |» » » » ,·(lep.flags·&·listen_socket_t::proxy)·?·"proxy·"·:·"");···················································································································| | ||
522 | |» » }············································································································································································| | ||
523 | |#endif·········································································································································································| | ||
524 | |···············································································································································································| | ||
525 | |» » auto·ret·=·std::make_shared<listen_socket_t>();······························································································································| | ||
526 | |» » ret->ssl·=·lep.ssl;··························································································································································| | ||
527 | |» » ret->original_port·=·bind_ep.port();·········································································································································| | ||
528 | |» » ret->flags·=·lep.flags;······················································································································································| | ||
529 | |» » ret->netmask·=·lep.netmask;··················································································································································| | ||
530 | |» » operation_t·last_op·=·operation_t::unknown;··································································································································| | ||
531 | |» » socket_type_t·const·sock_type················································································································································| | ||
532 | |» » » =·(lep.ssl·==·transport::ssl)···············································································································································| | ||
533 | |» » » ?·socket_type_t::tcp_ssl····················································································································································| | ||
534 | |» » » :·socket_type_t::tcp;·······················································································································································| | ||
535 | |···············································································································································································| | ||
536 | |» » //·if·we're·in·force-proxy·mode,·don't·open·TCP·listen·sockets.·We·cannot····································································································| | ||
537 | |» » //·accept·connections·on·our·local·machine·in·this·case.·····················································································································| | ||
538 | |if·(ret->flags·&·listen_socket_t::accept_incoming)·····························································································································| | ||
539 | |{··············································································································································································| | ||
540 | |» » » ret->sock·=·std::make_shared<tcp::acceptor>(m_io_context);··················································································································| | ||
541 | |» » » ret->sock->open(bind_ep.protocol(),·ec);····································································································································| | ||
542 | |» » » last_op·=·operation_t::sock_open;···········································································································································| | ||
543 | |» » » if·(ec)·····································································································································································| | ||
544 | |» » » {···········································································································································································| | ||
545 | |#ifndef·TORRENT_DISABLE_LOGGING················································································································································| | ||
546 | |» » » » if·(should_log())··························································································································································| | ||
547 | |» » » » {··········································································································································································| | ||
548 | |» » » » » session_log("failed·to·open·socket:·%s"···································································································································| | ||
549 | |» » » » » » ,·ec.message().c_str());·················································································································································| | ||
550 | |» » » » }··········································································································································································| | ||
551 | |#endif·········································································································································································| | ||
552 | |···············································································································································································| | ||
553 | |» » » » if·(m_alerts.should_post<listen_failed_alert>())···························································································································| | ||
554 | |» » » » » m_alerts.emplace_alert<listen_failed_alert>(lep.device,·bind_ep,·last_op··································································································| | ||
555 | |» » » » » » ,·ec,·sock_type);························································································································································| | ||
556 | |» » » » return·ret;································································································································································| | ||
557 | |» » » }···········································································································································································| | ||
558 | |···············································································································································································| | ||
559 | |#ifdef·TORRENT_WINDOWS·························································································································································| | ||
560 | |» » » {···········································································································································································| | ||
561 | |» » » » //·this·is·best-effort.·ignore·errors······································································································································| | ||
562 | |» » » » error_code·err;····························································································································································| | ||
563 | |» » » » ret->sock->set_option(exclusive_address_use(true),·err);···················································································································| | ||
564 | |#ifndef·TORRENT_DISABLE_LOGGING················································································································································| | ||
565 | |» » » » if·(err·&&·should_log())···················································································································································| | ||
566 | |» » » » {··········································································································································································| | ||
567 | |» » » » » session_log("failed·enable·exclusive·address·use·on·listen·socket:·%s"····································································································| | ||
568 | |_\x8» _\x8» _\x8» _\x8» _\x8» _\x8» _\x8,_\x8·_\x8e_\x8r_\x8r_\x8._\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8)_\x8._\x8c_\x8__\x8s_\x8t_\x8r_\x8(_\x8)_\x8)_\x8;_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
569 | |_\x8r_\x8e_\x8l_\x8e_\x8v_\x8a_\x8n_\x8c_\x8e_\x8 _\x83_\x8|_\x8._\x8._\x8/_\x8s_\x8r_\x8c_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8i_\x8m_\x8p_\x8l_\x8._\x8c_\x8p_\x8p_\x8:_\x82_\x86_\x80_\x86_\x8·_\x8·_\x8|_\x8i_\x8t_\x8·_\x8w_\x8o_\x8u_\x8l_\x8d_\x8·_\x8b_\x8e_\x8·_\x8n_\x8e_\x8a_\x8t_\x8·_\x8i_\x8f_\x8·_\x8t_\x8h_\x8e_\x8·_\x8u_\x8t_\x8p_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8·_\x8m_\x8a_\x8n_\x8a_\x8g_\x8e_\x8r_\x8·_\x8w_\x8o_\x8u_\x8l_\x8d_\x8·_\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8·_\x8I_\x8C_\x8M_\x8P_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8s_\x8·_\x8t_\x8o_\x8o_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
570 | |*\x8**\x8**\x8**\x8**\x8*·i\x8it\x8t·w\x8wo\x8ou\x8ul\x8ld\x8d·b\x8be\x8e·n\x8ne\x8ea\x8at\x8t·i\x8if\x8f·t\x8th\x8he\x8e·u\x8ut\x8tp\x8p·s\x8so\x8oc\x8ck\x8ke\x8et\x8t·m\x8ma\x8an\x8na\x8ag\x8ge\x8er\x8r·w\x8wo\x8ou\x8ul\x8ld\x8d·h\x8ha\x8an\x8nd\x8dl\x8le\x8e·I\x8IC\x8CM\x8MP\x8P·e\x8er\x8rr\x8ro\x8or\x8rs\x8s·t\x8to\x8oo\x8o·*\x8**\x8**\x8**\x8**\x8*····························································································| | ||
571 | |*\x8**\x8**\x8*·.\x8..\x8./\x8/s\x8sr\x8rc\x8c/\x8/s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_i\x8im\x8mp\x8pl\x8l.\x8.c\x8cp\x8pp\x8p:\x8:2\x826\x860\x806\x86·*\x8**\x8**\x8*···········································································································································| | ||
572 | |» » std::shared_ptr<session_udp_socket>·s·=·socket.lock();·······················································································································| | ||
573 | |» » if·(!s)·return;······························································································································································| | ||
574 | |···············································································································································································| | ||
575 | |» » struct·utp_socket_manager&·mgr·=·············································································································································| | ||
576 | |#ifdef·TORRENT_SSL_PEERS·······················································································································································| | ||
577 | |» » » ssl·==·transport::ssl·?·m_ssl_utp_socket_manager·:··························································································································| | ||
578 | |#endif·········································································································································································| | ||
579 | |» » » m_utp_socket_manager;·······················································································································································| | ||
580 | |···············································································································································································| | ||
Max diff block lines reached; 2582595/2664157 bytes (96.94%) of diff not shown. |