Offset 1, 7 lines modified | Offset 1, 7 lines modified | ||
1 | ·70f669886a917964a223f2c0bd62183a·365468·libdevel·optional·libtorrent-rasterbar-dev_2.0.10-1.1_armhf.deb | 1 | ·70f669886a917964a223f2c0bd62183a·365468·libdevel·optional·libtorrent-rasterbar-dev_2.0.10-1.1_armhf.deb |
2 | · | 2 | ·27e07f176154ac457cbaae2dd8fb31c7·1671924·doc·optional·libtorrent-rasterbar-doc_2.0.10-1.1_all.deb |
3 | ·b3fcd560f4a12ae9e19895ab19feaa1c·50035020·debug·optional·libtorrent-rasterbar2.0t64-dbgsym_2.0.10-1.1_armhf.deb | 3 | ·b3fcd560f4a12ae9e19895ab19feaa1c·50035020·debug·optional·libtorrent-rasterbar2.0t64-dbgsym_2.0.10-1.1_armhf.deb |
4 | ·0c3475209222c996186e5d3ed8c5e55b·1472316·libs·optional·libtorrent-rasterbar2.0t64_2.0.10-1.1_armhf.deb | 4 | ·0c3475209222c996186e5d3ed8c5e55b·1472316·libs·optional·libtorrent-rasterbar2.0t64_2.0.10-1.1_armhf.deb |
5 | ·d54c3b2ae3bb52952645a87859396de5·12965680·debug·optional·python3-libtorrent-dbgsym_2.0.10-1.1_armhf.deb | 5 | ·d54c3b2ae3bb52952645a87859396de5·12965680·debug·optional·python3-libtorrent-dbgsym_2.0.10-1.1_armhf.deb |
6 | · | 6 | ·2c48b7cd895efc343f5fe50eee1e2ea3·637144·python·optional·python3-libtorrent_2.0.10-1.1_armhf.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-02-28·20:35:15.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-02-28·20:35:15.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····36 | 2 | -rw-r--r--···0········0········0·····3640·2024-02-28·20:35:15.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··1668 | 3 | -rw-r--r--···0········0········0··1668092·2024-02-28·20:35:15.000000·data.tar.xz |
Offset 78, 38 lines modified | Offset 78, 38 lines modified | ||
78 | -rw-r--r--···0·root·········(0)·root·········(0)·····9631·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/write_disk_buffers.png | 78 | -rw-r--r--···0·root·········(0)·root·········(0)·····9631·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/img/write_disk_buffers.png |
79 | -rw-r--r--···0·root·········(0)·root·········(0)·····9766·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/index.html | 79 | -rw-r--r--···0·root·········(0)·root·········(0)·····9766·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/index.html |
80 | -rw-r--r--···0·root·········(0)·root·········(0)···144610·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/manual-ref.html | 80 | -rw-r--r--···0·root·········(0)·root·········(0)···144610·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/manual-ref.html |
81 | -rw-r--r--···0·root·········(0)·root·········(0)·····9650·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/projects.html | 81 | -rw-r--r--···0·root·········(0)·root·········(0)·····9650·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/projects.html |
82 | -rw-r--r--···0·root·········(0)·root·········(0)····22814·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/python_binding.html | 82 | -rw-r--r--···0·root·········(0)·root·········(0)····22814·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/python_binding.html |
83 | -rw-r--r--···0·root·········(0)·root·········(0)····33687·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Add_Torrent.html | 83 | -rw-r--r--···0·root·········(0)·root·········(0)····33687·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Add_Torrent.html |
84 | -rw-r--r--···0·root·········(0)·root·········(0)···256774·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Alerts.html | 84 | -rw-r--r--···0·root·········(0)·root·········(0)···256774·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Alerts.html |
85 | -rw-r--r--···0·root·········(0)·root·········(0)····2744 | 85 | -rw-r--r--···0·root·········(0)·root·········(0)····27441·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Bdecoding.html |
86 | -rw-r--r--···0·root·········(0)·root·········(0)····2585 | 86 | -rw-r--r--···0·root·········(0)·root·········(0)····25856·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Bencoding.html |
87 | -rw-r--r--···0·root·········(0)·root·········(0)····889 | 87 | -rw-r--r--···0·root·········(0)·root·········(0)····88956·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Core.html |
88 | -rw-r--r--···0·root·········(0)·root·········(0)····43739·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Create_Torrents.html | 88 | -rw-r--r--···0·root·········(0)·root·········(0)····43739·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Create_Torrents.html |
89 | -rw-r--r--···0·root·········(0)·root·········(0)···136977·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Custom_Storage.html | 89 | -rw-r--r--···0·root·········(0)·root·········(0)···136977·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Custom_Storage.html |
90 | -rw-r--r--···0·root·········(0)·root·········(0)····24960·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-DHT.html | 90 | -rw-r--r--···0·root·········(0)·root·········(0)····24960·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-DHT.html |
91 | -rw-r--r--···0·root·········(0)·root·········(0)····485 | 91 | -rw-r--r--···0·root·········(0)·root·········(0)····48568·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Error_Codes.html |
92 | -rw-r--r--···0·root·········(0)·root·········(0)····13261·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Filter.html | 92 | -rw-r--r--···0·root·········(0)·root·········(0)····13261·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Filter.html |
93 | -rw-r--r--···0·root·········(0)·root·········(0)····12804·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-PeerClass.html | 93 | -rw-r--r--···0·root·········(0)·root·········(0)····12804·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-PeerClass.html |
94 | -rw-r--r--···0·root·········(0)·root·········(0)····68487·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Plugins.html | 94 | -rw-r--r--···0·root·········(0)·root·········(0)····68487·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Plugins.html |
95 | -rw-r--r--···0·root·········(0)·root·········(0)·····9618·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Resume_Data.html | 95 | -rw-r--r--···0·root·········(0)·root·········(0)·····9618·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Resume_Data.html |
96 | -rw-r--r--···0·root·········(0)·root·········(0)···1018 | 96 | -rw-r--r--···0·root·········(0)·root·········(0)···101861·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Session.html |
97 | -rw-r--r--···0·root·········(0)·root·········(0)···167853·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Settings.html | 97 | -rw-r--r--···0·root·········(0)·root·········(0)···167853·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Settings.html |
98 | -rw-r--r--···0·root·········(0)·root·········(0)·····9742·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Stats.html | 98 | -rw-r--r--···0·root·········(0)·root·········(0)·····9742·2024-02-28·20:35:15.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)····56863·2024-02-28·20:35:15.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)···129828·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Handle.html |
101 | -rw-r--r--···0·root·········(0)·root·········(0)····5563 | 101 | -rw-r--r--···0·root·········(0)·root·········(0)····55637·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Torrent_Info.html |
102 | -rw-r--r--···0·root·········(0)·root·········(0)····482 | 102 | -rw-r--r--···0·root·········(0)·root·········(0)····48266·2024-02-28·20:35:15.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)····16459·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Trackers.html |
104 | -rw-r--r--···0·root·········(0)·root·········(0)····25530·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Utility.html | 104 | -rw-r--r--···0·root·········(0)·root·········(0)····25530·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-Utility.html |
105 | -rw-r--r--···0·root·········(0)·root·········(0)·····9129·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-ed25519.html | 105 | -rw-r--r--···0·root·········(0)·root·········(0)·····9129·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference-ed25519.html |
106 | -rw-r--r--···0·root·········(0)·root·········(0)····3435 | 106 | -rw-r--r--···0·root·········(0)·root·········(0)····34353·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/reference.html |
107 | -rw-r--r--···0·root·········(0)·root·········(0)····29242·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/security-audit.html | 107 | -rw-r--r--···0·root·········(0)·root·········(0)····29242·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/security-audit.html |
108 | -rw-r--r--···0·root·········(0)·root·········(0)··1358 | 108 | -rw-r--r--···0·root·········(0)·root·········(0)··1358416·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/single-page-ref.html |
109 | -rw-r--r--···0·root·········(0)·root·········(0)····10121·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/streaming.html | 109 | -rw-r--r--···0·root·········(0)·root·········(0)····10121·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/streaming.html |
110 | -rw-r--r--···0·root·········(0)·root·········(0)·····8807·2024-02-19·12:14:14.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/style.css | 110 | -rw-r--r--···0·root·········(0)·root·········(0)·····8807·2024-02-19·12:14:14.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/style.css |
111 | -rw-r--r--···0·root·········(0)·root·········(0)···522811·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/todo.html | 111 | -rw-r--r--···0·root·········(0)·root·········(0)···522811·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/todo.html |
112 | -rw-r--r--···0·root·········(0)·root·········(0)·····3021·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/troubleshooting.html | 112 | -rw-r--r--···0·root·········(0)·root·········(0)·····3021·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/troubleshooting.html |
113 | -rw-r--r--···0·root·········(0)·root·········(0)····25162·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/tuning-ref.html | 113 | -rw-r--r--···0·root·········(0)·root·········(0)····25162·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/tuning-ref.html |
114 | -rw-r--r--···0·root·········(0)·root·········(0)···132630·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/tutorial-ref.html | 114 | -rw-r--r--···0·root·········(0)·root·········(0)···132630·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/tutorial-ref.html |
115 | -rw-r--r--···0·root·········(0)·root·········(0)····16383·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/udp_tracker_protocol.html | 115 | -rw-r--r--···0·root·········(0)·root·········(0)····16383·2024-02-28·20:35:15.000000·./usr/share/doc/libtorrent-rasterbar-doc/html/udp_tracker_protocol.html |
Offset 100, 15 lines modified | Offset 100, 15 lines modified | ||
100 | the·<tt·class="docutils·literal">session</tt>,·it·contains·the·main·loop·that·serves·all·torrents.</p> | 100 | the·<tt·class="docutils·literal">session</tt>,·it·contains·the·main·loop·that·serves·all·torrents.</p> |
101 | <p>The·basic·usage·is·as·follows:</p> | 101 | <p>The·basic·usage·is·as·follows:</p> |
102 | <ul> | 102 | <ul> |
103 | <li><p·class="first">construct·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>,·possibly·passing·in·the·state·from·a·previous·<a·class="reference·external"·href="reference-Session.html#session">session</a>. | 103 | <li><p·class="first">construct·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>,·possibly·passing·in·the·state·from·a·previous·<a·class="reference·external"·href="reference-Session.html#session">session</a>. |
104 | use·<a·class="reference·external"·href="reference-Session.html#read_session_params()">read_session_params()</a>·and·pass·in·the·resulting·<a·class="reference·external"·href="reference-Session.html#session_params">session_params</a>·object·to | 104 | use·<a·class="reference·external"·href="reference-Session.html#read_session_params()">read_session_params()</a>·and·pass·in·the·resulting·<a·class="reference·external"·href="reference-Session.html#session_params">session_params</a>·object·to |
105 | the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·constructor.</p> | 105 | the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·constructor.</p> |
106 | </li> | 106 | </li> |
107 | <li><p·class="first">start·extensions·(see·<a·class="reference·external"·href="reference- | 107 | <li><p·class="first">start·extensions·(see·<a·class="reference·external"·href="reference-Plugins.html#add_extension()">add_extension()</a>).</p> |
108 | </li> | 108 | </li> |
109 | <li><p·class="first">start·DHT,·LSD,·UPnP,·NAT-PMP·etc·(see·start_dht(),·start_lsd(),·start_upnp() | 109 | <li><p·class="first">start·DHT,·LSD,·UPnP,·NAT-PMP·etc·(see·start_dht(),·start_lsd(),·start_upnp() |
110 | and·start_natpmp()).</p> | 110 | and·start_natpmp()).</p> |
111 | </li> | 111 | </li> |
112 | <li><p·class="first">parse·.torrent-files·and·add·them·to·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·(see·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>, | 112 | <li><p·class="first">parse·.torrent-files·and·add·them·to·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·(see·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>, |
113 | <a·class="reference·external"·href="reference-Session.html#async_add_torrent()">async_add_torrent()</a>·and·<a·class="reference·external"·href="reference-Session.html#add_torrent()">add_torrent()</a>)</p> | 113 | <a·class="reference·external"·href="reference-Session.html#async_add_torrent()">async_add_torrent()</a>·and·<a·class="reference·external"·href="reference-Session.html#add_torrent()">add_torrent()</a>)</p> |
114 | </li> | 114 | </li> |
Offset 28, 23 lines modified | Offset 28, 65 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</td></tr> |
29 | </tbody> | 29 | </tbody> |
30 | </table> | 30 | </table> |
31 | <p><a·class="reference·external"·href="reference.html">home</a></p> | 31 | <p><a·class="reference·external"·href="reference.html">home</a></p> |
32 | <div·class="contents·topic"·id="table-of-contents"> | 32 | <div·class="contents·topic"·id="table-of-contents"> |
33 | <p·class="topic-title">Table·of·contents</p> | 33 | <p·class="topic-title">Table·of·contents</p> |
34 | <ul·class="simple"> | 34 | <ul·class="simple"> |
35 | <li><a·class="reference·internal"·href="#add-torrent-params"·id="toc-entry-1">add_torrent_params</a></li> | ||
36 | <li><a·class="reference·internal"·href="#client-data-t"·id="toc-entry- | 35 | <li><a·class="reference·internal"·href="#client-data-t"·id="toc-entry-1">client_data_t</a><ul> |
37 | <li><a·class="reference·internal"·href="#client-data-t-1"·id="toc-entry- | 36 | <li><a·class="reference·internal"·href="#client-data-t-1"·id="toc-entry-2">client_data_t()</a></li> |
38 | <li><a·class="reference·internal"·href="#const-operator | 37 | <li><a·class="reference·internal"·href="#const-void-operator"·id="toc-entry-3">const*()·void*()·operator=()</a></li> |
39 | </ul> | 38 | </ul> |
40 | </li> | 39 | </li> |
40 | <li><a·class="reference·internal"·href="#add-torrent-params"·id="toc-entry-4">add_torrent_params</a></li> | ||
41 | </ul> | 41 | </ul> |
42 | </div> | 42 | </div> |
43 | <a·name="client_data_t"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+client_data_t&labels=documentation&body=Documentation+under+heading+%22class+client_data_t%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="client-data-t"> | ||
44 | <h1>client_data_t</h1> | ||
45 | <p>Declared·in·"<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*)·=·delete; | ||
60 | ···client_data_t&·<strong>operator=</strong>·(void·const*)·=·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="const*()"></a> | ||
71 | <a·name="void*()"></a> | ||
72 | <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:client_data_t%3A%3A%5Bconst%2A%28%29+void%2A%28%29+operator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22client_data_t%3A%3A%5Bconst%2A%28%29+void%2A%28%29+operator%3D%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | ||
73 | <div·class="section"·id="const-void-operator"> | ||
74 | <h2>const*()·void*()·operator=()</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*)·=·delete; | ||
79 | client_data_t&·<strong>operator=</strong>·(void·const*)·=·delete; | ||
80 | </pre> | ||
81 | <p>we·don't·allow·type-unsafe·operations</p> | ||
43 | <a·name="add_torrent_params"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+add_torrent_params&labels=documentation&body=Documentation+under+heading+%22class+add_torrent_params%22+could+be+improved">report·issue</a>]</span><div | 82 | <a·name="add_torrent_params"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+add_torrent_params&labels=documentation&body=Documentation+under+heading+%22class+add_torrent_params%22+could+be+improved">report·issue</a>]</span></div> |
83 | </div> | ||
84 | <div·class="section"·id="add-torrent-params"> | ||
44 | <h1>add_torrent_params</h1> | 85 | <h1>add_torrent_params</h1> |
45 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/add_torrent_params.hpp">libtorrent/add_torrent_params.hpp</a>"</p> | 86 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/add_torrent_params.hpp">libtorrent/add_torrent_params.hpp</a>"</p> |
46 | <p>The·<a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a>·contains·all·the·information·in·a·.torrent·file | 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 |
47 | along·with·all·information·necessary·to·add·that·torrent·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>. | 88 | along·with·all·information·necessary·to·add·that·torrent·to·a·<a·class="reference·external"·href="reference-Session.html#session">session</a>. |
48 | The·key·fields·when·adding·a·torrent·are:</p> | 89 | The·key·fields·when·adding·a·torrent·are:</p> |
49 | <ul·class="simple"> | 90 | <ul·class="simple"> |
50 | <li>ti·-·the·immutable·info-dict·part·of·the·torrent</li> | 91 | <li>ti·-·the·immutable·info-dict·part·of·the·torrent</li> |
Offset 1, 16 lines modified | Offset 1, 48 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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 | ||
7 | ····*·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t | 6 | ····*·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t |
8 | ··········o·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8(_\x8) | 7 | ··········o·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8(_\x8) |
9 | ··········o·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8*_\x8(_\x8)_\x8·_\x8 | 8 | ··········o·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8*_\x8(_\x8)_\x8·_\x8v_.o_.i_.d_.*_.(_.)_.·_.o_.p_.e_.r_.a_.t_.o_.r_.=_\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*)·=·delete; | ||
26 | ···client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void·const*)·=·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*·c\x8co\x8on\x8ns\x8st\x8t*\x8*(\x8()\x8)·v\x8vo\x8oi\x8id\x8d*\x8*(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\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*)·=·delete; | ||
39 | client_data_t&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(void·const*)·=·delete; | ||
40 | we·don't·allow·type-unsafe·operations | ||
10 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 41 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
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* | 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* |
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" | 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" |
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 | 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 |
14 | with·all·information·necessary·to·add·that·torrent·to·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n.·The·key·fields | 45 | with·all·information·necessary·to·add·that·torrent·to·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n.·The·key·fields |
15 | when·adding·a·torrent·are: | 46 | when·adding·a·torrent·are: |
16 | ····*·ti·-·the·immutable·info-dict·part·of·the·torrent | 47 | ····*·ti·-·the·immutable·info-dict·part·of·the·torrent |
Offset 28, 208 lines modified | Offset 28, 208 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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> | ||
35 | <li><a·class="reference·internal"·href="#alert"·id="toc-entry- | 36 | <li><a·class="reference·internal"·href="#torrent-alert"·id="toc-entry-2">torrent_alert</a><ul> |
36 | <li><a·class="reference·internal"·href="#timestamp"·id="toc-entry-2">timestamp()</a></li> | ||
37 | <li><a·class="reference·internal"·href="#type"·id="toc-entry-3">type()</a></li> | ||
38 | <li><a·class="reference·internal"·href="#what"·id="toc-entry-4">what()</a></li> | ||
39 | <li><a·class="reference·internal"·href="#message"·id="toc-entry- | 37 | <li><a·class="reference·internal"·href="#message"·id="toc-entry-3">message()</a></li> |
40 | <li><a·class="reference·internal"·href="#category"·id="toc-entry-6">category()</a></li> | ||
41 | </ul> | 38 | </ul> |
42 | </li> | 39 | </li> |
43 | <li><a·class="reference·internal"·href="# | 40 | <li><a·class="reference·internal"·href="#peer-alert"·id="toc-entry-4">peer_alert</a></li> |
44 | <li><a·class="reference·internal"·href="#t | 41 | <li><a·class="reference·internal"·href="#tracker-alert"·id="toc-entry-5">tracker_alert</a><ul> |
45 | <li><a·class="reference·internal"·href="# | 42 | <li><a·class="reference·internal"·href="#tracker-url"·id="toc-entry-6">tracker_url()</a></li> |
46 | </ul> | 43 | </ul> |
47 | </li> | 44 | </li> |
45 | <li><a·class="reference·internal"·href="#torrent-removed-alert"·id="toc-entry-7">torrent_removed_alert</a></li> | ||
48 | <li><a·class="reference·internal"·href="#pe | 46 | <li><a·class="reference·internal"·href="#read-piece-alert"·id="toc-entry-8">read_piece_alert</a></li> |
47 | <li><a·class="reference·internal"·href="#file-completed-alert"·id="toc-entry-9">file_completed_alert</a></li> | ||
49 | <li><a·class="reference·internal"·href="# | 48 | <li><a·class="reference·internal"·href="#file-renamed-alert"·id="toc-entry-10">file_renamed_alert</a><ul> |
50 | <li><a·class="reference·internal"·href="# | 49 | <li><a·class="reference·internal"·href="#old-name-new-name"·id="toc-entry-11">old_name()·new_name()</a></li> |
51 | </ul> | 50 | </ul> |
52 | </li> | 51 | </li> |
53 | <li><a·class="reference·internal"·href="#torrent-removed-alert"·id="toc-entry-13">torrent_removed_alert</a></li> | ||
54 | <li><a·class="reference·internal"·href="#read-piece-alert"·id="toc-entry-14">read_piece_alert</a></li> | ||
55 | <li><a·class="reference·internal"·href="#file-completed-alert"·id="toc-entry-15">file_completed_alert</a></li> | ||
56 | <li><a·class="reference·internal"·href="#file-renamed-alert"·id="toc-entry-1 | 52 | <li><a·class="reference·internal"·href="#file-rename-failed-alert"·id="toc-entry-12">file_rename_failed_alert</a></li> |
57 | <li><a·class="reference·internal"·href="# | 53 | <li><a·class="reference·internal"·href="#performance-alert"·id="toc-entry-13">performance_alert</a><ul> |
54 | <li><a·class="reference·internal"·href="#enum-performance-warning-t"·id="toc-entry-14">enum·performance_warning_t</a></li> | ||
58 | </ul> | 55 | </ul> |
59 | </li> | 56 | </li> |
60 | <li><a·class="reference·internal"·href="# | 57 | <li><a·class="reference·internal"·href="#state-changed-alert"·id="toc-entry-15">state_changed_alert</a></li> |
61 | <li><a·class="reference·internal"·href="# | 58 | <li><a·class="reference·internal"·href="#tracker-error-alert"·id="toc-entry-16">tracker_error_alert</a><ul> |
62 | <li><a·class="reference·internal"·href="# | 59 | <li><a·class="reference·internal"·href="#failure-reason"·id="toc-entry-17">failure_reason()</a></li> |
63 | </ul> | 60 | </ul> |
64 | </li> | 61 | </li> |
65 | <li><a·class="reference·internal"·href="#state-changed-alert"·id="toc-entry-21">state_changed_alert</a></li> | ||
66 | <li><a·class="reference·internal"·href="#tracker- | 62 | <li><a·class="reference·internal"·href="#tracker-warning-alert"·id="toc-entry-18">tracker_warning_alert</a><ul> |
67 | <li><a·class="reference·internal"·href="# | 63 | <li><a·class="reference·internal"·href="#warning-message"·id="toc-entry-19">warning_message()</a></li> |
68 | </ul> | 64 | </ul> |
69 | </li> | 65 | </li> |
66 | <li><a·class="reference·internal"·href="#scrape-reply-alert"·id="toc-entry-20">scrape_reply_alert</a></li> | ||
70 | <li><a·class="reference·internal"·href="# | 67 | <li><a·class="reference·internal"·href="#scrape-failed-alert"·id="toc-entry-21">scrape_failed_alert</a><ul> |
71 | <li><a·class="reference·internal"·href="# | 68 | <li><a·class="reference·internal"·href="#error-message"·id="toc-entry-22">error_message()</a></li> |
72 | </ul> | 69 | </ul> |
73 | </li> | 70 | </li> |
74 | <li><a·class="reference·internal"·href="# | 71 | <li><a·class="reference·internal"·href="#tracker-reply-alert"·id="toc-entry-23">tracker_reply_alert</a></li> |
72 | <li><a·class="reference·internal"·href="#dht-reply-alert"·id="toc-entry-24">dht_reply_alert</a></li> | ||
73 | <li><a·class="reference·internal"·href="#tracker-announce-alert"·id="toc-entry-25">tracker_announce_alert</a></li> | ||
75 | <li><a·class="reference·internal"·href="# | 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="#peer-ban-alert"·id="toc-entry-27">peer_ban_alert</a></li> | ||
76 | <li><a·class="reference·internal"·href="#peer-unsnubbed-alert"·id="toc-entry-28">peer_unsnubbed_alert</a></li> | ||
77 | <li><a·class="reference·internal"·href="#peer-snubbed-alert"·id="toc-entry-29">peer_snubbed_alert</a></li> | ||
76 | <li><a·class="reference·internal"·href="#error- | 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> | ||
77 | </ul> | 81 | </ul> |
78 | </li> | 82 | </li> |
79 | <li><a·class="reference·internal"·href="#tracker-reply-alert"·id="toc-entry-29">tracker_reply_alert</a></li> | ||
80 | <li><a·class="reference·internal"·href="#dht-reply-alert"·id="toc-entry-30">dht_reply_alert</a></li> | ||
81 | <li><a·class="reference·internal"·href="#tracker-announce-alert"·id="toc-entry-31">tracker_announce_alert</a></li> | ||
82 | <li><a·class="reference·internal"·href="#hash-failed-alert"·id="toc-entry-32">hash_failed_alert</a></li> | ||
83 | <li><a·class="reference·internal"·href="#peer-ban-alert"·id="toc-entry-33">peer_ban_alert</a></li> | ||
84 | <li><a·class="reference·internal"·href="#peer-unsnubbed-alert"·id="toc-entry-34">peer_unsnubbed_alert</a></li> | ||
85 | <li><a·class="reference·internal"·href="#peer-snubbed-alert"·id="toc-entry-35">peer_snubbed_alert</a></li> | ||
86 | <li><a·class="reference·internal"·href="#peer-error-alert"·id="toc-entry-36">peer_error_alert</a></li> | ||
87 | <li><a·class="reference·internal"·href="#peer-connect-alert"·id="toc-entry-3 | 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> | ||
88 | <li><a·class="reference·internal"·href="#e | 86 | <li><a·class="reference·internal"·href="#piece-finished-alert"·id="toc-entry-36">piece_finished_alert</a></li> |
87 | <li><a·class="reference·internal"·href="#request-dropped-alert"·id="toc-entry-37">request_dropped_alert</a></li> | ||
88 | <li><a·class="reference·internal"·href="#block-timeout-alert"·id="toc-entry-38">block_timeout_alert</a></li> | ||
89 | <li><a·class="reference·internal"·href="#block-finished-alert"·id="toc-entry-39">block_finished_alert</a></li> | ||
90 | <li><a·class="reference·internal"·href="#block-downloading-alert"·id="toc-entry-40">block_downloading_alert</a></li> | ||
91 | <li><a·class="reference·internal"·href="#unwanted-block-alert"·id="toc-entry-41">unwanted_block_alert</a></li> | ||
92 | <li><a·class="reference·internal"·href="#storage-moved-alert"·id="toc-entry-42">storage_moved_alert</a><ul> | ||
93 | <li><a·class="reference·internal"·href="#old-path-storage-path"·id="toc-entry-43">old_path()·storage_path()</a></li> | ||
89 | </ul> | 94 | </ul> |
90 | </li> | 95 | </li> |
91 | <li><a·class="reference·internal"·href="#peer-disconnected-alert"·id="toc-entry-39">peer_disconnected_alert</a></li> | ||
92 | <li><a·class="reference·internal"·href="#invalid-request-alert"·id="toc-entry-40">invalid_request_alert</a></li> | ||
93 | <li><a·class="reference·internal"·href="#torrent-finished-alert"·id="toc-entry-41">torrent_finished_alert</a></li> | ||
94 | <li><a·class="reference·internal"·href="#piece-finished-alert"·id="toc-entry-42">piece_finished_alert</a></li> | ||
95 | <li><a·class="reference·internal"·href="#request-dropped-alert"·id="toc-entry-43">request_dropped_alert</a></li> | ||
96 | <li><a·class="reference·internal"·href="#block-timeout-alert"·id="toc-entry-44">block_timeout_alert</a></li> | ||
97 | <li><a·class="reference·internal"·href="#block-finished-alert"·id="toc-entry-45">block_finished_alert</a></li> | ||
98 | <li><a·class="reference·internal"·href="#block-downloading-alert"·id="toc-entry-46">block_downloading_alert</a></li> | ||
99 | <li><a·class="reference·internal"·href="#unwanted-block-alert"·id="toc-entry-47">unwanted_block_alert</a></li> | ||
100 | <li><a·class="reference·internal"·href="#storage-moved-alert"·id="toc-entry-4 | 96 | <li><a·class="reference·internal"·href="#storage-moved-failed-alert"·id="toc-entry-44">storage_moved_failed_alert</a><ul> |
101 | <li><a·class="reference·internal"·href="# | 97 | <li><a·class="reference·internal"·href="#file-path"·id="toc-entry-45">file_path()</a></li> |
102 | </ul> | 98 | </ul> |
103 | </li> | 99 | </li> |
100 | <li><a·class="reference·internal"·href="#torrent-deleted-alert"·id="toc-entry-46">torrent_deleted_alert</a></li> | ||
101 | <li><a·class="reference·internal"·href="#torrent-delete-failed-alert"·id="toc-entry-47">torrent_delete_failed_alert</a></li> | ||
102 | <li><a·class="reference·internal"·href="#save-resume-data-alert"·id="toc-entry-48">save_resume_data_alert</a></li> | ||
104 | <li><a·class="reference·internal"·href="#s | 103 | <li><a·class="reference·internal"·href="#save-resume-data-failed-alert"·id="toc-entry-49">save_resume_data_failed_alert</a></li> |
104 | <li><a·class="reference·internal"·href="#torrent-paused-alert"·id="toc-entry-50">torrent_paused_alert</a></li> | ||
105 | <li><a·class="reference·internal"·href="#torrent-resumed-alert"·id="toc-entry-51">torrent_resumed_alert</a></li> | ||
106 | <li><a·class="reference·internal"·href="#torrent-checked-alert"·id="toc-entry-52">torrent_checked_alert</a></li> | ||
107 | <li><a·class="reference·internal"·href="#url-seed-alert"·id="toc-entry-53">url_seed_alert</a><ul> | ||
105 | <li><a·class="reference·internal"·href="# | 108 | <li><a·class="reference·internal"·href="#server-url"·id="toc-entry-54">server_url()</a></li> |
109 | <li><a·class="reference·internal"·href="#error-message-1"·id="toc-entry-55">error_message()</a></li> | ||
106 | </ul> | 110 | </ul> |
107 | </li> | 111 | </li> |
108 | <li><a·class="reference·internal"·href="#torrent-deleted-alert"·id="toc-entry-52">torrent_deleted_alert</a></li> | ||
109 | <li><a·class="reference·internal"·href="#torrent-delete-failed-alert"·id="toc-entry-53">torrent_delete_failed_alert</a></li> | ||
110 | <li><a·class="reference·internal"·href="#save-resume-data-alert"·id="toc-entry-54">save_resume_data_alert</a></li> | ||
111 | <li><a·class="reference·internal"·href="#save-resume-data-failed-alert"·id="toc-entry-55">save_resume_data_failed_alert</a></li> | ||
112 | <li><a·class="reference·internal"·href="#torrent-paused-alert"·id="toc-entry-56">torrent_paused_alert</a></li> | ||
113 | <li><a·class="reference·internal"·href="#torrent-resumed-alert"·id="toc-entry-57">torrent_resumed_alert</a></li> | ||
114 | <li><a·class="reference·internal"·href="#torrent-checked-alert"·id="toc-entry-58">torrent_checked_alert</a></li> | ||
115 | <li><a·class="reference·internal"·href="# | 112 | <li><a·class="reference·internal"·href="#file-error-alert"·id="toc-entry-56">file_error_alert</a><ul> |
116 | <li><a·class="reference·internal"·href="# | 113 | <li><a·class="reference·internal"·href="#filename"·id="toc-entry-57">filename()</a></li> |
117 | <li><a·class="reference·internal"·href="#error-message-1"·id="toc-entry-61">error_message()</a></li> | ||
118 | </ul> | 114 | </ul> |
119 | </li> | 115 | </li> |
116 | <li><a·class="reference·internal"·href="#metadata-failed-alert"·id="toc-entry-58">metadata_failed_alert</a></li> | ||
117 | <li><a·class="reference·internal"·href="#metadata-received-alert"·id="toc-entry-59">metadata_received_alert</a></li> | ||
120 | <li><a·class="reference·internal"·href="# | 118 | <li><a·class="reference·internal"·href="#udp-error-alert"·id="toc-entry-60">udp_error_alert</a></li> |
119 | <li><a·class="reference·internal"·href="#external-ip-alert"·id="toc-entry-61">external_ip_alert</a></li> | ||
120 | <li><a·class="reference·internal"·href="#listen-failed-alert"·id="toc-entry-62">listen_failed_alert</a><ul> | ||
121 | <li><a·class="reference·internal"·href="# | 121 | <li><a·class="reference·internal"·href="#listen-interface"·id="toc-entry-63">listen_interface()</a></li> |
Max diff block lines reached; 54021/67963 bytes (79.49%) of diff not shown. |
Offset 1, 29 lines modified | Offset 1, 23 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8a_\x8l_\x8e_\x8r_\x8t | ||
7 | ··········o·_\x8t_\x8i_\x8m_\x8e_\x8s_\x8t_\x8a_\x8m_\x8p_\x8(_\x8) | ||
8 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) | ||
9 | ··········o·_\x8w_\x8h_\x8a_\x8t_\x8(_\x8) | ||
10 | ··········o·_\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | ||
11 | ··········o·_\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
12 | ····*·_\x8d_\x8h_\x8t_\x8__\x8r_\x8o_\x8u_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8u_\x8c_\x8k_\x8e_\x8t | 6 | ····*·_\x8d_\x8h_\x8t_\x8__\x8r_\x8o_\x8u_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8u_\x8c_\x8k_\x8e_\x8t |
13 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 7 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
14 | ··········o·_\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | 8 | ··········o·_\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) |
15 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 9 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
16 | ····*·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 10 | ····*·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
17 | ··········o·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8u_\x8r_\x8l_\x8(_\x8) | 11 | ··········o·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8u_\x8r_\x8l_\x8(_\x8) |
18 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 12 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
19 | ····*·_\x8r_\x8e_\x8a_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 13 | ····*·_\x8r_\x8e_\x8a_\x8d_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
20 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8c_\x8o_\x8m_\x8p_\x8l_\x8e_\x8t_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 14 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8c_\x8o_\x8m_\x8p_\x8l_\x8e_\x8t_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
21 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 15 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
22 | ··········o·_\x8 | 16 | ··········o·_\x8o_.l_.d_.__.n_.a_.m_.e_.(_.)_.·_.n_.e_.w_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) |
23 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8a_\x8i_\x8l_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 17 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8a_\x8i_\x8l_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
24 | ····*·_\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 18 | ····*·_\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
25 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8w_\x8a_\x8r_\x8n_\x8i_\x8n_\x8g_\x8__\x8t | 19 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8w_\x8a_\x8r_\x8n_\x8i_\x8n_\x8g_\x8__\x8t |
26 | ····*·_\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8c_\x8h_\x8a_\x8n_\x8g_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 20 | ····*·_\x8s_\x8t_\x8a_\x8t_\x8e_\x8__\x8c_\x8h_\x8a_\x8n_\x8g_\x8e_\x8d_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
27 | ····*·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 21 | ····*·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
28 | ··········o·_\x8f_\x8a_\x8i_\x8l_\x8u_\x8r_\x8e_\x8__\x8r_\x8e_\x8a_\x8s_\x8o_\x8n_\x8(_\x8) | 22 | ··········o·_\x8f_\x8a_\x8i_\x8l_\x8u_\x8r_\x8e_\x8__\x8r_\x8e_\x8a_\x8s_\x8o_\x8n_\x8(_\x8) |
29 | ····*·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8w_\x8a_\x8r_\x8n_\x8i_\x8n_\x8g_\x8__\x8a_\x8l_\x8e_\x8r_\x8t | 23 | ····*·_\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8__\x8w_\x8a_\x8r_\x8n_\x8i_\x8n_\x8g_\x8__\x8a_\x8l_\x8e_\x8r_\x8t |
Offset 35, 18 lines modified | Offset 35, 18 lines modified | ||
35 | <li><a·class="reference·internal"·href="#bdecode-node"·id="toc-entry-1">bdecode_node</a><ul> | 35 | <li><a·class="reference·internal"·href="#bdecode-node"·id="toc-entry-1">bdecode_node</a><ul> |
36 | <li><a·class="reference·internal"·href="#bdecode-node-1"·id="toc-entry-2">bdecode_node()</a></li> | 36 | <li><a·class="reference·internal"·href="#bdecode-node-1"·id="toc-entry-2">bdecode_node()</a></li> |
37 | <li><a·class="reference·internal"·href="#bdecode-node-operator"·id="toc-entry-3">bdecode_node()·operator=()</a></li> | 37 | <li><a·class="reference·internal"·href="#bdecode-node-operator"·id="toc-entry-3">bdecode_node()·operator=()</a></li> |
38 | <li><a·class="reference·internal"·href="#type"·id="toc-entry-4">type()</a></li> | 38 | <li><a·class="reference·internal"·href="#type"·id="toc-entry-4">type()</a></li> |
39 | <li><a·class="reference·internal"·href="#bool"·id="toc-entry-5">bool()</a></li> | 39 | <li><a·class="reference·internal"·href="#bool"·id="toc-entry-5">bool()</a></li> |
40 | <li><a·class="reference·internal"·href="#non-owning"·id="toc-entry-6">non_owning()</a></li> | 40 | <li><a·class="reference·internal"·href="#non-owning"·id="toc-entry-6">non_owning()</a></li> |
41 | <li><a·class="reference·internal"·href="#data-section-data-offset"·id="toc-entry-7">data_section()·data_offset()</a></li> | 41 | <li><a·class="reference·internal"·href="#data-section-data-offset"·id="toc-entry-7">data_section()·data_offset()</a></li> |
42 | <li><a·class="reference·internal"·href="#list-at-list-int-value-at-list-s | 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- | 43 | <li><a·class="reference·internal"·href="#dict-find-dict-dict-find-int-dict-find-list-dict-at-dict-find-string-value-dict-find-dict-size-dict-find-string-dict-at-node-dict-find-int-value"·id="toc-entry-9">dict_find_dict()·dict_find_int()·dict_find_list()·dict_at()·dict_find_string_value()·dict_find()·dict_s[·...·truncated·by·diffoscope;·len:·59,·SHA:·80c38ce82ee38924b84d47e69763430680c995d14cfaaf33b9418e63ec1dd2b8·...·]()</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-offset-string-length-string-ptr-string-value"·id="toc-entry-11">string_offset()·string_length()·string_ptr()·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 6, 20 lines modified | Offset 6, 20 lines modified | ||
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·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | 8 | ··········o·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\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__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8)_\x8·_\x8d_\x8a_\x8t_\x8a_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\x8(_\x8) | 12 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8)_\x8·_\x8d_\x8a_\x8t_\x8a_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\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_\x8i_\x8z_\x8e_\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) | ||
14 | ··········o·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8l_\x8i_\x8s_\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__\x8s_\x8i_\x8z_\x8e_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8i_\x8n_\x8t | ||
15 | ·········· | 13 | ··········o·_.l_.i_.s_.t_.__.a_.t_.(_.)_.·_.l_.i_.s_.t_.__.i_.n_.t_.__.v_.a_.l_.u_.e_.__.a_.t_.(_.)_.·_.l_.i_.s_.t_.__.s_.t_.r_.i_.n_.g_.__.v_.a_.l_.u_.e_.__.a_.t_.(_.)_.·_.l_.i_.s_.t_.__.s_.i_.z_.e_\x8(_\x8) |
14 | ··········o·_\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__\x8i_\x8n_\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__\x8a_\x8t_\x8(_\x8) | ||
15 | ············_\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(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8s_\x8i_\x8z_\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__\x8 | 16 | ············_\x8d_\x8i_\x8c_\x8t_\x8__\x8a_.t_.__.n_.o_.d_.e_.(_.)_.·_.d_.i_.c_.t_.__.f_.i_.n_.d_.__.i_.n_.t_.__.v_.a_.l_.u_.e_\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__\x8o_.f_.f_.s_.e_.t_.(_.)_.·_.s_.t_.r_.i_.n_.g_.__.l_.e_.n_.g_.t_.h_.(_.)_.·_.s_.t_.r_.i_.n_.g_.__.p_.t_.r_\x8(_\x8)_\x8·_\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\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 34, 28 lines modified | Offset 34, 28 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="#i | 41 | <li><a·class="reference·internal"·href="#list-string-integer-preformatted-dict"·id="toc-entry-7">list()·string()·integer()·preformatted()·dict()</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> |
49 | <li><a·class="reference·internal"·href="#bencode"·id="toc-entry-13">bencode()</a></li> | ||
49 | <li><a·class="reference·internal"·href="#operator-2"·id="toc-entry-1 | 50 | <li><a·class="reference·internal"·href="#operator-2"·id="toc-entry-14">operator<<()</a></li> |
50 | <li><a·class="reference·internal"·href="#bencode"·id="toc-entry-14">bencode()</a></li> | ||
51 | </ul> | 51 | </ul> |
52 | </div> | 52 | </div> |
53 | <p>Bencoding·is·a·common·representation·in·bittorrent·used·for·dictionary, | 53 | <p>Bencoding·is·a·common·representation·in·bittorrent·used·for·dictionary, |
54 | list,·<a·class="reference·external"·href="reference- | 54 | list,·<a·class="reference·external"·href="reference-Core.html#int">int</a>·and·string·hierarchies.·It's·used·to·encode·.torrent·files·and |
55 | some·messages·in·the·network·protocol.·libtorrent·also·uses·it·to·store | 55 | some·messages·in·the·network·protocol.·libtorrent·also·uses·it·to·store |
56 | settings,·resume·data·and·other·<a·class="reference·external"·href="reference-Session.html#session">session</a>·state.</p> | 56 | settings,·resume·data·and·other·<a·class="reference·external"·href="reference-Session.html#session">session</a>·state.</p> |
57 | <p>Strings·in·bencoded·structures·do·not·necessarily·represent·text. | 57 | <p>Strings·in·bencoded·structures·do·not·necessarily·represent·text. |
58 | Strings·are·raw·byte·buffers·of·a·certain·length.·If·a·string·is·meant·to·be | 58 | Strings·are·raw·byte·buffers·of·a·certain·length.·If·a·string·is·meant·to·be |
59 | interpreted·as·text,·it·is·required·to·be·UTF-8·encoded.·See·<a·class="reference·external"·href="https://www.bittorrent.org/beps/bep_0003.html">BEP·3</a>.</p> | 59 | interpreted·as·text,·it·is·required·to·be·UTF-8·encoded.·See·<a·class="reference·external"·href="https://www.bittorrent.org/beps/bep_0003.html">BEP·3</a>.</p> |
60 | <p>The·function·for·decoding·bencoded·data·<a·class="reference·external"·href="reference-Bdecoding.html#bdecode()">bdecode()</a>,·returning·a·<a·class="reference·external"·href="reference-Bdecoding.html#bdecode_node">bdecode_node</a>. | 60 | <p>The·function·for·decoding·bencoded·data·<a·class="reference·external"·href="reference-Bdecoding.html#bdecode()">bdecode()</a>,·returning·a·<a·class="reference·external"·href="reference-Bdecoding.html#bdecode_node">bdecode_node</a>. |
61 | This·function·builds·a·tree·that·points·back·into·the·original·buffer.·The | 61 | This·function·builds·a·tree·that·points·back·into·the·original·buffer.·The |
Offset 5, 22 lines modified | Offset 5, 22 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·_\x8l_.i_.s_.t_.(_.)_.·_.s_.t_.r_.i_.n_.g_.(_.)_.·_.i_.n_.t_.e_.g_.e_.r_\x8(_\x8)_\x8·_\x8p_\x8r_\x8e_\x8f_\x8o_\x8r_\x8m_\x8a_\x8t_\x8t_\x8e_\x8d_\x8(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\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) | ||
19 | ····*·_\x8b_\x8e_\x8n_\x8c_\x8o_\x8d_\x8e_\x8(_\x8) | 18 | ····*·_\x8b_\x8e_\x8n_\x8c_\x8o_\x8d_\x8e_\x8(_\x8) |
19 | ····*·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_\x8<_\x8(_\x8) | ||
20 | Bencoding·is·a·common·representation·in·bittorrent·used·for·dictionary,·list, | 20 | Bencoding·is·a·common·representation·in·bittorrent·used·for·dictionary,·list, |
21 | _\x8i_\x8n_\x8t·and·string·hierarchies.·It's·used·to·encode·.torrent·files·and·some | 21 | _\x8i_\x8n_\x8t·and·string·hierarchies.·It's·used·to·encode·.torrent·files·and·some |
22 | messages·in·the·network·protocol.·libtorrent·also·uses·it·to·store·settings, | 22 | messages·in·the·network·protocol.·libtorrent·also·uses·it·to·store·settings, |
23 | resume·data·and·other·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·state. | 23 | resume·data·and·other·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·state. |
24 | Strings·in·bencoded·structures·do·not·necessarily·represent·text.·Strings·are | 24 | Strings·in·bencoded·structures·do·not·necessarily·represent·text.·Strings·are |
25 | raw·byte·buffers·of·a·certain·length.·If·a·string·is·meant·to·be·interpreted·as | 25 | raw·byte·buffers·of·a·certain·length.·If·a·string·is·meant·to·be·interpreted·as |
26 | text,·it·is·required·to·be·UTF-8·encoded.·See·_\x8B_\x8E_\x8P_\x8·_\x83. | 26 | text,·it·is·required·to·be·UTF-8·encoded.·See·_\x8B_\x8E_\x8P_\x8·_\x83. |
Offset 28, 52 lines modified | Offset 28, 191 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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- | 35 | <li><a·class="reference·internal"·href="#peer-request"·id="toc-entry-1">peer_request</a><ul> |
36 | <li><a·class="reference·internal"·href="# | 36 | <li><a·class="reference·internal"·href="#operator"·id="toc-entry-2">operator==()</a></li> |
37 | </ul> | 37 | </ul> |
38 | </li> | 38 | </li> |
39 | <li><a·class="reference·internal"·href="#piece-block"·id="toc-entry-3">piece_block</a></li> | ||
39 | <li><a·class="reference·internal"·href="#info-hash-t"·id="toc-entry- | 40 | <li><a·class="reference·internal"·href="#info-hash-t"·id="toc-entry-4">info_hash_t</a><ul> |
40 | <li><a·class="reference·internal"·href="#info-hash-t-1"·id="toc-entry- | 41 | <li><a·class="reference·internal"·href="#info-hash-t-1"·id="toc-entry-5">info_hash_t()</a></li> |
41 | <li><a·class="reference·internal"·href="#has- | 42 | <li><a·class="reference·internal"·href="#has-has-v2-has-v1"·id="toc-entry-6">has()·has_v2()·has_v1()</a></li> |
42 | <li><a·class="reference·internal"·href="#get"·id="toc-entry- | 43 | <li><a·class="reference·internal"·href="#get"·id="toc-entry-7">get()</a></li> |
43 | <li><a·class="reference·internal"·href="#get-best"·id="toc-entry- | 44 | <li><a·class="reference·internal"·href="#get-best"·id="toc-entry-8">get_best()</a></li> |
44 | <li><a·class="reference·internal"·href="#for-each"·id="toc-entry- | 45 | <li><a·class="reference·internal"·href="#for-each"·id="toc-entry-9">for_each()</a></li> |
45 | </ul> | 46 | </ul> |
46 | </li> | 47 | </li> |
47 | <li><a·class="reference·internal"·href="#piece-block"·id="toc-entry-9">piece_block</a></li> | ||
48 | <li><a·class="reference·internal"·href="#peer- | 48 | <li><a·class="reference·internal"·href="#peer-info"·id="toc-entry-10">peer_info</a><ul> |
49 | <li><a·class="reference·internal"·href="# | 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="#version"·id="toc-entry-12">version()</a></li> | ||
53 | <li><a·class="reference·internal"·href="#load-torrent-file-load-torrent-parsed-load-torrent-buffer"·id="toc-entry-13">load_torrent_file()·load_torrent_parsed()·load_torrent_buffer()</a></li> | ||
54 | <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="#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> | 55 | <li><a·class="reference·internal"·href="#truncate-files"·id="toc-entry-15">truncate_files()</a></li> |
56 | <li><a·class="reference·internal"·href="#make-magnet-uri"·id="toc-entry-16">make_magnet_uri()</a></li> | ||
57 | <li><a·class="reference·internal"·href="# | 56 | <li><a·class="reference·internal"·href="#version"·id="toc-entry-16">version()</a></li> |
57 | <li><a·class="reference·internal"·href="#load-torrent-file-load-torrent-parsed-load-torrent-buffer"·id="toc-entry-17">load_torrent_file()·load_torrent_parsed()·load_torrent_buffer()</a></li> | ||
58 | <li><a·class="reference·internal"·href="#enum-event-t"·id="toc-entry-18">enum·event_t</a></li> | ||
58 | <li><a·class="reference·internal"·href="#enum-portmap-transport"·id="toc-entry-1 | 59 | <li><a·class="reference·internal"·href="#enum-portmap-transport"·id="toc-entry-19">enum·portmap_transport</a></li> |
59 | <li><a·class="reference·internal"·href="#enum-portmap-protocol"·id="toc-entry- | 60 | <li><a·class="reference·internal"·href="#enum-portmap-protocol"·id="toc-entry-20">enum·portmap_protocol</a></li> |
61 | <li><a·class="reference·internal"·href="#enum-connection-type"·id="toc-entry-21">enum·connection_type</a></li> | ||
60 | <li><a·class="reference·internal"·href="#enum-protocol-version"·id="toc-entry-2 | 62 | <li><a·class="reference·internal"·href="#enum-protocol-version"·id="toc-entry-22">enum·protocol_version</a></li> |
61 | <li><a·class="reference·internal"·href="#enum-event-t"·id="toc-entry-21">enum·event_t</a></li> | ||
62 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-2 | 63 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-23">enum·socket_type_t</a></li> |
63 | <li><a·class="reference·internal"·href="#enum-connection-type"·id="toc-entry-23">enum·connection_type</a></li> | ||
64 | <li><a·class="reference·internal"·href="#torrent-flags-t"·id="toc-entry-24">torrent_flags_t</a></li> | 64 | <li><a·class="reference·internal"·href="#torrent-flags-t"·id="toc-entry-24">torrent_flags_t</a></li> |
65 | <li><a·class="reference·internal"·href="#download-priority-t"·id="toc-entry-25">download_priority_t</a></li> | 65 | <li><a·class="reference·internal"·href="#download-priority-t"·id="toc-entry-25">download_priority_t</a></li> |
66 | <li><a·class="reference·internal"·href="#pex-flags-t"·id="toc-entry-26">pex_flags_t</a></li> | ||
66 | <li><a·class="reference·internal"·href="#int"·id="toc-entry-2 | 67 | <li><a·class="reference·internal"·href="#int"·id="toc-entry-27">int</a></li> |
67 | <li><a·class="reference·internal"·href="#char-const"·id="toc-entry-2 | 68 | <li><a·class="reference·internal"·href="#char-const"·id="toc-entry-28">char·const*</a></li> |
68 | <li><a·class="reference·internal"·href="#std-uint64-t"·id="toc-entry-2 | 69 | <li><a·class="reference·internal"·href="#std-uint64-t"·id="toc-entry-29">std::uint64_t</a></li> |
69 | <li><a·class="reference·internal"·href="#pex-flags-t"·id="toc-entry-29">pex_flags_t</a></li> | ||
70 | </ul> | 70 | </ul> |
71 | </div> | 71 | </div> |
72 | <a·name="peer_request"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+peer_request&labels=documentation&body=Documentation+under+heading+%22class+peer_request%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="peer-request"> | ||
73 | <h1>peer_request</h1> | ||
74 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/peer_request.hpp">libtorrent/peer_request.hpp</a>"</p> | ||
75 | <p>represents·a·byte·range·within·a·piece.·Internally·this·is·is·used·for | ||
76 | incoming·piece·requests.</p> | ||
77 | <pre·class="literal-block"> | ||
78 | struct·peer_request | ||
79 | { | ||
80 | ···bool·<strong>operator==</strong>·(peer_request·const&·r)·const; | ||
81 | ···piece_index_t·piece; | ||
82 | ···int·start; | ||
83 | ···int·length; | ||
84 | }; | ||
85 | </pre> | ||
86 | <a·name="operator==()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_request%3A%3A%5Boperator%3D%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22peer_request%3A%3A%5Boperator%3D%3D%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="operator"> | ||
87 | <h2>operator==()</h2> | ||
88 | <pre·class="literal-block"> | ||
89 | bool·<strong>operator==</strong>·(peer_request·const&·r)·const; | ||
90 | </pre> | ||
91 | <p>returns·true·if·the·right·hand·side·<a·class="reference·external"·href="reference-Core.html#peer_request">peer_request</a>·refers·to·the·same | ||
92 | range·as·this·does.</p> | ||
93 | <a·name="piece"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_request%3A%3A%5Bpiece%5D&labels=documentation&body=Documentation+under+heading+%22peer_request%3A%3A%5Bpiece%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | ||
94 | <dt>piece</dt> | ||
95 | <dd>The·index·of·the·piece·in·which·the·range·starts.</dd> | ||
96 | </dl> | ||
97 | <a·name="start"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_request%3A%3A%5Bstart%5D&labels=documentation&body=Documentation+under+heading+%22peer_request%3A%3A%5Bstart%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | ||
98 | <dt>start</dt> | ||
99 | <dd>The·byte·offset·within·that·piece·where·the·range·starts.</dd> | ||
100 | </dl> | ||
101 | <a·name="length"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:peer_request%3A%3A%5Blength%5D&labels=documentation&body=Documentation+under+heading+%22peer_request%3A%3A%5Blength%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | ||
102 | <dt>length</dt> | ||
103 | <dd>The·size·of·the·range,·in·bytes.</dd> | ||
104 | </dl> | ||
105 | <a·name="piece_block"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+piece_block&labels=documentation&body=Documentation+under+heading+%22class+piece_block%22+could+be+improved">report·issue</a>]</span></div> | ||
106 | </div> | ||
107 | <div·class="section"·id="piece-block"> | ||
108 | <h1>piece_block</h1> | ||
109 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/piece_block.hpp">libtorrent/piece_block.hpp</a>"</p> | ||
110 | <pre·class="literal-block"> | ||
111 | struct·piece_block | ||
112 | { | ||
113 | ···<strong>piece_block</strong>·(piece_index_t·p_index,·int·b_index); | ||
114 | ···<strong>piece_block</strong>·()·=·default; | ||
115 | ···bool·<strong>operator<</strong>·(piece_block·const&·b)·const; | ||
116 | ···bool·<strong>operator==</strong>·(piece_block·const&·b)·const; | ||
117 | ···bool·<strong>operator!=</strong>·(piece_block·const&·b)·const; | ||
118 | ···static·const·piece_block·invalid; | ||
119 | ···piece_index_t·piece_index·{0}; | ||
120 | ···int·<strong>block_index</strong>··=·0; | ||
121 | }; | ||
122 | </pre> | ||
123 | <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> | ||
124 | <div·class="section"·id="info-hash-t"> | ||
125 | <h1>info_hash_t</h1> | ||
126 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/info_hash.hpp">libtorrent/info_hash.hpp</a>"</p> | ||
127 | <p>class·holding·the·info-hash·of·a·torrent.·It·can·hold·a·v1·info-hash | ||
128 | (SHA-1)·or·a·v2·info-hash·(SHA-256)·or·both.</p> | ||
129 | <div·class="admonition·note"> | ||
130 | <p·class="first·admonition-title">Note</p> | ||
131 | <p·class="last">If·<tt·class="docutils·literal">has_v2()</tt>·is·false·then·the·v1·hash·might·actually·be·a·truncated | ||
132 | v2·hash</p> | ||
133 | </div> | ||
134 | <pre·class="literal-block"> | ||
135 | struct·info_hash_t | ||
136 | { | ||
137 | ···<strong>info_hash_t</strong>·(sha1_hash·h1,·sha256_hash·h2)·noexcept; | ||
138 | ···<strong>info_hash_t</strong>·()·noexcept·=·default; | ||
139 | ···explicit·<strong>info_hash_t</strong>·(sha1_hash·h1)·noexcept; | ||
140 | ···explicit·<strong>info_hash_t</strong>·(sha256_hash·h2)·noexcept; | ||
141 | ···bool·<strong>has_v1</strong>·()·const; | ||
142 | ···bool·<strong>has</strong>·(protocol_version·v)·const; | ||
143 | ···bool·<strong>has_v2</strong>·()·const; | ||
144 | ···sha1_hash·<strong>get</strong>·(protocol_version·v)·const; | ||
145 | ···sha1_hash·<strong>get_best</strong>·()·const; | ||
Max diff block lines reached; 33979/49432 bytes (68.74%) of diff not shown. |
Offset 1, 41 lines modified | Offset 1, 142 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8 | 6 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8r_.e_.q_.u_.e_.s_.t |
7 | ··········o·_\x8 | 7 | ··········o·_\x8o_.p_.e_.r_.a_.t_.o_.r_.=_.=_\x8(_\x8) |
8 | ····*·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k | ||
8 | ····*·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t | 9 | ····*·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t |
9 | ··········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) |
10 | ··········o·_\x8h_\x8a_\x8s_\x8 | 11 | ··········o·_\x8h_\x8a_\x8s_\x8(_.)_.·_.h_.a_.s_.__.v_.2_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8__\x8v_\x81_\x8(_\x8) |
11 | ··········o·_\x8g_\x8e_\x8t_\x8(_\x8) | 12 | ··········o·_\x8g_\x8e_\x8t_\x8(_\x8) |
12 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8b_\x8e_\x8s_\x8t_\x8(_\x8) | 13 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8b_\x8e_\x8s_\x8t_\x8(_\x8) |
13 | ··········o·_\x8f_\x8o_\x8r_\x8__\x8e_\x8a_\x8c_\x8h_\x8(_\x8) | 14 | ··········o·_\x8f_\x8o_\x8r_\x8__\x8e_\x8a_\x8c_\x8h_\x8(_\x8) |
14 | ····*·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k | ||
15 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t | ||
16 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8=_\x8(_\x8) | ||
17 | ····*·_\x8 | 15 | ····*·_\x8p_.e_.e_.r_.__.i_.n_.f_.o |
18 | ···· | 16 | ··········o·_.i_.2_.p_.__.d_.e_.s_.t_.i_.n_.a_.t_.i_.o_.n_\x8(_\x8) |
19 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8e_\x8q_\x8u_\x8a_\x8l_\x8(_\x8) | 17 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8e_\x8q_\x8u_\x8a_\x8l_\x8(_\x8) |
20 | ····*·_\x8t_\x8r_\x8u_\x8n_\x8c_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
21 | ····*·_\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | 18 | ····*·_\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) |
22 | ····*·_\x8p_\x8a_\x8r_\x8s_\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 | ····*·_\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 | ····*·_\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__\x8p_\x8a_\x8r_\x8s_\x8e_\x8d_\x8(_\x8)_\x8·_\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8) | ||
23 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t | ||
23 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t | 24 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t |
24 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l | 25 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l |
26 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8y_\x8p_\x8e | ||
25 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n | 27 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n |
26 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t | ||
27 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | 28 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t |
28 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8y_\x8p_\x8e | ||
29 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | 29 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t |
30 | ····*·_\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8__\x8t | 30 | ····*·_\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8__\x8t |
31 | ····*·_\x8p_\x8e_\x8x_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
31 | ····*·_\x8i_\x8n_\x8t | 32 | ····*·_\x8i_\x8n_\x8t |
32 | ····*·_\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* | 33 | ····*·_\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* |
33 | ····*·_\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t | 34 | ····*·_\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t |
34 | 35 | [_.r_.e_.p_.o_.r_.t_.·_.i_.s_.s_.u_.e] | |
36 | *\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* | ||
37 | 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" | ||
38 | represents·a·byte·range·within·a·piece.·Internally·this·is·is·used·for·incoming | ||
39 | piece·requests. | ||
40 | struct·peer_request | ||
41 | { | ||
42 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(peer_request·const&·r)·const; | ||
43 | ···piece_index_t·piece; | ||
44 | ···int·start; | ||
45 | ···int·length; | ||
46 | }; | ||
47 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
48 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
49 | bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(peer_request·const&·r)·const; | ||
50 | 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 | ||
51 | this·does. | ||
52 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
53 | ··piece | ||
54 | ······The·index·of·the·piece·in·which·the·range·starts. | ||
55 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
56 | ··start | ||
57 | ······The·byte·offset·within·that·piece·where·the·range·starts. | ||
58 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
59 | ··length | ||
60 | ······The·size·of·the·range,·in·bytes. | ||
61 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
62 | *\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* | ||
63 | 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" | ||
64 | struct·piece_block | ||
65 | { | ||
66 | ···p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·(piece_index_t·p_index,·int·b_index); | ||
67 | ···p\x8pi\x8ie\x8ec\x8ce\x8e_\x8_b\x8bl\x8lo\x8oc\x8ck\x8k·()·=·default; | ||
68 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r<\x8<·(piece_block·const&·b)·const; | ||
69 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8==\x8=·(piece_block·const&·b)·const; | ||
70 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r!\x8!=\x8=·(piece_block·const&·b)·const; | ||
71 | ···static·const·piece_block·invalid; | ||
72 | ···piece_index_t·piece_index·{0}; | ||
73 | ···int·b\x8bl\x8lo\x8oc\x8ck\x8k_\x8_i\x8in\x8nd\x8de\x8ex\x8x··=·0; | ||
74 | }; | ||
75 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
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* | ||
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" | ||
78 | class·holding·the·info-hash·of·a·torrent.·It·can·hold·a·v1·info-hash·(SHA-1)·or | ||
79 | a·v2·info-hash·(SHA-256)·or·both. | ||
80 | Note | ||
81 | If·has_v2()·is·false·then·the·v1·hash·might·actually·be·a·truncated·v2·hash | ||
82 | struct·info_hash_t | ||
83 | { | ||
84 | ···i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1,·sha256_hash·h2)·noexcept; | ||
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·(sha1_hash·h1)·noexcept; | ||
87 | ···explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha256_hash·h2)·noexcept; | ||
88 | ···bool·h\x8ha\x8as\x8s_\x8_v\x8v1\x81·()·const; | ||
89 | ···bool·h\x8ha\x8as\x8s·(protocol_version·v)·const; | ||
90 | ···bool·h\x8ha\x8as\x8s_\x8_v\x8v2\x82·()·const; | ||
91 | ···sha1_hash·g\x8ge\x8et\x8t·(protocol_version·v)·const; | ||
92 | ···sha1_hash·g\x8ge\x8et\x8t_\x8_b\x8be\x8es\x8st\x8t·()·const; | ||
93 | ···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) | ||
95 | noexcept; | ||
96 | ···template·<typename·F>·void·f\x8fo\x8or\x8r_\x8_e\x8ea\x8ac\x8ch\x8h·(F·f)·const; | ||
97 | ···bool·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r<\x8<·(info_hash_t·const&·o)·const; | ||
98 | ···friend·std::ostream&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r<\x8<<\x8<·(std::ostream&·os,·info_hash_t·const&·ih); | ||
99 | ···sha1_hash·v1; | ||
100 | ···sha256_hash·v2; | ||
101 | }; | ||
102 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
103 | *\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* | ||
104 | i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1,·sha256_hash·h2)·noexcept; | ||
105 | i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·()·noexcept·=·default; | ||
106 | explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha1_hash·h1)·noexcept; | ||
107 | explicit·i\x8in\x8nf\x8fo\x8o_\x8_h\x8ha\x8as\x8sh\x8h_\x8_t\x8t·(sha256_hash·h2)·noexcept; | ||
108 | The·default·constructor·creates·an·object·that·has·neither·a·v1·or·v2·hash. | ||
109 | For·backwards·compatibility,·make·it·possible·to·construct·directly·from·a·v1 | ||
110 | hash.·This·constructor·allows·i\x8im\x8mp\x8pl\x8li\x8ic\x8ci\x8it\x8t·conversion·from·a·v1·hash,·but·the | ||
111 | implicitness·is·deprecated. | ||
112 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
113 | *\x8**\x8**\x8**\x8**\x8*·h\x8ha\x8as\x8s(\x8()\x8)·h\x8ha\x8as\x8s_\x8_v\x8v2\x82(\x8()\x8)·h\x8ha\x8as\x8s_\x8_v\x8v1\x81(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
114 | bool·h\x8ha\x8as\x8s_\x8_v\x8v1\x81·()·const; | ||
115 | bool·h\x8ha\x8as\x8s·(protocol_version·v)·const; | ||
116 | bool·h\x8ha\x8as\x8s_\x8_v\x8v2\x82·()·const; | ||
117 | returns·true·if·the·corresponding·info·hash·is·present·in·this·object. | ||
118 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
Max diff block lines reached; 23156/30671 bytes (75.50%) of diff not shown. |
Offset 37, 26 lines modified | Offset 37, 26 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-url-seed-add-http-seed"·id="toc-entry-10">add_url_seed()·add_http_seed()</a></li> |
45 | <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-11">add_node()</a></li> | 45 | <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-11">add_node()</a></li> |
46 | <li><a·class="reference·internal"·href="#add-tracker"·id="toc-entry-12">add_tracker()</a></li> | 46 | <li><a·class="reference·internal"·href="#add-tracker"·id="toc-entry-12">add_tracker()</a></li> |
47 | <li><a·class="reference·internal"·href="#set-root-cert"·id="toc-entry-13">set_root_cert()</a></li> | 47 | <li><a·class="reference·internal"·href="#set-root-cert"·id="toc-entry-13">set_root_cert()</a></li> |
48 | <li><a·class="reference·internal"·href="#set-priv-priv"·id="toc-entry-14">set_priv()·priv()</a></li> | 48 | <li><a·class="reference·internal"·href="#set-priv-priv"·id="toc-entry-14">set_priv()·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- | 55 | <li><a·class="reference·internal"·href="#add-collection-add-similar-torrent"·id="toc-entry-21">add_collection()·add_similar_torrent()</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> |
62 | <p>This·section·describes·the·functions·and·classes·that·are·used | 62 | <p>This·section·describes·the·functions·and·classes·that·are·used |
Offset 8, 26 lines modified | Offset 8, 26 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__\x8u_.r_.l_.__.s_.e_.e_.d_.(_.)_.·_.a_.d_.d_.__.h_.t_.t_.p_\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·_\x8s_\x8e_\x8t_\x8__\x8p_\x8r_\x8i_\x8v_\x8(_\x8)_\x8·_\x8p_\x8r_\x8i_\x8v_\x8(_\x8) | 19 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8p_\x8r_\x8i_\x8v_\x8(_\x8)_\x8·_\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__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8)_\x8·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | ||
26 | ··········o·_\x8 | 25 | ··········o·_\x8p_.i_.e_.c_.e_.__.s_.i_.z_.e_.(_.)_.·_.p_.i_.e_.c_.e_.__.l_.e_.n_.g_.t_.h_\x8(_\x8) |
26 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8c_\x8o_\x8l_\x8l_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8)_\x8·_\x8a_\x8d_\x8d_\x8__\x8s_\x8i_\x8m_\x8i_\x8l_\x8a_\x8r_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\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. |
33 | ···2.·the·torrent·properties·are·set,·such·as·tracker·url,·web·seeds,·DHT·nodes | 33 | ···2.·the·torrent·properties·are·set,·such·as·tracker·url,·web·seeds,·DHT·nodes |
Offset 28, 54 lines modified | Offset 28, 54 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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="# | 35 | <li><a·class="reference·internal"·href="#settings-interface"·id="toc-entry-1">settings_interface</a></li> |
36 | <li><a·class="reference·internal"·href="#disk- | 36 | <li><a·class="reference·internal"·href="#disk-observer"·id="toc-entry-2">disk_observer</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> | ||
40 | <li><a·class="reference·internal"·href="#d | 37 | <li><a·class="reference·internal"·href="#on-disk"·id="toc-entry-3">on_disk()</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> | ||
45 | </ul> | 38 | </ul> |
46 | </li> | 39 | </li> |
40 | <li><a·class="reference·internal"·href="#open-file-state"·id="toc-entry-4">open_file_state</a></li> | ||
47 | <li><a·class="reference·internal"·href="#disk- | 41 | <li><a·class="reference·internal"·href="#disk-interface"·id="toc-entry-5">disk_interface</a><ul> |
42 | <li><a·class="reference·internal"·href="#new-torrent"·id="toc-entry-6">new_torrent()</a></li> | ||
43 | <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-7">remove_torrent()</a></li> | ||
44 | <li><a·class="reference·internal"·href="#async-read-async-write"·id="toc-entry-8">async_read()·async_write()</a></li> | ||
45 | <li><a·class="reference·internal"·href="#async-hash"·id="toc-entry-9">async_hash()</a></li> | ||
46 | <li><a·class="reference·internal"·href="#async-hash2"·id="toc-entry-10">async_hash2()</a></li> | ||
47 | <li><a·class="reference·internal"·href="#async-move-storage"·id="toc-entry-11">async_move_storage()</a></li> | ||
48 | <li><a·class="reference·internal"·href="#async-release-files"·id="toc-entry-12">async_release_files()</a></li> | ||
49 | <li><a·class="reference·internal"·href="#async-check-files"·id="toc-entry-13">async_check_files()</a></li> | ||
50 | <li><a·class="reference·internal"·href="#async-stop-torrent"·id="toc-entry-14">async_stop_torrent()</a></li> | ||
51 | <li><a·class="reference·internal"·href="#async-rename-file"·id="toc-entry-15">async_rename_file()</a></li> | ||
52 | <li><a·class="reference·internal"·href="#async-delete-files"·id="toc-entry-16">async_delete_files()</a></li> | ||
53 | <li><a·class="reference·internal"·href="#async-set-file-priority"·id="toc-entry-17">async_set_file_priority()</a></li> | ||
54 | <li><a·class="reference·internal"·href="#async-clear-piece"·id="toc-entry-18">async_clear_piece()</a></li> | ||
55 | <li><a·class="reference·internal"·href="#update-stats-counters"·id="toc-entry-19">update_stats_counters()</a></li> | ||
56 | <li><a·class="reference·internal"·href="#get-status"·id="toc-entry-20">get_status()</a></li> | ||
48 | <li><a·class="reference·internal"·href="# | 57 | <li><a·class="reference·internal"·href="#abort"·id="toc-entry-21">abort()</a></li> |
58 | <li><a·class="reference·internal"·href="#submit-jobs"·id="toc-entry-22">submit_jobs()</a></li> | ||
59 | <li><a·class="reference·internal"·href="#settings-updated"·id="toc-entry-23">settings_updated()</a></li> | ||
49 | </ul> | 60 | </ul> |
50 | </li> | 61 | </li> |
62 | <li><a·class="reference·internal"·href="#storage-holder"·id="toc-entry-24">storage_holder</a></li> | ||
51 | <li><a·class="reference·internal"·href="# | 63 | <li><a·class="reference·internal"·href="#buffer-allocator-interface"·id="toc-entry-25">buffer_allocator_interface</a></li> |
52 | <li><a·class="reference·internal"·href="#open-file-state"·id="toc-entry-14">open_file_state</a></li> | ||
53 | <li><a·class="reference·internal"·href="#disk- | 64 | <li><a·class="reference·internal"·href="#disk-buffer-holder"·id="toc-entry-26">disk_buffer_holder</a><ul> |
54 | <li><a·class="reference·internal"·href="#new-torrent"·id="toc-entry-16">new_torrent()</a></li> | ||
55 | <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-17">remove_torrent()</a></li> | ||
56 | <li><a·class="reference·internal"·href="#async-read-async-write"·id="toc-entry-18">async_read()·async_write()</a></li> | ||
57 | <li><a·class="reference·internal"·href="#async-hash"·id="toc-entry-19">async_hash()</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-21">async_move_storage()</a></li> | ||
60 | <li><a·class="reference·internal"·href="#async-release-files"·id="toc-entry-22">async_release_files()</a></li> | ||
61 | <li><a·class="reference·internal"·href="# | 65 | <li><a·class="reference·internal"·href="#disk-buffer-holder-1"·id="toc-entry-27">disk_buffer_holder()</a></li> |
62 | <li><a·class="reference·internal"·href="#async-stop-torrent"·id="toc-entry-24">async_stop_torrent()</a></li> | ||
63 | <li><a·class="reference·internal"·href="#async-rename-file"·id="toc-entry-25">async_rename_file()</a></li> | ||
64 | <li><a·class="reference·internal"·href="#async-delete-files"·id="toc-entry-26">async_delete_files()</a></li> | ||
65 | <li><a·class="reference·internal"·href="#async-set-file-priority"·id="toc-entry-27">async_set_file_priority()</a></li> | ||
66 | <li><a·class="reference·internal"·href="# | 66 | <li><a·class="reference·internal"·href="#disk-buffer-holder-2"·id="toc-entry-28">disk_buffer_holder()</a></li> |
67 | <li><a·class="reference·internal"·href="# | 67 | <li><a·class="reference·internal"·href="#disk-buffer-holder-3"·id="toc-entry-29">~disk_buffer_holder()</a></li> |
68 | <li><a·class="reference·internal"·href="# | 68 | <li><a·class="reference·internal"·href="#data"·id="toc-entry-30">data()</a></li> |
69 | <li><a·class="reference·internal"·href="# | 69 | <li><a·class="reference·internal"·href="#reset"·id="toc-entry-31">reset()</a></li> |
70 | <li><a·class="reference·internal"·href="#swap"·id="toc-entry-32">swap()</a></li> | ||
71 | <li><a·class="reference·internal"·href="#is-mutable"·id="toc-entry-33">is_mutable()</a></li> | ||
70 | <li><a·class="reference·internal"·href="# | 72 | <li><a·class="reference·internal"·href="#bool"·id="toc-entry-34">bool()</a></li> |
71 | <li><a·class="reference·internal"·href="#settings-updated"·id="toc-entry-33">settings_updated()</a></li> | ||
72 | </ul> | 73 | </ul> |
73 | </li> | 74 | </li> |
74 | <li><a·class="reference·internal"·href="#storage-holder"·id="toc-entry-34">storage_holder</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>The·disk·I/O·can·be·customized·in·libtorrent.·In·previous·versions,·the | 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 | 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 | 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 | 81 | disk·I/O·subsystem,·as·determined·by·the·disk_io_constructor·(in |
Offset 1, 25 lines modified | Offset 1, 15 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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__\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 | ||
7 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r | ||
8 | ··········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) | ||
10 | ··········o·_\x8~_\x8d_\x8i_\x8s_\x8k_\x8__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8__\x8h_\x8o_\x8l_\x8d_\x8e_\x8r_\x8(_\x8) | ||
11 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | ||
12 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) | ||
13 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) | ||
14 | ··········o·_\x8i_\x8s_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8(_\x8) | ||
15 | ··········o·_\x8b_\x8o_\x8o_\x8l_\x8(_\x8) | ||
16 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8o_\x8b_\x8s_\x8e_\x8r_\x8v_\x8e_\x8r | 7 | ····*·_\x8d_\x8i_\x8s_\x8k_\x8__\x8o_\x8b_\x8s_\x8e_\x8r_\x8v_\x8e_\x8r |
17 | ··········o·_\x8o_\x8n_\x8__\x8d_\x8i_\x8s_\x8k_\x8(_\x8) | 8 | ··········o·_\x8o_\x8n_\x8__\x8d_\x8i_\x8s_\x8k_\x8(_\x8) |
18 | ····*·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | ||
19 | ····*·_\x8o_\x8p_\x8e_\x8n_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8a_\x8t_\x8e | 9 | ····*·_\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 | 10 | ····*·_\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) | 11 | ··········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) | 12 | ··········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__\x8r_\x8e_\x8a_\x8d_\x8(_\x8)_\x8·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8w_\x8r_\x8i_\x8t_\x8e_\x8(_\x8) | 13 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8r_\x8e_\x8a_\x8d_\x8(_\x8)_\x8·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8w_\x8r_\x8i_\x8t_\x8e_\x8(_\x8) |
24 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8) | 14 | ··········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) | 15 | ··········o·_\x8a_\x8s_\x8y_\x8n_\x8c_\x8__\x8h_\x8a_\x8s_\x8h_\x82_\x8(_\x8) |
Offset 47, 16 lines modified | Offset 47, 16 lines modified | ||
47 | <li><a·class="reference·internal"·href="#get-mutable-item"·id="toc-entry-11">get_mutable_item()</a></li> | 47 | <li><a·class="reference·internal"·href="#get-mutable-item"·id="toc-entry-11">get_mutable_item()</a></li> |
48 | <li><a·class="reference·internal"·href="#put-mutable-item"·id="toc-entry-12">put_mutable_item()</a></li> | 48 | <li><a·class="reference·internal"·href="#put-mutable-item"·id="toc-entry-12">put_mutable_item()</a></li> |
49 | <li><a·class="reference·internal"·href="#get-infohashes-sample"·id="toc-entry-13">get_infohashes_sample()</a></li> | 49 | <li><a·class="reference·internal"·href="#get-infohashes-sample"·id="toc-entry-13">get_infohashes_sample()</a></li> |
50 | <li><a·class="reference·internal"·href="#tick"·id="toc-entry-14">tick()</a></li> | 50 | <li><a·class="reference·internal"·href="#tick"·id="toc-entry-14">tick()</a></li> |
51 | <li><a·class="reference·internal"·href="#counters"·id="toc-entry-15">counters()</a></li> | 51 | <li><a·class="reference·internal"·href="#counters"·id="toc-entry-15">counters()</a></li> |
52 | </ul> | 52 | </ul> |
53 | </li> | 53 | </li> |
54 | <li><a·class="reference·internal"·href="#sign-mutable-item"·id="toc-entry-16">sign_mutable_item()</a></li> | ||
55 | <li><a·class="reference·internal"·href="#dht-default-storage-constructor"·id="toc-entry-1 | 54 | <li><a·class="reference·internal"·href="#dht-default-storage-constructor"·id="toc-entry-16">dht_default_storage_constructor()</a></li> |
55 | <li><a·class="reference·internal"·href="#sign-mutable-item"·id="toc-entry-17">sign_mutable_item()</a></li> | ||
56 | <li><a·class="reference·internal"·href="#announce-flags-t"·id="toc-entry-18">announce_flags_t</a></li> | 56 | <li><a·class="reference·internal"·href="#announce-flags-t"·id="toc-entry-18">announce_flags_t</a></li> |
57 | </ul> | 57 | </ul> |
58 | </div> | 58 | </div> |
59 | <a·name="dht_state"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+dht_state&labels=documentation&body=Documentation+under+heading+%22class+dht_state%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="dht-state"> | 59 | <a·name="dht_state"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+dht_state&labels=documentation&body=Documentation+under+heading+%22class+dht_state%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="dht-state"> |
60 | <h1>dht_state</h1> | 60 | <h1>dht_state</h1> |
61 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/kademlia/dht_state.hpp">libtorrent/kademlia/dht_state.hpp</a>"</p> | 61 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/kademlia/dht_state.hpp">libtorrent/kademlia/dht_state.hpp</a>"</p> |
62 | <p>This·structure·helps·to·store·and·load·the·state | 62 | <p>This·structure·helps·to·store·and·load·the·state |
Offset 14, 16 lines modified | Offset 14, 16 lines modified | ||
14 | ··········o·_\x8p_\x8u_\x8t_\x8__\x8i_\x8m_\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | 14 | ··········o·_\x8p_\x8u_\x8t_\x8__\x8i_\x8m_\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) |
15 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8__\x8s_\x8e_\x8q_\x8(_\x8) | 15 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8__\x8s_\x8e_\x8q_\x8(_\x8) |
16 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | 16 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) |
17 | ··········o·_\x8p_\x8u_\x8t_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | 17 | ··········o·_\x8p_\x8u_\x8t_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) |
18 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8(_\x8) | 18 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8__\x8s_\x8a_\x8m_\x8p_\x8l_\x8e_\x8(_\x8) |
19 | ··········o·_\x8t_\x8i_\x8c_\x8k_\x8(_\x8) | 19 | ··········o·_\x8t_\x8i_\x8c_\x8k_\x8(_\x8) |
20 | ··········o·_\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s_\x8(_\x8) | 20 | ··········o·_\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s_\x8(_\x8) |
21 | ····*·_\x8s_\x8i_\x8g_\x8n_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | ||
22 | ····*·_\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) | 21 | ····*·_\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) |
22 | ····*·_\x8s_\x8i_\x8g_\x8n_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | ||
23 | ····*·_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | 23 | ····*·_\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t |
24 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | 24 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] |
25 | *\x8**\x8**\x8**\x8**\x8**\x8*·d\x8dh\x8ht\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 25 | *\x8**\x8**\x8**\x8**\x8**\x8*·d\x8dh\x8ht\x8t_\x8_s\x8st\x8ta\x8at\x8te\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
26 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8k_\x8a_\x8d_\x8e_\x8m_\x8l_\x8i_\x8a_\x8/_\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8._\x8h_\x8p_\x8p" | 26 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8k_\x8a_\x8d_\x8e_\x8m_\x8l_\x8i_\x8a_\x8/_\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8._\x8h_\x8p_\x8p" |
27 | This·structure·helps·to·store·and·load·the·state·of·the·dht_tracker.·At·this | 27 | This·structure·helps·to·store·and·load·the·state·of·the·dht_tracker.·At·this |
28 | moment·the·library·is·only·a·dual·stack·implementation·of·the·DHT.·See·_\x8B_\x8E_\x8P_\x8·_\x83_\x82 | 28 | moment·the·library·is·only·a·dual·stack·implementation·of·the·DHT.·See·_\x8B_\x8E_\x8P_\x8·_\x83_\x82 |
29 | struct·dht_state | 29 | struct·dht_state |
Offset 33, 30 lines modified | Offset 33, 30 lines modified | ||
33 | <p·class="topic-title">Table·of·contents</p> | 33 | <p·class="topic-title">Table·of·contents</p> |
34 | <ul·class="simple"> | 34 | <ul·class="simple"> |
35 | <li><a·class="reference·internal"·href="#storage-error"·id="toc-entry-1">storage_error</a><ul> | 35 | <li><a·class="reference·internal"·href="#storage-error"·id="toc-entry-1">storage_error</a><ul> |
36 | <li><a·class="reference·internal"·href="#bool"·id="toc-entry-2">bool()</a></li> | 36 | <li><a·class="reference·internal"·href="#bool"·id="toc-entry-2">bool()</a></li> |
37 | <li><a·class="reference·internal"·href="#file"·id="toc-entry-3">file()</a></li> | 37 | <li><a·class="reference·internal"·href="#file"·id="toc-entry-3">file()</a></li> |
38 | </ul> | 38 | </ul> |
39 | </li> | 39 | </li> |
40 | <li><a·class="reference·internal"·href="#pcp-category"·id="toc-entry-4">pcp_category()</a></li> | ||
41 | <li><a·class="reference·internal"·href="#gzip-category"·id="toc-entry-5">gzip_category()</a></li> | ||
40 | <li><a·class="reference·internal"·href="#bdecode-category"·id="toc-entry- | 42 | <li><a·class="reference·internal"·href="#bdecode-category"·id="toc-entry-6">bdecode_category()</a></li> |
41 | <li><a·class="reference·internal"·href="#p | 43 | <li><a·class="reference·internal"·href="#upnp-category"·id="toc-entry-7">upnp_category()</a></li> |
44 | <li><a·class="reference·internal"·href="#i2p-category"·id="toc-entry-8">i2p_category()</a></li> | ||
42 | <li><a·class="reference·internal"·href="#socks-category"·id="toc-entry- | 45 | <li><a·class="reference·internal"·href="#socks-category"·id="toc-entry-9">socks_category()</a></li> |
43 | <li><a·class="reference·internal"·href="#libtorrent-category"·id="toc-entry- | 46 | <li><a·class="reference·internal"·href="#libtorrent-category"·id="toc-entry-10">libtorrent_category()</a></li> |
44 | <li><a·class="reference·internal"·href="#http-category"·id="toc-entry- | 47 | <li><a·class="reference·internal"·href="#http-category"·id="toc-entry-11">http_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="#u | 48 | <li><a·class="reference·internal"·href="#enum-pcp-errors"·id="toc-entry-12">enum·pcp_errors</a></li> |
47 | <li><a·class="reference·internal"·href="#gzip-category"·id="toc-entry-11">gzip_category()</a></li> | ||
48 | <li><a·class="reference·internal"·href="#enum-error-code-enum"·id="toc-entry-1 | 49 | <li><a·class="reference·internal"·href="#enum-error-code-enum"·id="toc-entry-13">enum·error_code_enum</a></li> |
49 | <li><a·class="reference·internal"·href="#enum-pcp-errors"·id="toc-entry-13">enum·pcp_errors</a></li> | ||
50 | <li><a·class="reference·internal"·href="#enum-socks-error-code"·id="toc-entry-14">enum·socks_error_code</a></li> | ||
51 | <li><a·class="reference·internal"·href="#enum-error-code-enum-1"·id="toc-entry-1 | 50 | <li><a·class="reference·internal"·href="#enum-error-code-enum-1"·id="toc-entry-14">enum·error_code_enum</a></li> |
52 | <li><a·class="reference·internal"·href="#enum-http-errors"·id="toc-entry-16">enum·http_errors</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-2"·id="toc-entry-1 | 51 | <li><a·class="reference·internal"·href="#enum-error-code-enum-2"·id="toc-entry-15">enum·error_code_enum</a></li> |
52 | <li><a·class="reference·internal"·href="#enum-i2p-error-code"·id="toc-entry-16">enum·i2p_error_code</a></li> | ||
53 | <li><a·class="reference·internal"·href="#enum-socks-error-code"·id="toc-entry-17">enum·socks_error_code</a></li> | ||
55 | <li><a·class="reference·internal"·href="#enum-error-code-enum-3"·id="toc-entry-1 | 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-http-errors"·id="toc-entry-19">enum·http_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 |
Offset 2, 30 lines modified | Offset 2, 30 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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 | ····*·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
10 | ····*·_\x8p_\x8c_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | 9 | ····*·_\x8p_\x8c_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) |
10 | ····*·_\x8g_\x8z_\x8i_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
11 | ····*·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\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 | ····*·_\x8i_\x82_\x8p_\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) | 14 | ····*·_\x8s_\x8o_\x8c_\x8k_\x8s_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) |
12 | ····*·_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\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) |
13 | ····*·_\x8h_\x8t_\x8t_\x8p_\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) |
14 | ····*·_\x8i_\x82_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
15 | ····*·_\x8u_\x8p_\x8n_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
16 | ····*·_\x8g_\x8z_\x8i_\x8p_\x8__\x8c_\x8a_\x8t_\x8e_\x8g_\x8o_\x8r_\x8y_\x8(_\x8) | ||
17 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m | ||
18 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8c_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8s | 17 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8c_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8s |
19 | ····*·_\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 | 18 | ····*·_\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·_\x8h_\x8t_\x8t_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8s | ||
22 | ····*·_\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·_\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e_\x8__\x8e_\x8n_\x8u_\x8m | 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·_\x8i_\x82_\x8p_\x8__\x8e_\x8r_\x8r_\x8o_\x8r_\x8__\x8c_\x8o_\x8d_\x8e | ||
22 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8s_\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 | ||
24 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8h_\x8t_\x8t_\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 | { |
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 | ···ip_filter&·<strong>operator=</strong>·(ip_filter·const&); | ||
64 | ···<strong>ip_filter</strong>·(ip_filter·const&); | ||
65 | ···<strong>ip_filter</strong>·(); | ||
63 | ···<strong>~ip_filter</strong>·(); | 66 | ···<strong>~ip_filter</strong>·(); |
64 | ···<strong>ip_filter</strong>·(ip_filter&&); | 67 | ···<strong>ip_filter</strong>·(ip_filter&&); |
65 | ···ip_filter&·<strong>operator=</strong>·(ip_filter&&); | 68 | ···ip_filter&·<strong>operator=</strong>·(ip_filter&&); |
66 | ···<strong>ip_filter</strong>·(); | ||
67 | ···<strong>ip_filter</strong>·(ip_filter·const&); | ||
68 | ···ip_filter&·<strong>operator=</strong>·(ip_filter·const&); | ||
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 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 | ···ip_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(ip_filter·const&); | ||
27 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter·const&); | ||
28 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | ||
26 | ···~\x8~i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | 29 | ···~\x8~i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); |
27 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter&&); | 30 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter&&); |
28 | ···ip_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(ip_filter&&); | 31 | ···ip_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(ip_filter&&); |
29 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(); | ||
30 | ···i\x8ip\x8p_\x8_f\x8fi\x8il\x8lt\x8te\x8er\x8r·(ip_filter·const&); | ||
31 | ···ip_filter&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(ip_filter·const&); | ||
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 30, 16 lines modified | Offset 30, 16 lines modified | ||
30 | </table> | 30 | </table> |
31 | <p><a·class="reference·external"·href="reference.html">home</a></p> | 31 | <p><a·class="reference·external"·href="reference.html">home</a></p> |
32 | <div·class="contents·topic"·id="table-of-contents"> | 32 | <div·class="contents·topic"·id="table-of-contents"> |
33 | <p·class="topic-title">Table·of·contents</p> | 33 | <p·class="topic-title">Table·of·contents</p> |
34 | <ul·class="simple"> | 34 | <ul·class="simple"> |
35 | <li><a·class="reference·internal"·href="#peer-class-info"·id="toc-entry-1">peer_class_info</a></li> | 35 | <li><a·class="reference·internal"·href="#peer-class-info"·id="toc-entry-1">peer_class_info</a></li> |
36 | <li><a·class="reference·internal"·href="#peer-class-type-filter"·id="toc-entry-2">peer_class_type_filter</a><ul> | 36 | <li><a·class="reference·internal"·href="#peer-class-type-filter"·id="toc-entry-2">peer_class_type_filter</a><ul> |
37 | <li><a·class="reference·internal"·href="#remove | 37 | <li><a·class="reference·internal"·href="#add-remove"·id="toc-entry-3">add()·remove()</a></li> |
38 | <li><a·class="reference·internal"·href="# | 38 | <li><a·class="reference·internal"·href="#allow-disallow"·id="toc-entry-4">allow()·disallow()</a></li> |
39 | <li><a·class="reference·internal"·href="#apply"·id="toc-entry-5">apply()</a></li> | 39 | <li><a·class="reference·internal"·href="#apply"·id="toc-entry-5">apply()</a></li> |
40 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-6">enum·socket_type_t</a></li> | 40 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-6">enum·socket_type_t</a></li> |
41 | </ul> | 41 | </ul> |
42 | </li> | 42 | </li> |
43 | </ul> | 43 | </ul> |
44 | </div> | 44 | </div> |
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"> | 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"> |
Offset 1, 16 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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 | 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 | 7 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r |
8 | ··········o·_\x8a_\x8d_\x8d_\x8(_\x8)_\x8·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\x8(_\x8) | ||
8 | ··········o·_\x8 | 9 | ··········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) | 10 | ··········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 | 11 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\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*·p\x8pe\x8ee\x8er\x8r_\x8_c\x8cl\x8la\x8as\x8ss\x8s_\x8_i\x8in\x8nf\x8fo\x8o·*\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_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" | 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) | 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. | 16 | calls. |
Offset 46, 50 lines modified | Offset 46, 50 lines modified | ||
46 | <li><a·class="reference·internal"·href="#on-tick"·id="toc-entry-12">on_tick()</a></li> | 46 | <li><a·class="reference·internal"·href="#on-tick"·id="toc-entry-12">on_tick()</a></li> |
47 | <li><a·class="reference·internal"·href="#get-unchoke-priority"·id="toc-entry-13">get_unchoke_priority()</a></li> | 47 | <li><a·class="reference·internal"·href="#get-unchoke-priority"·id="toc-entry-13">get_unchoke_priority()</a></li> |
48 | <li><a·class="reference·internal"·href="#load-state"·id="toc-entry-14">load_state()</a></li> | 48 | <li><a·class="reference·internal"·href="#load-state"·id="toc-entry-14">load_state()</a></li> |
49 | </ul> | 49 | </ul> |
50 | </li> | 50 | </li> |
51 | <li><a·class="reference·internal"·href="#torrent-plugin"·id="toc-entry-15">torrent_plugin</a><ul> | 51 | <li><a·class="reference·internal"·href="#torrent-plugin"·id="toc-entry-15">torrent_plugin</a><ul> |
52 | <li><a·class="reference·internal"·href="#new-connection"·id="toc-entry-16">new_connection()</a></li> | 52 | <li><a·class="reference·internal"·href="#new-connection"·id="toc-entry-16">new_connection()</a></li> |
53 | <li><a·class="reference·internal"·href="#on-piece- | 53 | <li><a·class="reference·internal"·href="#on-piece-pass-on-piece-failed"·id="toc-entry-17">on_piece_pass()·on_piece_failed()</a></li> |
54 | <li><a·class="reference·internal"·href="#tick"·id="toc-entry-18">tick()</a></li> | 54 | <li><a·class="reference·internal"·href="#tick"·id="toc-entry-18">tick()</a></li> |
55 | <li><a·class="reference·internal"·href="#on- | 55 | <li><a·class="reference·internal"·href="#on-pause-on-resume"·id="toc-entry-19">on_pause()·on_resume()</a></li> |
56 | <li><a·class="reference·internal"·href="#on-files-checked"·id="toc-entry-20">on_files_checked()</a></li> | 56 | <li><a·class="reference·internal"·href="#on-files-checked"·id="toc-entry-20">on_files_checked()</a></li> |
57 | <li><a·class="reference·internal"·href="#on-state"·id="toc-entry-21">on_state()</a></li> | 57 | <li><a·class="reference·internal"·href="#on-state"·id="toc-entry-21">on_state()</a></li> |
58 | <li><a·class="reference·internal"·href="#on-add-peer"·id="toc-entry-22">on_add_peer()</a></li> | 58 | <li><a·class="reference·internal"·href="#on-add-peer"·id="toc-entry-22">on_add_peer()</a></li> |
59 | </ul> | 59 | </ul> |
60 | </li> | 60 | </li> |
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-not-interested-on-unchoke-on-have-all-on-choke-on-dont-have-on-have-on-have-none-on-allowed-fast-on-request-on-interested-on-bitfield"·id="toc-entry-30">on_not_interested()·on_unchoke()·on_have_all()·on_choke()·on_dont_have()·on_have()·on_have_none()·on_al[·...·truncated·by·diffoscope;·len:·53,·SHA:·4e11902ac3466e4720ebf45c1731ffccc8b404ee75cf36993a56dcc11803872c·...·]()</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-interested-sent-have-sent-piece-sent- | 70 | <li><a·class="reference·internal"·href="#sent-interested-sent-have-sent-piece-sent-not-interested-sent-unchoke"·id="toc-entry-32">sent_interested()·sent_have()·sent_piece()·sent_not_interested()·sent_unchoke()</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- | 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> |
78 | </ul> | 78 | </ul> |
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-smart-ban-plugin"·id="toc-entry-44">create_smart_ban_plugin()</a></li> | ||
87 | <li><a·class="reference·internal"·href="#create-ut-pex-plugin"·id="toc-entry-4 | 86 | <li><a·class="reference·internal"·href="#create-ut-pex-plugin"·id="toc-entry-44">create_ut_pex_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-smart-ban-plugin"·id="toc-entry-46">create_smart_ban_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 15, 47 lines modified | Offset 15, 47 lines modified | ||
15 | ··········o·_\x8o_\x8n_\x8__\x8a_\x8l_\x8e_\x8r_\x8t_\x8(_\x8) | 15 | ··········o·_\x8o_\x8n_\x8__\x8a_\x8l_\x8e_\x8r_\x8t_\x8(_\x8) |
16 | ··········o·_\x8o_\x8n_\x8__\x8u_\x8n_\x8k_\x8n_\x8o_\x8w_\x8n_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) | 16 | ··········o·_\x8o_\x8n_\x8__\x8u_\x8n_\x8k_\x8n_\x8o_\x8w_\x8n_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) |
17 | ··········o·_\x8o_\x8n_\x8__\x8t_\x8i_\x8c_\x8k_\x8(_\x8) | 17 | ··········o·_\x8o_\x8n_\x8__\x8t_\x8i_\x8c_\x8k_\x8(_\x8) |
18 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8u_\x8n_\x8c_\x8h_\x8o_\x8k_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8(_\x8) | 18 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8u_\x8n_\x8c_\x8h_\x8o_\x8k_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8(_\x8) |
19 | ··········o·_\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) | 19 | ··········o·_\x8l_\x8o_\x8a_\x8d_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) |
20 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n | 20 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n |
21 | ··········o·_\x8n_\x8e_\x8w_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) | 21 | ··········o·_\x8n_\x8e_\x8w_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) |
22 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8 | 22 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_.a_.s_.s_.(_.)_.·_.o_.n_.__.p_.i_.e_.c_.e_.__.f_.a_.i_.l_.e_.d_\x8(_\x8) |
23 | ··········o·_\x8t_\x8i_\x8c_\x8k_\x8(_\x8) | 23 | ··········o·_\x8t_\x8i_\x8c_\x8k_\x8(_\x8) |
24 | ··········o·_\x8o_\x8n_\x8__\x8 | 24 | ··········o·_\x8o_\x8n_\x8__\x8p_.a_.u_.s_.e_.(_.)_.·_.o_.n_.__.r_.e_.s_.u_.m_\x8e_\x8(_\x8) |
25 | ··········o·_\x8o_\x8n_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8__\x8c_\x8h_\x8e_\x8c_\x8k_\x8e_\x8d_\x8(_\x8) | 25 | ··········o·_\x8o_\x8n_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8__\x8c_\x8h_\x8e_\x8c_\x8k_\x8e_\x8d_\x8(_\x8) |
26 | ··········o·_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) | 26 | ··········o·_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) |
27 | ··········o·_\x8o_\x8n_\x8__\x8a_\x8d_\x8d_\x8__\x8p_\x8e_\x8e_\x8r_\x8(_\x8) | 27 | ··········o·_\x8o_\x8n_\x8__\x8a_\x8d_\x8d_\x8__\x8p_\x8e_\x8e_\x8r_\x8(_\x8) |
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__\x8u_\x8n_\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__\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8) | ||
36 | ············_\x8o_\x8n_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8d_\x8o_\x8n_\x8t_\x8__\x8h_\x8a_\x8v_\x8e_\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__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8c_\x8h_\x8o_\x8k_\x8e | ||
37 | ··········· | 35 | ··········o·_.o_.n_.__.n_.o_.t_.__.i_.n_.t_.e_.r_.e_.s_.t_.e_.d_.(_.)_.·_.o_.n_.__.u_.n_.c_.h_.o_.k_.e_.(_.)_.·_.o_.n_.__.h_.a_.v_.e_.__.a_.l_.l_.(_.)_.·_.o_.n_.__.c_.h_.o_.k_\x8e_\x8(_\x8) |
36 | ············_\x8o_\x8n_\x8__\x8d_\x8o_\x8n_\x8t_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8h_\x8a_\x8v_\x8e_\x8__\x8n_\x8o_\x8n_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8a_\x8l_\x8l_\x8o_\x8w_\x8e_\x8d_\x8__\x8f_\x8a_\x8s_\x8t_\x8(_\x8) | ||
37 | ············_\x8o_\x8n_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\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__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8 | 39 | ··········o·_\x8s_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8n_.o_.t_.__.i_.n_.t_.e_.r_.e_.s_.t_.e_.d_\x8(_\x8) |
40 | ············_\x8s_\x8e_\x8n_\x8t_\x8__\x8 | 40 | ············_\x8s_\x8e_\x8n_\x8t_\x8__\x8u_.n_.c_.h_.o_.k_.e_\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__\x8 | 45 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8p_.a_.s_.s_.(_.)_.·_.o_.n_.__.p_.i_.e_.c_.e_.__.f_.a_.i_.l_.e_.d_\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__\x8s_\x8m_\x8a_\x8r_\x8t_\x8__\x8b_\x8a_\x8n_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) | ||
53 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8u_\x8t_\x8__\x8p_\x8e_\x8x_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) | 52 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8u_\x8t_\x8__\x8p_\x8e_\x8x_\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__\x8s_\x8m_\x8a_\x8r_\x8t_\x8__\x8b_\x8a_\x8n_\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 28, 79 lines modified | Offset 28, 79 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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="#read-resume-data"·id="toc-entry-1">read_resume_data()</a></li> | ||
36 | <li><a·class="reference·internal"·href="#write-resume-data-buf-write-resume-data"·id="toc-entry- | 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> |
37 | <li><a·class="reference·internal"·href="#write-torrent-file-buf-write-torrent-file"·id="toc-entry- | 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> | ||
38 | <li><a·class="reference·internal"·href="#write-torrent-flags-t"·id="toc-entry-4">write_torrent_flags_t</a></li> | 38 | <li><a·class="reference·internal"·href="#write-torrent-flags-t"·id="toc-entry-4">write_torrent_flags_t</a></li> |
39 | </ul> | 39 | </ul> |
40 | </div> | 40 | </div> |
41 | <a·name="read_resume_data()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:read_resume_data%28%29&labels=documentation&body=Documentation+under+heading+%22read_resume_data%28%29%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="read-resume-data"> | ||
42 | <h1>read_resume_data()</h1> | ||
43 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/read_resume_data.hpp">libtorrent/read_resume_data.hpp</a>"</p> | ||
44 | <pre·class="literal-block"> | ||
45 | add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&·rd | ||
46 | ···,·error_code&·ec,·int·piece_limit·=·0x200000); | ||
47 | add_torrent_params·<strong>read_resume_data</strong>·(span<char·const>·buffer | ||
48 | ···,·load_torrent_limits·const&·cfg·=·{}); | ||
49 | add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&·rd | ||
50 | ···,·int·piece_limit·=·0x200000); | ||
51 | add_torrent_params·<strong>read_resume_data</strong>·(span<char·const>·buffer | ||
52 | ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{}); | ||
53 | </pre> | ||
54 | <p>these·functions·are·used·to·parse·resume·data·and·populate·the·appropriate | ||
55 | fields·in·an·<a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a>·object.·This·object·can·then·be·used·to·add | ||
56 | the·actual·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>·object·to·and·pass·to·session::add_torrent()·or | ||
57 | session::async_add_torrent().</p> | ||
58 | <p>If·the·client·wants·to·override·any·field·that·was·loaded·from·the·resume | ||
59 | data,·e.g.·save_path,·those·fields·must·be·changed·after·loading·resume | ||
60 | data·but·before·adding·the·torrent.</p> | ||
61 | <p>The·<tt·class="docutils·literal">piece_limit</tt>·parameter·determines·the·largest·number·of·pieces | ||
62 | allowed·in·the·torrent·that·may·be·loaded·as·part·of·the·resume·data,·if | ||
63 | it·contains·an·<tt·class="docutils·literal">info</tt>·field.·The·overloads·that·take·a·flat·buffer·are | ||
64 | instead·configured·with·limits·on·torrent·sizes·via·load_torrent·limits.</p> | ||
65 | <p>In·order·to·support·large·torrents,·it·may·also·be·necessary·to·raise·the | ||
66 | <a·class="reference·external"·href="reference-Settings.html#max_piece_count">settings_pack::max_piece_count</a>·setting·and·pass·a·higher·limit·to·calls | ||
67 | to·<a·class="reference·external"·href="reference-Torrent_Info.html#parse_info_section()">torrent_info::parse_info_section()</a>.</p> | ||
68 | <a·name="write_resume_data_buf()"></a> | 41 | <a·name="write_resume_data_buf()"></a> |
69 | <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_buf%28%29+write_resume_data%28%29%22+could+be+improved">report·issue</a>]</span>< | 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_buf%28%29+write_resume_data%28%29%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="write-resume-data-buf-write-resume-data"> |
70 | <div·class="section"·id="write-resume-data-buf-write-resume-data"> | ||
71 | <h1>write_resume_data_buf()·write_resume_data()</h1> | 43 | <h1>write_resume_data_buf()·write_resume_data()</h1> |
72 | <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> |
73 | <pre·class="literal-block"> | 45 | <pre·class="literal-block"> |
74 | std::vector<char>·<strong>write_resume_data_buf</strong>·(add_torrent_params·const&·atp); | ||
75 | entry·<strong>write_resume_data</strong>·(add_torrent_params·const&·atp); | 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); | ||
76 | </pre> | 48 | </pre> |
77 | <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 |
78 | into·a·bencoded·structure</p> | 50 | into·a·bencoded·structure</p> |
79 | <a·name="write_torrent_file_buf()"></a> | 51 | <a·name="write_torrent_file_buf()"></a> |
80 | <a·name="write_torrent_file()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:write_torrent_file_buf%28%29+write_torrent_file%28%29&labels=documentation&body=Documentation+under+heading+%22write_torrent_file_buf%28%29+write_torrent_file%28%29%22+could+be+improved">report·issue</a>]</span></div> | 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_file%28%29%22+could+be+improved">report·issue</a>]</span></div> |
81 | <div·class="section"·id="write-torrent-file-buf-write-torrent-file"> | 53 | <div·class="section"·id="write-torrent-file-buf-write-torrent-file"> |
82 | <h1>write_torrent_file_buf()·write_torrent_file()</h1> | 54 | <h1>write_torrent_file_buf()·write_torrent_file()</h1> |
83 | <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> |
84 | <pre·class="literal-block"> | 56 | <pre·class="literal-block"> |
85 | entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&·atp); | ||
86 | std::vector<char>·<strong>write_torrent_file_buf</strong>·(add_torrent_params·const&·atp | 57 | std::vector<char>·<strong>write_torrent_file_buf</strong>·(add_torrent_params·const&·atp |
87 | ···,·write_torrent_flags_t·flags); | 58 | ···,·write_torrent_flags_t·flags); |
59 | entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&·atp); | ||
88 | entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&·atp,·write_torrent_flags_t·flags); | 60 | entry·<strong>write_torrent_file</strong>·(add_torrent_params·const&·atp,·write_torrent_flags_t·flags); |
89 | </pre> | 61 | </pre> |
90 | <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 |
91 | 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> |
92 | <ul·class="simple"> | 64 | <ul·class="simple"> |
93 | <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 |
94 | info·dictionary·(the·<tt·class="docutils·literal">ti</tt>·field)</li> | 66 | info·dictionary·(the·<tt·class="docutils·literal">ti</tt>·field)</li> |
95 | <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> |
96 | </ul> | 68 | </ul> |
97 | <p>The·<tt·class="docutils·literal">write_torrent_file_buf()</tt>·overload·returns·the·torrent·file·in | 69 | <p>The·<tt·class="docutils·literal">write_torrent_file_buf()</tt>·overload·returns·the·torrent·file·in |
98 | 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 |
99 | 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> | ||
73 | <div·class="section"·id="read-resume-data"> | ||
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> | ||
76 | <pre·class="literal-block"> | ||
77 | add_torrent_params·<strong>read_resume_data</strong>·(span<char·const>·buffer | ||
78 | ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{}); | ||
79 | add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&·rd | ||
80 | ···,·error_code&·ec,·int·piece_limit·=·0x200000); | ||
81 | add_torrent_params·<strong>read_resume_data</strong>·(span<char·const>·buffer | ||
82 | ···,·load_torrent_limits·const&·cfg·=·{}); | ||
83 | add_torrent_params·<strong>read_resume_data</strong>·(bdecode_node·const&·rd | ||
84 | ···,·int·piece_limit·=·0x200000); | ||
85 | </pre> | ||
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 | ||
88 | the·actual·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>·object·to·and·pass·to·session::add_torrent()·or | ||
89 | session::async_add_torrent().</p> | ||
90 | <p>If·the·client·wants·to·override·any·field·that·was·loaded·from·the·resume | ||
91 | data,·e.g.·save_path,·those·fields·must·be·changed·after·loading·resume | ||
92 | data·but·before·adding·the·torrent.</p> | ||
93 | <p>The·<tt·class="docutils·literal">piece_limit</tt>·parameter·determines·the·largest·number·of·pieces | ||
94 | allowed·in·the·torrent·that·may·be·loaded·as·part·of·the·resume·data,·if | ||
95 | it·contains·an·<tt·class="docutils·literal">info</tt>·field.·The·overloads·that·take·a·flat·buffer·are | ||
96 | instead·configured·with·limits·on·torrent·sizes·via·load_torrent·limits.</p> | ||
97 | <p>In·order·to·support·large·torrents,·it·may·also·be·necessary·to·raise·the | ||
98 | <a·class="reference·external"·href="reference-Settings.html#max_piece_count">settings_pack::max_piece_count</a>·setting·and·pass·a·higher·limit·to·calls | ||
99 | to·<a·class="reference·external"·href="reference-Torrent_Info.html#parse_info_section()">torrent_info::parse_info_section()</a>.</p> | ||
100 | <a·name="write_torrent_flags_t"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:write_torrent_flags_t&labels=documentation&body=Documentation+under+heading+%22write_torrent_flags_t%22+could+be+improved">report·issue</a>]</span></div> | 100 | <a·name="write_torrent_flags_t"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:write_torrent_flags_t&labels=documentation&body=Documentation+under+heading+%22write_torrent_flags_t%22+could+be+improved">report·issue</a>]</span></div> |
101 | <div·class="section"·id="write-torrent-flags-t"> | 101 | <div·class="section"·id="write-torrent-flags-t"> |
102 | <h1>write_torrent_flags_t</h1> | 102 | <h1>write_torrent_flags_t</h1> |
103 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>"</p> | 103 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/write_resume_data.hpp">libtorrent/write_resume_data.hpp</a>"</p> |
104 | <a·name="write_torrent_flags_t::allow_missing_piece_layer"></a><dl·class="docutils"> | 104 | <a·name="write_torrent_flags_t::allow_missing_piece_layer"></a><dl·class="docutils"> |
105 | <dt>allow_missing_piece_layer</dt> | 105 | <dt>allow_missing_piece_layer</dt> |
106 | <dd>this·makes·<a·class="reference·external"·href="reference-Resume_Data.html#write_torrent_file()">write_torrent_file()</a>·not·fail·when·attempting·to·write·a | 106 | <dd>this·makes·<a·class="reference·external"·href="reference-Resume_Data.html#write_torrent_file()">write_torrent_file()</a>·not·fail·when·attempting·to·write·a |
Offset 1, 27 lines modified | Offset 1, 50 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | ||
7 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8b_\x8u_\x8f_\x8(_\x8)_\x8·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 6 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8b_\x8u_\x8f_\x8(_\x8)_\x8·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8__\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
8 | ····*·_\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) | 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) | ||
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_\x8_b\x8bu\x8uf\x8f(\x8()\x8)·w\x8wr\x8ri\x8it\x8te\x8e_\x8_r\x8re\x8es\x8su\x8um\x8me\x8e_\x8_d\x8da\x8at\x8ta\x8a(\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" | ||
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); | ||
15 | this·function·turns·the·resume·data·in·an·add_torrent_params·object·into·a | ||
16 | bencoded·structure | ||
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_\x8_b\x8bu\x8uf\x8f(\x8()\x8)·w\x8wr\x8ri\x8it\x8te\x8e_\x8_t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t_\x8_f\x8fi\x8il\x8le\x8e(\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" | ||
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 | ||
24 | flags); | ||
25 | writes·only·the·fields·to·create·a·.torrent·file.·This·function·may·fail·with·a | ||
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 | ||
28 | ······the·info·dictionary·(the·ti·field) | ||
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 | ||
31 | buffer·form.·This·overload·may·be·faster·at·the·expense·of·lost·flexibility·to | ||
32 | add·custom·fields. | ||
33 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
11 | *\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* |
12 | 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 | ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{}); | ||
13 | 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 | 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 |
14 | ···,·error_code&·ec,·int·piece_limit·=·0x200000); | 39 | ···,·error_code&·ec,·int·piece_limit·=·0x200000); |
15 | 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 | 40 | 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 |
16 | ···,·load_torrent_limits·const&·cfg·=·{}); | 41 | ···,·load_torrent_limits·const&·cfg·=·{}); |
17 | 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 | 42 | 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 |
18 | ···,·int·piece_limit·=·0x200000); | 43 | ···,·int·piece_limit·=·0x200000); |
19 | 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 | ||
20 | ···,·error_code&·ec,·load_torrent_limits·const&·cfg·=·{}); | ||
21 | 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 |
22 | 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 |
23 | 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:: |
24 | async_add_torrent(). | 47 | async_add_torrent(). |
25 | If·the·client·wants·to·override·any·field·that·was·loaded·from·the·resume·data, | 48 | If·the·client·wants·to·override·any·field·that·was·loaded·from·the·resume·data, |
26 | e.g.·save_path,·those·fields·must·be·changed·after·loading·resume·data·but | 49 | e.g.·save_path,·those·fields·must·be·changed·after·loading·resume·data·but |
27 | before·adding·the·torrent. | 50 | before·adding·the·torrent. |
Offset 28, 367 lines modified | Offset 28, 148 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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="#session- | 35 | <li><a·class="reference·internal"·href="#session-handle"·id="toc-entry-1">session_handle</a><ul> |
36 | <li><a·class="reference·internal"·href="# | 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> | ||
38 | <li><a·class="reference·internal"·href="#get-torrent-status-refresh-torrent-status"·id="toc-entry-4">get_torrent_status()·refresh_torrent_status()</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> | ||
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> | ||
43 | <li><a·class="reference·internal"·href="#find-torrent-get-torrents"·id="toc-entry-9">find_torrent()·get_torrents()</a></li> | ||
44 | <li><a·class="reference·internal"·href="#async-add-torrent-add-torrent"·id="toc-entry-10">async_add_torrent()·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> | ||
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> | ||
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> | ||
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> | ||
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-get-peers-dht-announce"·id="toc-entry-19">dht_get_peers()·dht_announce()</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> | ||
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> | ||
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> | ||
60 | <li><a·class="reference·internal"·href="#is-listening-listen-port-ssl-listen-port"·id="toc-entry-26">is_listening()·listen_port()·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> | ||
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> | ||
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="#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> | ||
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="#wait-for-alert-pop-alerts-set-alert-notify"·id="toc-entry-34">wait_for_alert()·pop_alerts()·set_alert_notify()</a></li> | ||
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> | ||
71 | <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-37">native_handle()</a></li> | ||
37 | </ul> | 72 | </ul> |
38 | </li> | 73 | </li> |
39 | <li><a·class="reference·internal"·href="#session"·id="toc-entry-3">session</a><ul> | 74 | <li><a·class="reference·internal"·href="#session-proxy"·id="toc-entry-38">session_proxy</a><ul> |
75 | <li><a·class="reference·internal"·href="#session-proxy-session-proxy-operator"·id="toc-entry-39">session_proxy()·~session_proxy()·operator=()</a></li> | ||
40 | <li><a·class="reference·internal"·href="#session-1"·id="toc-entry-4">session()</a></li> | ||
41 | <li><a·class="reference·internal"·href="#session-2"·id="toc-entry-5">session()</a></li> | ||
42 | <li><a·class="reference·internal"·href="#session-3"·id="toc-entry-6">~session()</a></li> | ||
43 | <li><a·class="reference·internal"·href="#abort"·id="toc-entry-7">abort()</a></li> | ||
44 | </ul> | 76 | </ul> |
45 | </li> | 77 | </li> |
46 | <li><a·class="reference·internal"·href="#session | 78 | <li><a·class="reference·internal"·href="#session"·id="toc-entry-40">session</a><ul> |
47 | <li><a·class="reference·internal"·href="#session- | 79 | <li><a·class="reference·internal"·href="#session-1"·id="toc-entry-41">session()</a></li> |
48 | <li><a·class="reference·internal"·href="#session- | 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> | ||
49 | </ul> | 83 | </ul> |
50 | </li> | 84 | </li> |
51 | <li><a·class="reference·internal"·href="#session- | 85 | <li><a·class="reference·internal"·href="#session-params"·id="toc-entry-45">session_params</a><ul> |
52 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-12">is_valid()</a></li> | ||
53 | <li><a·class="reference·internal"·href="#session- | 86 | <li><a·class="reference·internal"·href="#session-params-1"·id="toc-entry-46">session_params()</a></li> |
54 | <li><a·class="reference·internal"·href="#refresh-torrent-status-get-torrent-status"·id="toc-entry-14">refresh_torrent_status()·get_torrent_status()</a></li> | ||
55 | <li><a·class="reference·internal"·href="#post-torrent-updates"·id="toc-entry-15">post_torrent_updates()</a></li> | ||
56 | <li><a·class="reference·internal"·href="# | 87 | <li><a·class="reference·internal"·href="#session-params-2"·id="toc-entry-47">session_params()</a></li> |
57 | <li><a·class="reference·internal"·href="#post-dht-stats"·id="toc-entry-17">post_dht_stats()</a></li> | ||
58 | <li><a·class="reference·internal"·href="#set-dht-state"·id="toc-entry-18">set_dht_state()</a></li> | ||
59 | <li><a·class="reference·internal"·href="#find-torrent-get-torrents"·id="toc-entry-19">find_torrent()·get_torrents()</a></li> | ||
60 | <li><a·class="reference·internal"·href="#add-torrent-async-add-torrent"·id="toc-entry-20">add_torrent()·async_add_torrent()</a></li> | ||
61 | <li><a·class="reference·internal"·href="#pause-resume-is-paused"·id="toc-entry-21">pause()·resume()·is_paused()</a></li> | ||
62 | <li><a·class="reference·internal"·href="#is-dht-running"·id="toc-entry-22">is_dht_running()</a></li> | ||
63 | <li><a·class="reference·internal"·href="#set-dht-storage"·id="toc-entry-23">set_dht_storage()</a></li> | ||
64 | <li><a·class="reference·internal"·href="#add-dht-node"·id="toc-entry-24">add_dht_node()</a></li> | ||
65 | <li><a·class="reference·internal"·href="#dht-get-item"·id="toc-entry-25">dht_get_item()</a></li> | ||
66 | <li><a·class="reference·internal"·href="#dht-get-item-1"·id="toc-entry-26">dht_get_item()</a></li> | ||
67 | <li><a·class="reference·internal"·href="#dht-put-item"·id="toc-entry-27">dht_put_item()</a></li> | ||
68 | <li><a·class="reference·internal"·href="#dht-put-item-1"·id="toc-entry-28">dht_put_item()</a></li> | ||
69 | <li><a·class="reference·internal"·href="#dht-get-peers-dht-announce"·id="toc-entry-29">dht_get_peers()·dht_announce()</a></li> | ||
70 | <li><a·class="reference·internal"·href="#dht-live-nodes"·id="toc-entry-30">dht_live_nodes()</a></li> | ||
71 | <li><a·class="reference·internal"·href="#dht-sample-infohashes"·id="toc-entry-31">dht_sample_infohashes()</a></li> | ||
72 | <li><a·class="reference·internal"·href="#dht-direct-request"·id="toc-entry-32">dht_direct_request()</a></li> | ||
73 | <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-33">add_extension()</a></li> | ||
74 | <li><a·class="reference·internal"·href="#get-ip-filter-set-ip-filter"·id="toc-entry-34">get_ip_filter()·set_ip_filter()</a></li> | ||
75 | <li><a·class="reference·internal"·href="#set-port-filter"·id="toc-entry-35">set_port_filter()</a></li> | ||
76 | <li><a·class="reference·internal"·href="#is-listening-ssl-listen-port-listen-port"·id="toc-entry-36">is_listening()·ssl_listen_port()·listen_port()</a></li> | ||
77 | <li><a·class="reference·internal"·href="#set-peer-class-filter-get-peer-class-filter"·id="toc-entry-37">set_peer_class_filter()·get_peer_class_filter()</a></li> | ||
78 | <li><a·class="reference·internal"·href="#set-peer-class-type-filter-get-peer-class-type-filter"·id="toc-entry-38">set_peer_class_type_filter()·get_peer_class_type_filter()</a></li> | ||
79 | <li><a·class="reference·internal"·href="#create-peer-class"·id="toc-entry-39">create_peer_class()</a></li> | ||
80 | <li><a·class="reference·internal"·href="#delete-peer-class"·id="toc-entry-40">delete_peer_class()</a></li> | ||
81 | <li><a·class="reference·internal"·href="#set-peer-class-get-peer-class"·id="toc-entry-41">set_peer_class()·get_peer_class()</a></li> | ||
82 | <li><a·class="reference·internal"·href="#remove-torrent"·id="toc-entry-42">remove_torrent()</a></li> | ||
83 | <li><a·class="reference·internal"·href="#apply-settings-get-settings"·id="toc-entry-43">apply_settings()·get_settings()</a></li> | ||
84 | <li><a·class="reference·internal"·href="#wait-for-alert-pop-alerts-set-alert-notify"·id="toc-entry-44">wait_for_alert()·pop_alerts()·set_alert_notify()</a></li> | ||
85 | <li><a·class="reference·internal"·href="#add-port-mapping-delete-port-mapping"·id="toc-entry-45">add_port_mapping()·delete_port_mapping()</a></li> | ||
86 | <li><a·class="reference·internal"·href="#reopen-network-sockets"·id="toc-entry-46">reopen_network_sockets()</a></li> | ||
87 | <li><a·class="reference·internal"·href="#native-handle"·id="toc-entry-47">native_handle()</a></li> | ||
88 | </ul> | 88 | </ul> |
89 | </li> | 89 | </li> |
90 | <li><a·class="reference·internal"·href="#write-session-params-r | 90 | <li><a·class="reference·internal"·href="#write-session-params-write-session-params-buf-read-session-params"·id="toc-entry-48">write_session_params()·write_session_params_buf()·read_session_params()</a></li> |
91 | </ul> | 91 | </ul> |
92 | </div> | 92 | </div> |
93 | <a·name="session_proxy"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+session_proxy&labels=documentation&body=Documentation+under+heading+%22class+session_proxy%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="session-proxy"> | ||
94 | <h1>session_proxy</h1> | ||
95 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/session.hpp">libtorrent/session.hpp</a>"</p> | ||
96 | <p>this·is·a·holder·for·the·internal·<a·class="reference·external"·href="reference-Session.html#session">session</a>·implementation·object.·Once·the | ||
97 | <a·class="reference·external"·href="reference-Session.html#session">session</a>·destruction·is·explicitly·initiated,·this·holder·is·used·to | ||
98 | synchronize·the·completion·of·the·shutdown.·The·lifetime·of·this·object | ||
99 | may·outlive·<a·class="reference·external"·href="reference-Session.html#session">session</a>,·causing·the·<a·class="reference·external"·href="reference-Session.html#session">session</a>·destructor·to·not·block.·The | ||
100 | <a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a>·destructor·will·block·however,·until·the·underlying·<a·class="reference·external"·href="reference-Session.html#session">session</a> | ||
101 | is·done·shutting·down.</p> | ||
102 | <pre·class="literal-block"> | ||
103 | struct·session_proxy | ||
104 | { | ||
105 | ···<strong>session_proxy</strong>·(session_proxy·const&); | ||
106 | ···<strong>session_proxy</strong>·(session_proxy&&)·noexcept; | ||
107 | ···<strong>~session_proxy</strong>·(); | ||
108 | ···session_proxy&·<strong>operator=</strong>·(session_proxy·const&)·&; | ||
109 | ···<strong>session_proxy</strong>·(); | ||
110 | ···session_proxy&·<strong>operator=</strong>·(session_proxy&&)·&·noexcept; | ||
111 | }; | ||
112 | </pre> | ||
113 | <a·name="~session_proxy()"></a> | ||
114 | <a·name="operator=()"></a> | ||
115 | <a·name="session_proxy()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:session_proxy%3A%3A%5B~session_proxy%28%29+operator%3D%28%29+session_proxy%28%29%5D&labels=documentation&body=Documentation+under+heading+%22session_proxy%3A%3A%5B~session_proxy%28%29+operator%3D%28%29+session_proxy%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="session-proxy-operator-session-proxy"> | ||
116 | <h2>~session_proxy()·operator=()·session_proxy()</h2> | ||
Max diff block lines reached; 56047/87523 bytes (64.04%) of diff not shown. |
Offset 1, 313 lines modified | Offset 1, 141 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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__\x8p_\x8r_\x8o_\x8x_\x8y | ||
7 | ··········o·_\x8~_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8)_\x8·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y_\x8(_\x8) | ||
8 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n | ||
9 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
10 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
11 | ··········o·_\x8~_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
12 | ··········o·_\x8a_\x8b_\x8o_\x8r_\x8t_\x8(_\x8) | ||
13 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
14 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
15 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
16 | ····*·_\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 |
17 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) | 7 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) |
18 | ··········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) |
19 | ··········o·_\x8 | 9 | ··········o·_\x8g_.e_.t_.__.t_.o_.r_.r_.e_.n_.t_.__.s_.t_.a_.t_.u_.s_.(_.)_.·_.r_.e_.f_.r_.e_.s_.h_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s_\x8(_\x8) |
20 | ··········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) |
21 | ··········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) |
22 | ··········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) |
23 | ··········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) |
24 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8s_\x8(_\x8) | 14 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8s_\x8(_\x8) |
25 | ··········o·_\x8a_\x8 | 15 | ··········o·_\x8a_\x8s_.y_.n_.c_.__.a_.d_.d_.__.t_.o_.r_.r_.e_.n_.t_.(_.)_.·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) |
26 | ··········o·_\x8 | 16 | ··········o·_\x8r_.e_.s_.u_.m_.e_.(_.)_.·_.i_.s_.__.p_.a_.u_.s_.e_.d_.(_.)_.·_.p_.a_.u_.s_.e_\x8(_\x8) |
27 | ··········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) |
28 | ··········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) |
29 | ··········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) |
30 | ··········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) |
31 | ··········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) |
32 | ··········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) |
33 | ··········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) |
34 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8(_\x8)_\x8·_\x8d_\x8h_\x8t_\x8__\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8(_\x8) | 24 | ··········o·_\x8d_\x8h_\x8t_\x8__\x8g_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8s_\x8(_\x8)_\x8·_\x8d_\x8h_\x8t_\x8__\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8(_\x8) |
35 | ··········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) |
36 | ··········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) |
37 | ··········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) |
38 | ··········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) |
39 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) | 29 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) |
40 | ··········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) |
41 | ··········o·_\x8i_\x8s_\x8__\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8i_\x8n_\x8g_\x8(_\x8)_\x8·_\x8 | 31 | ··········o·_\x8i_\x8s_\x8__\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8i_\x8n_\x8g_\x8(_\x8)_\x8·_\x8l_.i_.s_.t_.e_.n_.__.p_.o_.r_.t_.(_.)_.·_.s_.s_.l_.__\x8l_\x8i_\x8s_\x8t_\x8e_\x8n_\x8__\x8p_\x8o_\x8r_\x8t_\x8(_\x8) |
42 | ··········o·_\x8 | 32 | ··········o·_\x8g_.e_.t_.__.p_.e_.e_.r_.__.c_.l_.a_.s_.s_.__.f_.i_.l_.t_.e_.r_.(_.)_.·_.s_\x8e_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8l_\x8a_\x8s_\x8s_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r_\x8(_\x8) |
43 | ··········o·_\x8s_\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)_\x8·_\x8g_\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) | 33 | ··········o·_\x8s_\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)_\x8·_\x8g_\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) |
44 | ··········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) |
45 | ··········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) |
46 | ··········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) |
47 | ··········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) |
48 | ··········o·_\x8a_\x8p_\x8p_\x8l_\x8y_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8) | 38 | ··········o·_\x8a_\x8p_\x8p_\x8l_\x8y_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8)_\x8·_\x8g_\x8e_\x8t_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8) |
49 | ··········o·_\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t_\x8(_\x8)_\x8·_\x8p_\x8o_\x8p_\x8__\x8a_\x8l_\x8e_\x8r_\x8t_\x8s_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8n_\x8o_\x8t_\x8i_\x8f_\x8y_\x8(_\x8) | 39 | ··········o·_\x8w_\x8a_\x8i_\x8t_\x8__\x8f_\x8o_\x8r_\x8__\x8a_\x8l_\x8e_\x8r_\x8t_\x8(_\x8)_\x8·_\x8p_\x8o_\x8p_\x8__\x8a_\x8l_\x8e_\x8r_\x8t_\x8s_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8a_\x8l_\x8e_\x8r_\x8t_\x8__\x8n_\x8o_\x8t_\x8i_\x8f_\x8y_\x8(_\x8) |
50 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8p_\x8o_\x8r_\x8t_\x8__\x8m_\x8a_\x8p_\x8p_\x8i_\x8n_\x8g_\x8(_\x8)_\x8·_\x8d_\x8e_\x8l_\x8e_\x8t_\x8e_\x8__\x8p_\x8o_\x8r_\x8t_\x8__\x8m_\x8a_\x8p_\x8p_\x8i_\x8n_\x8g_\x8(_\x8) | 40 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8p_\x8o_\x8r_\x8t_\x8__\x8m_\x8a_\x8p_\x8p_\x8i_\x8n_\x8g_\x8(_\x8)_\x8·_\x8d_\x8e_\x8l_\x8e_\x8t_\x8e_\x8__\x8p_\x8o_\x8r_\x8t_\x8__\x8m_\x8a_\x8p_\x8p_\x8i_\x8n_\x8g_\x8(_\x8) |
51 | ··········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) |
52 | ··········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) |
53 | ····*·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8)_\x8·_\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__\x8b_\x8u_\x8f_\x8(_\x8) | ||
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_p\x8pr\x8ro\x8ox\x8xy\x8y·*\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_\x8p_\x8p" | ||
57 | this·is·a·holder·for·the·internal·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·implementation·object.·Once·the | ||
58 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·destruction·is·explicitly·initiated,·this·holder·is·used·to·synchronize | ||
59 | the·completion·of·the·shutdown.·The·lifetime·of·this·object·may·outlive | ||
60 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n,·causing·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·destructor·to·not·block.·The·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y | ||
61 | destructor·will·block·however,·until·the·underlying·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·is·done·shutting | ||
62 | down. | ||
63 | struct·session_proxy | ||
64 | { | ||
65 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y·(session_proxy·const&); | ||
66 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y·(session_proxy&&)·noexcept; | ||
67 | ···~\x8~s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y·(); | ||
68 | ···session_proxy&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(session_proxy·const&)·&; | ||
69 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y·(); | ||
70 | ···session_proxy&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(session_proxy&&)·&·noexcept; | ||
71 | }; | ||
72 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
73 | *\x8**\x8**\x8**\x8**\x8*·~\x8~s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
74 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y·(session_proxy·const&); | ||
75 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y·(session_proxy&&)·noexcept; | ||
76 | ~\x8~s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y·(); | ||
77 | session_proxy&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(session_proxy·const&)·&; | ||
78 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n_\x8_p\x8pr\x8ro\x8ox\x8xy\x8y·(); | ||
79 | session_proxy&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(session_proxy&&)·&·noexcept; | ||
80 | default·constructor,·does·not·refer·to·any·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·implementation·object. | ||
81 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
82 | *\x8**\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
83 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8._\x8h_\x8p_\x8p" | ||
84 | The·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·holds·all·state·that·spans·multiple·torrents.·Among·other·things·it | ||
85 | runs·the·network·loop·and·manages·all·torrents.·Once·it's·created,·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n | ||
86 | object·will·spawn·the·main·thread·that·will·do·all·the·work.·The·main·thread | ||
87 | will·be·idle·as·long·it·doesn't·have·any·torrents·to·participate·in. | ||
88 | You·have·some·control·over·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·configuration·through·the·session_handle:: | ||
89 | apply_settings()·member·function.·To·change·one·or·more·configuration·options, | ||
90 | 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 | ||
91 | it·in·to·session::apply_settings(). | ||
92 | see·_\x8a_\x8p_\x8p_\x8l_\x8y_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8). | ||
93 | struct·session·:·session_handle | ||
94 | { | ||
95 | ···explicit·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params·const&·params); | ||
96 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params&&·params,·session_flags_t·flags); | ||
97 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(); | ||
98 | ···explicit·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params&&·params); | ||
99 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params·const&·params,·session_flags_t·flags); | ||
100 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params·const&·params,·io_context&·ios); | ||
101 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params·const&·params,·io_context&·ios,·session_flags_t); | ||
102 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params&&·params,·io_context&·ios,·session_flags_t); | ||
103 | ···s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params&&·params,·io_context&·ios); | ||
104 | ···~\x8~s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(); | ||
105 | ···session_proxy·a\x8ab\x8bo\x8or\x8rt\x8t·(); | ||
106 | }; | ||
107 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
108 | *\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
109 | explicit·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params·const&·params); | ||
110 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params&&·params,·session_flags_t·flags); | ||
111 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(); | ||
112 | explicit·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params&&·params); | ||
113 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params·const&·params,·session_flags_t·flags); | ||
114 | Constructs·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·objects·which·acts·as·the·container·of·torrents.·In | ||
115 | order·to·avoid·a·race·condition·between·starting·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·and·configuring | ||
116 | it,·you·can·pass·in·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s·object.·Its·settings·will·take·effect | ||
117 | before·the·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·starts·up. | ||
118 | The·overloads·taking·flags·can·be·used·to·start·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n·in·paused·mode·(by | ||
119 | passing·in·session::paused).·Note·that·add_default_plugins·do·not·have·an | ||
120 | affect·on·constructors·that·take·a·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s·object.·It·already·contains | ||
121 | the·plugins·to·use. | ||
122 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
123 | *\x8**\x8**\x8**\x8**\x8*·s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
124 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params·const&·params,·io_context&·ios); | ||
125 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params·const&·params,·io_context&·ios,·session_flags_t); | ||
126 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params&&·params,·io_context&·ios,·session_flags_t); | ||
127 | s\x8se\x8es\x8ss\x8si\x8io\x8on\x8n·(session_params&&·params,·io_context&·ios); | ||
Max diff block lines reached; 38872/55270 bytes (70.33%) of diff not shown. |
Offset 33, 31 lines modified | Offset 33, 31 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="#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-int-set-bool-set-str"·id="toc-entry-2">set_int()·set_bool()·set_str()</a></li> | 36 | <li><a·class="reference·internal"·href="#set-int-set-bool-set-str"·id="toc-entry-2">set_int()·set_bool()·set_str()</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- | 40 | <li><a·class="reference·internal"·href="#get-int-get-bool-get-str"·id="toc-entry-6">get_int()·get_bool()·get_str()</a></li> |
41 | <li><a·class="reference·internal"·href="#enum-type-bases"·id="toc-entry-7">enum·type_bases</a></li> | 41 | <li><a·class="reference·internal"·href="#enum-type-bases"·id="toc-entry-7">enum·type_bases</a></li> |
42 | <li><a·class="reference·internal"·href="#enum-mmap-write-mode-t"·id="toc-entry-8">enum·mmap_write_mode_t</a></li> | 42 | <li><a·class="reference·internal"·href="#enum-mmap-write-mode-t"·id="toc-entry-8">enum·mmap_write_mode_t</a></li> |
43 | <li><a·class="reference·internal"·href="#enum-suggest-mode-t"·id="toc-entry-9">enum·suggest_mode_t</a></li> | 43 | <li><a·class="reference·internal"·href="#enum-suggest-mode-t"·id="toc-entry-9">enum·suggest_mode_t</a></li> |
44 | <li><a·class="reference·internal"·href="#enum-choking-algorithm-t"·id="toc-entry-10">enum·choking_algorithm_t</a></li> | 44 | <li><a·class="reference·internal"·href="#enum-choking-algorithm-t"·id="toc-entry-10">enum·choking_algorithm_t</a></li> |
45 | <li><a·class="reference·internal"·href="#enum-seed-choking-algorithm-t"·id="toc-entry-11">enum·seed_choking_algorithm_t</a></li> | 45 | <li><a·class="reference·internal"·href="#enum-seed-choking-algorithm-t"·id="toc-entry-11">enum·seed_choking_algorithm_t</a></li> |
46 | <li><a·class="reference·internal"·href="#enum-io-buffer-mode-t"·id="toc-entry-12">enum·io_buffer_mode_t</a></li> | 46 | <li><a·class="reference·internal"·href="#enum-io-buffer-mode-t"·id="toc-entry-12">enum·io_buffer_mode_t</a></li> |
47 | <li><a·class="reference·internal"·href="#enum-bandwidth-mixed-algo-t"·id="toc-entry-13">enum·bandwidth_mixed_algo_t</a></li> | 47 | <li><a·class="reference·internal"·href="#enum-bandwidth-mixed-algo-t"·id="toc-entry-13">enum·bandwidth_mixed_algo_t</a></li> |
48 | <li><a·class="reference·internal"·href="#enum-enc-policy"·id="toc-entry-14">enum·enc_policy</a></li> | 48 | <li><a·class="reference·internal"·href="#enum-enc-policy"·id="toc-entry-14">enum·enc_policy</a></li> |
49 | <li><a·class="reference·internal"·href="#enum-enc-level"·id="toc-entry-15">enum·enc_level</a></li> | 49 | <li><a·class="reference·internal"·href="#enum-enc-level"·id="toc-entry-15">enum·enc_level</a></li> |
50 | <li><a·class="reference·internal"·href="#enum-proxy-type-t"·id="toc-entry-16">enum·proxy_type_t</a></li> | 50 | <li><a·class="reference·internal"·href="#enum-proxy-type-t"·id="toc-entry-16">enum·proxy_type_t</a></li> |
51 | </ul> | 51 | </ul> |
52 | </li> | 52 | </li> |
53 | <li><a·class="reference·internal"·href="# | 53 | <li><a·class="reference·internal"·href="#high-performance-seed-min-memory-usage"·id="toc-entry-17">high_performance_seed()·min_memory_usage()</a></li> |
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> | ||
55 | <li><a·class="reference·internal"·href="#default-settings"·id="toc-entry-19">default_settings()</a></li> | ||
54 | <li><a·class="reference·internal"·href="#generate-fingerprint"·id="toc-entry- | 56 | <li><a·class="reference·internal"·href="#generate-fingerprint"·id="toc-entry-20">generate_fingerprint()</a></li> |
55 | <li><a·class="reference·internal"·href="#name-for-setting-setting-by-name"·id="toc-entry-19">name_for_setting()·setting_by_name()</a></li> | ||
56 | <li><a·class="reference·internal"·href="#default-settings"·id="toc-entry-20">default_settings()</a></li> | ||
57 | </ul> | 57 | </ul> |
58 | </div> | 58 | </div> |
59 | <p>You·have·some·control·over·<a·class="reference·external"·href="reference-Session.html#session">session</a>·configuration·through·the·session::apply_settings() | 59 | <p>You·have·some·control·over·<a·class="reference·external"·href="reference-Session.html#session">session</a>·configuration·through·the·session::apply_settings() |
60 | member·function.·To·change·one·or·more·configuration·options,·create·a·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a> | 60 | member·function.·To·change·one·or·more·configuration·options,·create·a·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a> |
61 | object·and·fill·it·with·the·settings·to·be·set·and·pass·it·in·to·session::apply_settings().</p> | 61 | object·and·fill·it·with·the·settings·to·be·set·and·pass·it·in·to·session::apply_settings().</p> |
62 | <p>The·<a·class="reference·external"·href="reference-Settings.html#settings_pack">settings_pack</a>·object·is·a·collection·of·settings·updates·that·are·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 4, 29 lines modified | Offset 4, 29 lines modified | ||
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__\x8i_\x8n_\x8t_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8b_\x8o_\x8o_\x8l_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8r_\x8(_\x8) | 7 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8i_\x8n_\x8t_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8b_\x8o_\x8o_\x8l_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8__\x8s_\x8t_\x8r_\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__\x8 | 11 | ··········o·_\x8g_\x8e_\x8t_\x8__\x8i_.n_.t_.(_.)_.·_.g_.e_.t_.__.b_.o_.o_.l_.(_.)_.·_.g_.e_.t_.__.s_.t_.r_\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 | ····*·_\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) | ||
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) | ||
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) | ||
24 | ····*·_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8o_\x8r_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8(_\x8)_\x8·_\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8y_\x8__\x8n_\x8a_\x8m_\x8e_\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 | ····*·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8n_\x8g_\x8e_\x8r_\x8p_\x8r_\x8i_\x8n_\x8t_\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 28, 25 lines modified | Offset 28, 50 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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-count | 36 | <li><a·class="reference·internal"·href="#operator-inc-stats-counter"·id="toc-entry-2">operator[]()·inc_stats_counter()</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 | ···<strong>counters</strong>·(counters·const&)·; | ||
53 | ···counters&·<strong>operator=</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>set_value</strong>·(int·c,·std::int64_t·value)·; | ||
57 | ···void·<strong>blend_stats_counter</strong>·(int·c,·std::int64_t·value,·int·ratio)·; | ||
58 | }; | ||
59 | </pre> | ||
60 | <a·name="operator[]()"></a> | ||
61 | <a·name="inc_stats_counter()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:counters%3A%3A%5Boperator%5B%5D%28%29+inc_stats_counter%28%29%5D&labels=documentation&body=Documentation+under+heading+%22counters%3A%3A%5Boperator%5B%5D%28%29+inc_stats_counter%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="operator-inc-stats-counter"> | ||
62 | <h2>operator[]()·inc_stats_counter()</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 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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·_\x8 | 7 | ··········o·_\x8o_.p_.e_.r_.a_.t_.o_.r_.[_.]_.(_.)_.·_.i_.n_.c_.__.s_.t_.a_.t_.s_.__.c_.o_.u_.n_.t_.e_.r_\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 | ···c\x8co\x8ou\x8un\x8nt\x8te\x8er\x8rs\x8s·(counters·const&)·; | ||
19 | ···counters&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(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·s\x8se\x8et\x8t_\x8_v\x8va\x8al\x8lu\x8ue\x8e·(int·c,·std::int64_t·value)·; | ||
23 | ···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)·; | ||
24 | }; | ||
25 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
26 | *\x8**\x8**\x8**\x8**\x8*·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r[\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)·*\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 28, 85 lines modified | Offset 28, 63 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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="#storage-params"·id="toc-entry-1">storage_params</a></li> | ||
36 | <li><a·class="reference·internal"·href="#file-slice"·id="toc-entry- | 35 | <li><a·class="reference·internal"·href="#file-slice"·id="toc-entry-1">file_slice</a></li> |
37 | <li><a·class="reference·internal"·href="#file-storage"·id="toc-entry- | 36 | <li><a·class="reference·internal"·href="#file-storage"·id="toc-entry-2">file_storage</a><ul> |
38 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry- | 37 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-3">is_valid()</a></li> |
39 | <li><a·class="reference·internal"·href="#reserve"·id="toc-entry- | 38 | <li><a·class="reference·internal"·href="#reserve"·id="toc-entry-4">reserve()</a></li> |
40 | <li><a·class="reference·internal"·href="#add-file-borrow-add-file"·id="toc-entry- | 39 | <li><a·class="reference·internal"·href="#add-file-borrow-add-file"·id="toc-entry-5">add_file_borrow()·add_file()</a></li> |
41 | <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry- | 40 | <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-6">rename_file()</a></li> |
42 | <li><a·class="reference·internal"·href="#map-block"·id="toc-entry- | 41 | <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-7">map_block()</a></li> |
43 | <li><a·class="reference·internal"·href="#map-file"·id="toc-entry- | 42 | <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-8">map_file()</a></li> |
44 | <li><a·class="reference·internal"·href="#num-files"·id="toc-entry- | 43 | <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-9">num_files()</a></li> |
45 | <li><a·class="reference·internal"·href="#end-file"·id="toc-entry-1 | 44 | <li><a·class="reference·internal"·href="#end-file"·id="toc-entry-10">end_file()</a></li> |
46 | <li><a·class="reference·internal"·href="#file-range"·id="toc-entry-1 | 45 | <li><a·class="reference·internal"·href="#file-range"·id="toc-entry-11">file_range()</a></li> |
47 | <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-1 | 46 | <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-12">total_size()</a></li> |
48 | <li><a·class="reference·internal"·href="#num-piece | 47 | <li><a·class="reference·internal"·href="#set-num-pieces-num-pieces"·id="toc-entry-13">set_num_pieces()·num_pieces()</a></li> |
49 | <li><a·class="reference·internal"·href="#end-piece"·id="toc-entry-1 | 48 | <li><a·class="reference·internal"·href="#end-piece"·id="toc-entry-14">end_piece()</a></li> |
50 | <li><a·class="reference·internal"·href="#last-piece"·id="toc-entry-1 | 49 | <li><a·class="reference·internal"·href="#last-piece"·id="toc-entry-15">last_piece()</a></li> |
51 | <li><a·class="reference·internal"·href="#piece-range"·id="toc-entry-1 | 50 | <li><a·class="reference·internal"·href="#piece-range"·id="toc-entry-16">piece_range()</a></li> |
52 | <li><a·class="reference·internal"·href="# | 51 | <li><a·class="reference·internal"·href="#piece-length-set-piece-length"·id="toc-entry-17">piece_length()·set_piece_length()</a></li> |
52 | <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-18">piece_size()</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-size2"·id="toc-entry-19">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-2 | 54 | <li><a·class="reference·internal"·href="#blocks-in-piece2"·id="toc-entry-20">blocks_in_piece2()</a></li> |
56 | <li><a·class="reference·internal"·href="#blocks-per-piece"·id="toc-entry-2 | 55 | <li><a·class="reference·internal"·href="#blocks-per-piece"·id="toc-entry-21">blocks_per_piece()</a></li> |
57 | <li><a·class="reference·internal"·href="# | 56 | <li><a·class="reference·internal"·href="#name-set-name"·id="toc-entry-22">name()·set_name()</a></li> |
58 | <li><a·class="reference·internal"·href="#swap"·id="toc-entry-2 | 57 | <li><a·class="reference·internal"·href="#swap"·id="toc-entry-23">swap()</a></li> |
59 | <li><a·class="reference·internal"·href="#canonicalize"·id="toc-entry-2 | 58 | <li><a·class="reference·internal"·href="#canonicalize"·id="toc-entry-24">canonicalize()</a></li> |
60 | <li><a·class="reference·internal"·href="# | 59 | <li><a·class="reference·internal"·href="#mtime-file-path-hash-file-name-file-offset-root-root-ptr-file-size-symlink-pad-file-at"·id="toc-entry-25">mtime()·file_path()·hash()·file_name()·file_offset()·root()·root_ptr()·file_size()·symlink()·pad_file_at()</a></li> |
61 | <li><a·class="reference·internal"·href="#file-num- | 60 | <li><a·class="reference·internal"·href="#file-num-pieces-file-piece-range-file-num-blocks"·id="toc-entry-26">file_num_pieces()·file_piece_range()·file_num_blocks()</a></li> |
62 | <li><a·class="reference·internal"·href="#file-first- | 61 | <li><a·class="reference·internal"·href="#file-first-piece-node-file-first-block-node"·id="toc-entry-27">file_first_piece_node()·file_first_block_node()</a></li> |
63 | <li><a·class="reference·internal"·href="#file-path-hash"·id="toc-entry-2 | 62 | <li><a·class="reference·internal"·href="#file-path-hash"·id="toc-entry-28">file_path_hash()</a></li> |
64 | <li><a·class="reference·internal"·href="#all-path-hashes"·id="toc-entry- | 63 | <li><a·class="reference·internal"·href="#all-path-hashes"·id="toc-entry-29">all_path_hashes()</a></li> |
65 | <li><a·class="reference·internal"·href="#file-flags"·id="toc-entry-3 | 64 | <li><a·class="reference·internal"·href="#file-flags"·id="toc-entry-30">file_flags()</a></li> |
66 | <li><a·class="reference·internal"·href="#file-absolute-path"·id="toc-entry-3 | 65 | <li><a·class="reference·internal"·href="#file-absolute-path"·id="toc-entry-31">file_absolute_path()</a></li> |
67 | <li><a·class="reference·internal"·href="#file-index-at-offset-file-index-at-piece"·id="toc-entry-3 | 66 | <li><a·class="reference·internal"·href="#file-index-at-offset-file-index-at-piece"·id="toc-entry-32">file_index_at_offset()·file_index_at_piece()</a></li> |
68 | <li><a·class="reference·internal"·href="#file-index-for-root"·id="toc-entry-3 | 67 | <li><a·class="reference·internal"·href="#file-index-for-root"·id="toc-entry-33">file_index_for_root()</a></li> |
69 | <li><a·class="reference·internal"·href="#piece-index-at-file"·id="toc-entry-3 | 68 | <li><a·class="reference·internal"·href="#piece-index-at-file"·id="toc-entry-34">piece_index_at_file()</a></li> |
70 | <li><a·class="reference·internal"·href="#sanitize-symlinks"·id="toc-entry-3 | 69 | <li><a·class="reference·internal"·href="#sanitize-symlinks"·id="toc-entry-35">sanitize_symlinks()</a></li> |
71 | <li><a·class="reference·internal"·href="#v2"·id="toc-entry-3 | 70 | <li><a·class="reference·internal"·href="#v2"·id="toc-entry-36">v2()</a></li> |
72 | </ul> | 71 | </ul> |
73 | </li> | 72 | </li> |
73 | <li><a·class="reference·internal"·href="#storage-params"·id="toc-entry-37">storage_params</a></li> | ||
74 | <li><a·class="reference·internal"·href="# | 74 | <li><a·class="reference·internal"·href="#mmap-disk-io-constructor"·id="toc-entry-38">mmap_disk_io_constructor()</a></li> |
75 | <li><a·class="reference·internal"·href="#disabled-disk-io-constructor"·id="toc-entry-39">disabled_disk_io_constructor()</a></li> | 75 | <li><a·class="reference·internal"·href="#disabled-disk-io-constructor"·id="toc-entry-39">disabled_disk_io_constructor()</a></li> |
76 | <li><a·class="reference·internal"·href="#default-disk-io-constructor"·id="toc-entry-40">default_disk_io_constructor()</a></li> | ||
76 | <li><a·class="reference·internal"·href="#posix-disk-io-constructor"·id="toc-entry-4 | 77 | <li><a·class="reference·internal"·href="#posix-disk-io-constructor"·id="toc-entry-41">posix_disk_io_constructor()</a></li> |
77 | <li><a·class="reference·internal"·href="#mmap-disk-io-constructor"·id="toc-entry-41">mmap_disk_io_constructor()</a></li> | ||
78 | <li><a·class="reference·internal"·href="#enum-storage-mode-t"·id="toc-entry-42">enum·storage_mode_t</a></li> | 78 | <li><a·class="reference·internal"·href="#enum-storage-mode-t"·id="toc-entry-42">enum·storage_mode_t</a></li> |
79 | <li><a·class="reference·internal"·href="#enum-status-t"·id="toc-entry-43">enum·status_t</a></li> | 79 | <li><a·class="reference·internal"·href="#enum-status-t"·id="toc-entry-43">enum·status_t</a></li> |
80 | <li><a·class="reference·internal"·href="#enum-move-flags-t"·id="toc-entry-44">enum·move_flags_t</a></li> | 80 | <li><a·class="reference·internal"·href="#enum-move-flags-t"·id="toc-entry-44">enum·move_flags_t</a></li> |
81 | </ul> | 81 | </ul> |
82 | </div> | 82 | </div> |
83 | <a·name="storage_params"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+storage_params&labels=documentation&body=Documentation+under+heading+%22class+storage_params%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="storage-params"> | ||
84 | <h1>storage_params</h1> | ||
85 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/storage_defs.hpp">libtorrent/storage_defs.hpp</a>"</p> | ||
86 | <p>a·parameter·pack·used·to·construct·the·storage·for·a·torrent,·used·in | ||
87 | <a·class="reference·external"·href="reference-Custom_Storage.html#disk_interface">disk_interface</a></p> | ||
88 | <pre·class="literal-block"> | ||
89 | struct·storage_params | ||
90 | { | ||
91 | ···<strong>storage_params</strong>·(file_storage·const&·f,·file_storage·const*·mf | ||
92 | ······,·std::string·const&·sp,·storage_mode_t·const·sm | ||
93 | ······,·aux::vector<download_priority_t,·file_index_t>·const&·prio | ||
94 | ······,·sha1_hash·const&·ih); | ||
95 | ···file_storage·const&·files; | ||
96 | ···file_storage·const*·<strong>mapped_files</strong>··=·nullptr; | ||
97 | ···std::string·const&·path; | ||
98 | ···storage_mode_t·<strong>mode</strong>·{storage_mode_sparse}; | ||
99 | ···aux::vector<download_priority_t,·file_index_t>·const&·priorities; | ||
100 | ···sha1_hash·info_hash; | ||
101 | }; | ||
102 | </pre> | ||
103 | <a·name="file_slice"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+file_slice&labels=documentation&body=Documentation+under+heading+%22class+file_slice%22+could+be+improved">report·issue</a>]</span>< | 83 | <a·name="file_slice"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+file_slice&labels=documentation&body=Documentation+under+heading+%22class+file_slice%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="file-slice"> |
104 | <div·class="section"·id="file-slice"> | ||
105 | <h1>file_slice</h1> | 84 | <h1>file_slice</h1> |
106 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/file_storage.hpp">libtorrent/file_storage.hpp</a>"</p> | 85 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/file_storage.hpp">libtorrent/file_storage.hpp</a>"</p> |
107 | <p>represents·a·window·of·a·file·in·a·torrent.</p> | 86 | <p>represents·a·window·of·a·file·in·a·torrent.</p> |
108 | <p>The·<tt·class="docutils·literal">file_index</tt>·refers·to·the·index·of·the·file·(in·the·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>). | 87 | <p>The·<tt·class="docutils·literal">file_index</tt>·refers·to·the·index·of·the·file·(in·the·<a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a>). |
109 | To·get·the·path·and·filename,·use·<tt·class="docutils·literal">file_path()</tt>·and·give·the·<tt·class="docutils·literal">file_index</tt> | 88 | To·get·the·path·and·filename,·use·<tt·class="docutils·literal">file_path()</tt>·and·give·the·<tt·class="docutils·literal">file_index</tt> |
110 | as·argument.·The·<tt·class="docutils·literal">offset</tt>·is·the·byte·offset·in·the·file·where·the·range | 89 | as·argument.·The·<tt·class="docutils·literal">offset</tt>·is·the·byte·offset·in·the·file·where·the·range |
111 | starts,·and·<tt·class="docutils·literal">size</tt>·is·the·number·of·bytes·this·range·is.·The·size·+·offset | 90 | starts,·and·<tt·class="docutils·literal">size</tt>·is·the·number·of·bytes·this·range·is.·The·size·+·offset |
Offset 1, 77 lines modified | Offset 1, 58 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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 | ||
7 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e | 6 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8l_\x8i_\x8c_\x8e |
8 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e | 7 | ····*·_\x8f_\x8i_\x8l_\x8e_\x8__\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e |
9 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) | 8 | ··········o·_\x8i_\x8s_\x8__\x8v_\x8a_\x8l_\x8i_\x8d_\x8(_\x8) |
10 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8(_\x8) | 9 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8r_\x8v_\x8e_\x8(_\x8) |
11 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8b_\x8o_\x8r_\x8r_\x8o_\x8w_\x8(_\x8)_\x8·_\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 10 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8b_\x8o_\x8r_\x8r_\x8o_\x8w_\x8(_\x8)_\x8·_\x8a_\x8d_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
12 | ··········o·_\x8r_\x8e_\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 11 | ··········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) | 12 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8b_\x8l_\x8o_\x8c_\x8k_\x8(_\x8) |
14 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 13 | ··········o·_\x8m_\x8a_\x8p_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
15 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | 14 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) |
16 | ··········o·_\x8e_\x8n_\x8d_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 15 | ··········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) | 16 | ··········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) | 17 | ··········o·_\x8t_\x8o_\x8t_\x8a_\x8l_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) |
19 | ··········o·_\x8 | 18 | ··········o·_\x8s_.e_.t_.__.n_.u_.m_.__.p_.i_.e_.c_.e_.s_.(_.)_.·_\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) | 19 | ··········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) | 20 | ··········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) | 21 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8r_\x8a_\x8n_\x8g_\x8e_\x8(_\x8) |
23 | ··········o·_\x8 | 22 | ··········o·_\x8p_.i_.e_.c_.e_.__.l_.e_.n_.g_.t_.h_.(_.)_.·_.s_.e_.t_.__\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) | 23 | ··········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) | 24 | ··········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) | 25 | ··········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) | 26 | ··········o·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8s_\x8__\x8p_\x8e_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) |
28 | ··········o·_\x8 | 27 | ··········o·_\x8n_.a_.m_.e_.(_.)_.·_.s_.e_.t_.__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) |
29 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) | 28 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) |
30 | ··········o·_\x8c_\x8a_\x8n_\x8o_\x8n_\x8i_\x8c_\x8a_\x8l_\x8i_\x8z_\x8e_\x8(_\x8) | 29 | ··········o·_\x8c_\x8a_\x8n_\x8o_\x8n_\x8i_\x8c_\x8a_\x8l_\x8i_\x8z_\x8e_\x8(_\x8) |
31 | ··········o·_\x8 | 30 | ··········o·_\x8m_.t_.i_.m_.e_.(_.)_.·_.f_.i_.l_.e_.__.p_.a_.t_.h_.(_.)_.·_.h_.a_.s_.h_.(_.)_.·_.f_.i_.l_.e_.__.n_.a_.m_.e_.(_.)_.·_.f_.i_.l_.e_.__.o_.f_.f_.s_.e_.t_\x8(_\x8)_\x8·_\x8r_\x8o_\x8o_\x8t_\x8(_\x8) |
32 | ············_\x8 | 31 | ············_\x8r_.o_.o_.t_.__.p_.t_.r_.(_.)_.·_.f_.i_.l_.e_.__.s_.i_.z_.e_.(_.)_.·_.s_.y_.m_.l_.i_.n_.k_.(_.)_.·_.p_.a_.d_.__.f_.i_.l_.e_.__.a_.t_\x8(_\x8) |
33 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8 | 32 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8n_\x8u_\x8m_\x8__\x8p_.i_.e_.c_.e_.s_.(_.)_.·_.f_.i_.l_.e_.__.p_.i_.e_.c_.e_.__.r_.a_.n_.g_.e_.(_.)_.·_.f_.i_.l_.e_.__.n_.u_.m_.__.b_.l_.o_.c_.k_\x8s_\x8(_\x8) |
34 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8 | 33 | ··········o·_\x8f_\x8i_\x8l_\x8e_\x8__\x8f_\x8i_\x8r_\x8s_\x8t_\x8__\x8p_.i_.e_.c_.e_.__.n_.o_.d_.e_.(_.)_.·_.f_.i_.l_.e_.__.f_.i_.r_.s_.t_.__.b_.l_.o_.c_.k_\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) | 34 | ··········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) | 35 | ··········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) | 36 | ··········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) | 37 | ··········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) | 38 | ··········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) | 39 | ··········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) | 40 | ··········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) | 41 | ··········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) | 42 | ··········o·_\x8v_\x82_\x8(_\x8) |
43 | ····*·_\x8s_\x8t_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
44 | ····*·_\x8 | 44 | ····*·_\x8m_.m_.a_.p_\x8__\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8o_\x8__\x8c_\x8o_\x8n_\x8s_\x8t_\x8r_\x8u_\x8c_\x8t_\x8o_\x8r_\x8(_\x8) |
45 | ····*·_\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 | ····*·_\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) |
46 | ····*·_\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) | ||
46 | ····*·_\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) | 47 | ····*·_\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) |
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) | ||
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* | ||
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 | ||
55 | _\x8d_\x8i_\x8s_\x8k_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | ||
56 | struct·storage_params | ||
57 | { | ||
58 | ···s\x8st\x8to\x8or\x8ra\x8ag\x8ge\x8e_\x8_p\x8pa\x8ar\x8ra\x8am\x8ms\x8s·(file_storage·const&·f,·file_storage·const*·mf | ||
59 | ······,·std::string·const&·sp,·storage_mode_t·const·sm | ||
60 | ······,·aux::vector<download_priority_t,·file_index_t>·const&·prio | ||
61 | ······,·sha1_hash·const&·ih); | ||
62 | ···file_storage·const&·files; | ||
63 | ···file_storage·const*·m\x8ma\x8ap\x8pp\x8pe\x8ed\x8d_\x8_f\x8fi\x8il\x8le\x8es\x8s··=·nullptr; | ||
64 | ···std::string·const&·path; | ||
65 | ···storage_mode_t·m\x8mo\x8od\x8de\x8e·{storage_mode_sparse}; | ||
66 | ···aux::vector<download_priority_t,·file_index_t>·const&·priorities; | ||
67 | ···sha1_hash·info_hash; | ||
68 | }; | ||
69 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
70 | *\x8**\x8**\x8**\x8**\x8**\x8*·f\x8fi\x8il\x8le\x8e_\x8_s\x8sl\x8li\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* | 52 | *\x8**\x8**\x8**\x8**\x8**\x8*·f\x8fi\x8il\x8le\x8e_\x8_s\x8sl\x8li\x8ic\x8ce\x8e·*\x8**\x8**\x8**\x8**\x8**\x8* |
71 | 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" | 53 | 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" |
72 | represents·a·window·of·a·file·in·a·torrent. | 54 | represents·a·window·of·a·file·in·a·torrent. |
73 | The·file_index·refers·to·the·index·of·the·file·(in·the·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o).·To·get | 55 | The·file_index·refers·to·the·index·of·the·file·(in·the·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o).·To·get |
74 | the·path·and·filename,·use·file_path()·and·give·the·file_index·as·argument.·The | 56 | the·path·and·filename,·use·file_path()·and·give·the·file_index·as·argument.·The |
75 | offset·is·the·byte·offset·in·the·file·where·the·range·starts,·and·size·is·the | 57 | offset·is·the·byte·offset·in·the·file·where·the·range·starts,·and·size·is·the |
76 | number·of·bytes·this·range·is.·The·size·+·offset·will·never·be·greater·than·the | 58 | number·of·bytes·this·range·is.·The·size·+·offset·will·never·be·greater·than·the |
Offset 29, 62 lines modified | Offset 29, 62 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="#block-info"·id="toc-entry-1">block_info</a><ul> | 35 | <li><a·class="reference·internal"·href="#block-info"·id="toc-entry-1">block_info</a><ul> |
36 | <li><a·class="reference·internal"·href="# | 36 | <li><a·class="reference·internal"·href="#peer-set-peer"·id="toc-entry-2">peer()·set_peer()</a></li> |
37 | <li><a·class="reference·internal"·href="#enum-block-state-t"·id="toc-entry-3">enum·block_state_t</a></li> | 37 | <li><a·class="reference·internal"·href="#enum-block-state-t"·id="toc-entry-3">enum·block_state_t</a></li> |
38 | </ul> | 38 | </ul> |
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="#get-peer-info-post-peer-info"·id="toc-entry-10">get_peer_info()·post_peer_info()</a></li> |
47 | <li><a·class="reference·internal"·href="#status-post-status"·id="toc-entry-11">status()·post_status()</a></li> | 47 | <li><a·class="reference·internal"·href="#status-post-status"·id="toc-entry-11">status()·post_status()</a></li> |
48 | <li><a·class="reference·internal"·href="#post-download-queue-get-download-queue"·id="toc-entry-12">post_download_queue()·get_download_queue()</a></li> | 48 | <li><a·class="reference·internal"·href="#post-download-queue-get-download-queue"·id="toc-entry-12">post_download_queue()·get_download_queue()</a></li> |
49 | <li><a·class="reference·internal"·href="# | 49 | <li><a·class="reference·internal"·href="#clear-piece-deadlines-set-piece-deadline-reset-piece-deadline"·id="toc-entry-13">clear_piece_deadlines()·set_piece_deadline()·reset_piece_deadline()</a></li> |
50 | <li><a·class="reference·internal"·href="#post-file-progress-file-progress"·id="toc-entry-14">post_file_progress()·file_progress()</a></li> | 50 | <li><a·class="reference·internal"·href="#post-file-progress-file-progress"·id="toc-entry-14">post_file_progress()·file_progress()</a></li> |
51 | <li><a·class="reference·internal"·href="#file-status"·id="toc-entry-15">file_status()</a></li> | 51 | <li><a·class="reference·internal"·href="#file-status"·id="toc-entry-15">file_status()</a></li> |
52 | <li><a·class="reference·internal"·href="#clear-error"·id="toc-entry-16">clear_error()</a></li> | 52 | <li><a·class="reference·internal"·href="#clear-error"·id="toc-entry-16">clear_error()</a></li> |
53 | <li><a·class="reference·internal"·href="# | 53 | <li><a·class="reference·internal"·href="#trackers-add-tracker-replace-trackers-post-trackers"·id="toc-entry-17">trackers()·add_tracker()·replace_trackers()·post_trackers()</a></li> |
54 | <li><a·class="reference·internal"·href="#url-seed | 54 | <li><a·class="reference·internal"·href="#add-url-seed-url-seeds-remove-url-seed"·id="toc-entry-18">add_url_seed()·url_seeds()·remove_url_seed()</a></li> |
55 | <li><a·class="reference·internal"·href="#http-seeds- | 55 | <li><a·class="reference·internal"·href="#http-seeds-remove-http-seed-add-http-seed"·id="toc-entry-19">http_seeds()·remove_http_seed()·add_http_seed()</a></li> |
56 | <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-20">add_extension()</a></li> | 56 | <li><a·class="reference·internal"·href="#add-extension"·id="toc-entry-20">add_extension()</a></li> |
57 | <li><a·class="reference·internal"·href="#set-metadata"·id="toc-entry-21">set_metadata()</a></li> | 57 | <li><a·class="reference·internal"·href="#set-metadata"·id="toc-entry-21">set_metadata()</a></li> |
58 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-22">is_valid()</a></li> | 58 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-22">is_valid()</a></li> |
59 | <li><a·class="reference·internal"·href="# | 59 | <li><a·class="reference·internal"·href="#resume-pause"·id="toc-entry-23">resume()·pause()</a></li> |
60 | <li><a·class="reference·internal"·href="#set-flags- | 60 | <li><a·class="reference·internal"·href="#set-flags-unset-flags-flags"·id="toc-entry-24">set_flags()·unset_flags()·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-to | 65 | <li><a·class="reference·internal"·href="#queue-position-bottom-queue-position-up-queue-position-down-queue-position-top-queue-position"·id="toc-entry-29">queue_position_bottom()·queue_position_up()·queue_position_down()·queue_position_top()·queue_position()</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- | 67 | <li><a·class="reference·internal"·href="#set-ssl-certificate-set-ssl-certificate-buffer"·id="toc-entry-31">set_ssl_certificate()·set_ssl_certificate_buffer()</a></li> |
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-post-piece-availability"·id="toc-entry-34">piece_availability()·post_piece_availability()</a></li> | 70 | <li><a·class="reference·internal"·href="#piece-availability-post-piece-availability"·id="toc-entry-34">piece_availability()·post_piece_availability()</a></li> |
71 | <li><a·class="reference·internal"·href="#piece-priority-prioritize-pieces-get-piece-priorities"·id="toc-entry-35">piece_priority()·prioritize_pieces()·get_piece_priorities()</a></li> | 71 | <li><a·class="reference·internal"·href="#piece-priority-prioritize-pieces-get-piece-priorities"·id="toc-entry-35">piece_priority()·prioritize_pieces()·get_piece_priorities()</a></li> |
72 | <li><a·class="reference·internal"·href="#get-file-priorities-prioritize-files | 72 | <li><a·class="reference·internal"·href="#file-priority-get-file-priorities-prioritize-files"·id="toc-entry-36">file_priority()·get_file_priorities()·prioritize_files()</a></li> |
73 | <li><a·class="reference·internal"·href="#force- | 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-upload-limit-download-limit"·id="toc-entry-39">set_upload_limit()·set_download_limit()·upload_limit()·download_limit()</a></li> |
76 | <li><a·class="reference·internal"·href="#connect-peer"·id="toc-entry-40">connect_peer()</a></li> | 76 | <li><a·class="reference·internal"·href="#connect-peer"·id="toc-entry-40">connect_peer()</a></li> |
77 | <li><a·class="reference·internal"·href="#clear-peers"·id="toc-entry-41">clear_peers()</a></li> | 77 | <li><a·class="reference·internal"·href="#clear-peers"·id="toc-entry-41">clear_peers()</a></li> |
78 | <li><a·class="reference·internal"·href="#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="#set-max-connections-max-connections"·id="toc-entry-43">set_max_connections()·max_connections()</a></li> | 79 | <li><a·class="reference·internal"·href="#set-max-connections-max-connections"·id="toc-entry-43">set_max_connections()·max_connections()</a></li> |
80 | <li><a·class="reference·internal"·href="#move-storage"·id="toc-entry-44">move_storage()</a></li> | 80 | <li><a·class="reference·internal"·href="#move-storage"·id="toc-entry-44">move_storage()</a></li> |
81 | <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-45">rename_file()</a></li> | 81 | <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-45">rename_file()</a></li> |
82 | <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-46">info_hash()·info_hashes()</a></li> | 82 | <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-46">info_hash()·info_hashes()</a></li> |
83 | <li><a·class="reference·internal"·href="#operator-operator-operator"·id="toc-entry-47">operator | 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> |
90 | <li><a·class="reference·internal"·href="#hash-value"·id="toc-entry-52">hash_value()</a></li> | 90 | <li><a·class="reference·internal"·href="#hash-value"·id="toc-entry-52">hash_value()</a></li> |
Offset 1, 75 lines modified | Offset 1, 75 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8i_\x8n_\x8f_\x8o | 6 | ····*·_\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8i_\x8n_\x8f_\x8o |
7 | ··········o·_\x8 | 7 | ··········o·_\x8p_.e_.e_.r_.(_.)_.·_.s_.e_.t_.__\x8p_\x8e_\x8e_\x8r_\x8(_\x8) |
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·_\x8 | 15 | ··········o·_\x8g_.e_.t_.__.p_.e_.e_.r_.__.i_.n_.f_.o_.(_.)_.·_.p_.o_.s_\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) | 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) | 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·_\x8 | 18 | ··········o·_\x8c_.l_.e_.a_.r_.__.p_.i_.e_.c_.e_.__.d_.e_.a_.d_.l_.i_.n_.e_.s_.(_.)_.·_.s_.e_.t_.__.p_.i_.e_.c_.e_.__.d_.e_.a_.d_.l_.i_.n_.e_\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·_\x8p_\x8o_\x8s_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8o_\x8g_\x8r_\x8e_\x8s_\x8s_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8o_\x8g_\x8r_\x8e_\x8s_\x8s_\x8(_\x8) | 19 | ··········o·_\x8p_\x8o_\x8s_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8o_\x8g_\x8r_\x8e_\x8s_\x8s_\x8(_\x8)_\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·_\x8t_.r_.a_.c_.k_.e_.r_.s_.(_.)_.·_.a_.d_.d_.__.t_.r_.a_.c_.k_.e_.r_.(_.)_.·_.r_.e_.p_.l_.a_.c_.e_.__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8s_\x8(_\x8)_\x8·_\x8p_\x8o_\x8s_\x8t_\x8__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8s_\x8(_\x8) |
23 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8u_\x8r_\x8l_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8)_\x8·_\x8u_\x8r_\x8l_\x8__\x8s_\x8e_\x8e_\x8d_\x8s_\x8(_\x8)_\x8·_\x8r_\x8e_\x8m_\x8o_\x8v_\x8e_\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_.(_.)_.·_.r_.e_.m_.o_.v_.e_.__.h_.t_.t_.p_.__.s_.e_.e_.d_.(_.)_.·_.a_.d_.d_.__.h_.t_.t_.p_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8) |
24 | ··········o·_\x8h_\x8t_\x8t_\x8p_\x8__\x8s_\x8e_\x8e_\x8d_\x8s_\x8(_\x8)_\x8·_\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) | ||
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·_\x8 | 28 | ··········o·_\x8r_.e_.s_.u_.m_.e_.(_.)_.·_.p_.a_.u_.s_\x8e_\x8(_\x8) |
29 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8)_\x8·_\x8 | 29 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8(_\x8)_\x8·_\x8u_.n_.s_.e_.t_.__.f_.l_.a_.g_.s_.(_.)_.·_\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__\x8t_.o_. | 34 | ··········o·_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8__\x8b_.o_.t_.t_.o_.m_.(_.)_.·_.q_.u_.e_.u_.e_.__.p_.o_.s_.i_.t_.i_.o_.n_.__.u_.p_\x8(_\x8)_\x8·_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\x8__\x8d_\x8o_\x8w_\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__\x8t_.o_\x8p_\x8(_\x8)_\x8·_\x8q_\x8u_\x8e_\x8u_\x8e_\x8__\x8p_\x8o_\x8s_\x8i_\x8t_\x8i_\x8o_\x8n_\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 | 37 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8s_\x8s_\x8l_\x8__\x8c_\x8e_\x8r_\x8t_\x8i_\x8f_\x8i_\x8c_\x8a_\x8t_\x8e_\x8(_.)_.·_.s_.e_.t_.__.s_.s_.l_.__.c_.e_.r_.t_.i_.f_.i_.c_.a_.t_.e_.__.b_.u_.f_.f_.e_.r_\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) | 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) | 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·_\x8g_\x8e_\x8t_\x8__\x8f_\x8i_\x8l_\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__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8)_\x8·_\x8f_\x8i_\x8l_\x8e_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8(_\x8) | ||
43 | ··········o·_\x8f_\x8 | 42 | ··········o·_\x8f_\x8i_.l_.e_.__.p_.r_.i_.o_.r_.i_.t_.y_.(_.)_.·_.g_.e_.t_.__.f_.i_.l_.e_.__.p_.r_.i_.o_.r_.i_.t_.i_.e_.s_.(_.)_.·_.p_.r_.i_.o_.r_.i_.t_.i_.z_.e_.__.f_.i_.l_.e_.s_\x8(_\x8) |
43 | ··········o·_\x8f_\x8o_\x8r_\x8c_\x8e_\x8__\x8d_\x8h_\x8t_\x8__\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8(_\x8)_\x8·_\x8f_\x8o_\x8r_\x8c_\x8e_\x8__\x8r_\x8e_\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_\x8l_\x8o_\x8a_\x8d_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8(_\x8)_\x8·_\x8u_\x8p_\x8l_\x8o_\x8a_\x8d_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8(_\x8) |
46 | ············_\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8(_\x8) | 46 | ············_\x8d_\x8o_\x8w_\x8n_\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·_\x8s_\x8e_\x8t_\x8__\x8m_\x8a_\x8x_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8(_\x8)_\x8·_\x8m_\x8a_\x8x_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8(_\x8) | 50 | ··········o·_\x8s_\x8e_\x8t_\x8__\x8m_\x8a_\x8x_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8(_\x8)_\x8·_\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(_\x8)_\x8·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) | 53 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8)_\x8·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) |
54 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8 | 54 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_.(_.)_.·_.o_.p_.e_.r_.a_.t_.o_.r_.=_.=_.(_.)_.·_.o_.p_.e_.r_.a_.t_.o_.r_.!_\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 | ···_\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); | 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; | ||
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 41, 32 lines modified | Offset 41, 32 lines modified | ||
41 | <li><a·class="reference·internal"·href="#load-torrent-limits"·id="toc-entry-5">load_torrent_limits</a></li> | 41 | <li><a·class="reference·internal"·href="#load-torrent-limits"·id="toc-entry-5">load_torrent_limits</a></li> |
42 | <li><a·class="reference·internal"·href="#torrent-info"·id="toc-entry-6">torrent_info</a><ul> | 42 | <li><a·class="reference·internal"·href="#torrent-info"·id="toc-entry-6">torrent_info</a><ul> |
43 | <li><a·class="reference·internal"·href="#torrent-info-1"·id="toc-entry-7">torrent_info()</a></li> | 43 | <li><a·class="reference·internal"·href="#torrent-info-1"·id="toc-entry-7">torrent_info()</a></li> |
44 | <li><a·class="reference·internal"·href="#torrent-info-2"·id="toc-entry-8">~torrent_info()</a></li> | 44 | <li><a·class="reference·internal"·href="#torrent-info-2"·id="toc-entry-8">~torrent_info()</a></li> |
45 | <li><a·class="reference·internal"·href="#files-orig-files"·id="toc-entry-9">files()·orig_files()</a></li> | 45 | <li><a·class="reference·internal"·href="#files-orig-files"·id="toc-entry-9">files()·orig_files()</a></li> |
46 | <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-10">rename_file()</a></li> | 46 | <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-10">rename_file()</a></li> |
47 | <li><a·class="reference·internal"·href="#remap-files"·id="toc-entry-11">remap_files()</a></li> | 47 | <li><a·class="reference·internal"·href="#remap-files"·id="toc-entry-11">remap_files()</a></li> |
48 | <li><a·class="reference·internal"·href="# | 48 | <li><a·class="reference·internal"·href="#trackers-add-tracker-clear-trackers"·id="toc-entry-12">trackers()·add_tracker()·clear_trackers()</a></li> |
49 | <li><a·class="reference·internal"·href="#similar-torren | 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="#add- | 50 | <li><a·class="reference·internal"·href="#add-url-seed-web-seeds-set-web-seeds-add-http-seed"·id="toc-entry-14">add_url_seed()·web_seeds()·set_web_seeds()·add_http_seed()</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="#last-piece-piece- | 54 | <li><a·class="reference·internal"·href="#last-piece-end-piece-piece-range"·id="toc-entry-18">last_piece()·end_piece()·piece_range()</a></li> |
55 | <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-19">info_hash()·info_hashes()</a></li> | 55 | <li><a·class="reference·internal"·href="#info-hash-info-hashes"·id="toc-entry-19">info_hash()·info_hashes()</a></li> |
56 | <li><a·class="reference·internal"·href="#v2-v1"·id="toc-entry-20">v2()·v1()</a></li> | 56 | <li><a·class="reference·internal"·href="#v2-v1"·id="toc-entry-20">v2()·v1()</a></li> |
57 | <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-21">num_files()</a></li> | 57 | <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-21">num_files()</a></li> |
58 | <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-22">map_block()</a></li> | 58 | <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-22">map_block()</a></li> |
59 | <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-23">map_file()</a></li> | 59 | <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-23">map_file()</a></li> |
60 | <li><a·class="reference·internal"·href="#ssl-cert"·id="toc-entry-24">ssl_cert()</a></li> | 60 | <li><a·class="reference·internal"·href="#ssl-cert"·id="toc-entry-24">ssl_cert()</a></li> |
61 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-25">is_valid()</a></li> | 61 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-25">is_valid()</a></li> |
62 | <li><a·class="reference·internal"·href="#priv"·id="toc-entry-26">priv()</a></li> | 62 | <li><a·class="reference·internal"·href="#priv"·id="toc-entry-26">priv()</a></li> |
63 | <li><a·class="reference·internal"·href="#is-i2p"·id="toc-entry-27">is_i2p()</a></li> | 63 | <li><a·class="reference·internal"·href="#is-i2p"·id="toc-entry-27">is_i2p()</a></li> |
64 | <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-28">piece_size()</a></li> | 64 | <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-28">piece_size()</a></li> |
65 | <li><a·class="reference·internal"·href="#hash-for-piece-hash-for-piece | 65 | <li><a·class="reference·internal"·href="#hash-for-piece-ptr-hash-for-piece"·id="toc-entry-29">hash_for_piece_ptr()·hash_for_piece()</a></li> |
66 | <li><a·class="reference·internal"·href="#name"·id="toc-entry-30">name()</a></li> | 66 | <li><a·class="reference·internal"·href="#name"·id="toc-entry-30">name()</a></li> |
67 | <li><a·class="reference·internal"·href="#creation-date"·id="toc-entry-31">creation_date()</a></li> | 67 | <li><a·class="reference·internal"·href="#creation-date"·id="toc-entry-31">creation_date()</a></li> |
68 | <li><a·class="reference·internal"·href="#creator"·id="toc-entry-32">creator()</a></li> | 68 | <li><a·class="reference·internal"·href="#creator"·id="toc-entry-32">creator()</a></li> |
69 | <li><a·class="reference·internal"·href="#comment"·id="toc-entry-33">comment()</a></li> | 69 | <li><a·class="reference·internal"·href="#comment"·id="toc-entry-33">comment()</a></li> |
70 | <li><a·class="reference·internal"·href="#nodes"·id="toc-entry-34">nodes()</a></li> | 70 | <li><a·class="reference·internal"·href="#nodes"·id="toc-entry-34">nodes()</a></li> |
71 | <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-35">add_node()</a></li> | 71 | <li><a·class="reference·internal"·href="#add-node"·id="toc-entry-35">add_node()</a></li> |
72 | <li><a·class="reference·internal"·href="#parse-info-section"·id="toc-entry-36">parse_info_section()</a></li> | 72 | <li><a·class="reference·internal"·href="#parse-info-section"·id="toc-entry-36">parse_info_section()</a></li> |
Offset 10, 32 lines modified | Offset 10, 32 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·_\x8 | 17 | ··········o·_\x8t_.r_.a_.c_.k_.e_.r_.s_.(_.)_.·_.a_.d_.d_.__.t_.r_.a_.c_.k_.e_.r_.(_.)_.·_.c_.l_.e_.a_.r_.__\x8t_\x8r_\x8a_\x8c_\x8k_\x8e_\x8r_\x8s_\x8(_\x8) |
18 | ··········o·_\x8 | 18 | ··········o·_\x8c_.o_.l_.l_.e_.c_.t_.i_.o_.n_.s_.(_.)_.·_.s_.i_.m_.i_.l_.a_.r_.__.t_.o_.r_.r_.e_.n_.t_\x8s_\x8(_\x8) |
19 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8 | 19 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8u_.r_.l_.__.s_.e_.e_.d_.(_.)_.·_.w_.e_.b_.__.s_.e_.e_.d_.s_.(_.)_.·_.s_.e_.t_.__.w_.e_.b_.__.s_.e_.e_.d_.s_.(_.)_.·_.a_.d_.d_.__.h_.t_.t_.p_\x8__\x8s_\x8e_\x8e_\x8d_\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·_\x8l_\x8a_\x8s_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8)_\x8·_\x8 | 23 | ··········o·_\x8l_\x8a_\x8s_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8)_\x8·_\x8e_.n_.d_.__.p_.i_.e_.c_.e_.(_.)_.·_.p_.i_.e_.c_.e_.__.r_.a_.n_.g_\x8e_\x8(_\x8) |
24 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8)_\x8·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) | 24 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8(_\x8)_\x8·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8e_\x8s_\x8(_\x8) |
25 | ··········o·_\x8v_\x82_\x8(_\x8)_\x8·_\x8v_\x81_\x8(_\x8) | 25 | ··········o·_\x8v_\x82_\x8(_\x8)_\x8·_\x8v_\x81_\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) |
33 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | 33 | ··········o·_\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8s_\x8i_\x8z_\x8e_\x8(_\x8) |
34 | ··········o·_\x8h_\x8a_\x8s_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8 | 34 | ··········o·_\x8h_\x8a_\x8s_\x8h_\x8__\x8f_\x8o_\x8r_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__.p_.t_.r_.(_.)_.·_.h_.a_.s_.h_.__.f_.o_.r_.__.p_.i_.e_.c_.e_\x8(_\x8) |
35 | ··········o·_\x8n_\x8a_\x8m_\x8e_\x8(_\x8) | 35 | ··········o·_\x8n_\x8a_\x8m_\x8e_\x8(_\x8) |
36 | ··········o·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | 36 | ··········o·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8d_\x8a_\x8t_\x8e_\x8(_\x8) |
37 | ··········o·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8o_\x8r_\x8(_\x8) | 37 | ··········o·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8o_\x8r_\x8(_\x8) |
38 | ··········o·_\x8c_\x8o_\x8m_\x8m_\x8e_\x8n_\x8t_\x8(_\x8) | 38 | ··········o·_\x8c_\x8o_\x8m_\x8m_\x8e_\x8n_\x8t_\x8(_\x8) |
39 | ··········o·_\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) | 39 | ··········o·_\x8n_\x8o_\x8d_\x8e_\x8s_\x8(_\x8) |
40 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) | 40 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) |
41 | ··········o·_\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) | 41 | ··········o·_\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) |
Offset 426, 15 lines modified | Offset 426, 15 lines modified | ||
426 | currently·connected·to.</dd> | 426 | currently·connected·to.</dd> |
427 | </dl> | 427 | </dl> |
428 | <a·name="num_peers"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_status%3A%3A%5Bnum_peers%5D&labels=documentation&body=Documentation+under+heading+%22torrent_status%3A%3A%5Bnum_peers%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | 428 | <a·name="num_peers"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_status%3A%3A%5Bnum_peers%5D&labels=documentation&body=Documentation+under+heading+%22torrent_status%3A%3A%5Bnum_peers%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> |
429 | <dt>num_peers</dt> | 429 | <dt>num_peers</dt> |
430 | <dd>the·number·of·peers·this·torrent·currently·is·connected·to.·Peer | 430 | <dd>the·number·of·peers·this·torrent·currently·is·connected·to.·Peer |
431 | connections·that·are·in·the·half-open·state·(is·attempting·to·connect) | 431 | connections·that·are·in·the·half-open·state·(is·attempting·to·connect) |
432 | or·are·queued·for·later·connection·attempt·do·not·count.·Although·they | 432 | or·are·queued·for·later·connection·attempt·do·not·count.·Although·they |
433 | are·visible·in·the·peer·list·when·you·call·<a·class="reference·external"·href="reference- | 433 | are·visible·in·the·peer·list·when·you·call·<a·class="reference·external"·href="reference-Plugins.html#get_peer_info()">get_peer_info()</a>.</dd> |
434 | </dl> | 434 | </dl> |
435 | <a·name="num_complete"></a> | 435 | <a·name="num_complete"></a> |
436 | <a·name="num_incomplete"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_status%3A%3A%5Bnum_complete+num_incomplete%5D&labels=documentation&body=Documentation+under+heading+%22torrent_status%3A%3A%5Bnum_complete+num_incomplete%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> | 436 | <a·name="num_incomplete"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:torrent_status%3A%3A%5Bnum_complete+num_incomplete%5D&labels=documentation&body=Documentation+under+heading+%22torrent_status%3A%3A%5Bnum_complete+num_incomplete%5D%22+could+be+improved">report·issue</a>]</span><dl·class="docutils"> |
437 | <dt>num_complete·num_incomplete</dt> | 437 | <dt>num_complete·num_incomplete</dt> |
438 | <dd>if·the·tracker·sends·scrape·info·in·its·announce·reply,·these·fields | 438 | <dd>if·the·tracker·sends·scrape·info·in·its·announce·reply,·these·fields |
439 | will·be·set·to·the·total·number·of·peers·that·have·the·whole·file·and | 439 | will·be·set·to·the·total·number·of·peers·that·have·the·whole·file·and |
440 | the·total·number·of·peers·that·are·still·downloading.·set·to·-1·if·the | 440 | the·total·number·of·peers·that·are·still·downloading.·set·to·-1·if·the |
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="#announce-entry- | 38 | <li><a·class="reference·internal"·href="#announce-entry-announce-entry-operator"·id="toc-entry-4">announce_entry()·~announce_entry()·operator=()</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 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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·_\x8 | 9 | ··········o·_\x8a_.n_.n_.o_.u_.n_.c_.e_.__.e_.n_.t_.r_.y_.(_.)_.·_.~_.a_.n_.n_.o_.u_.n_.c_.e_.__.e_.n_.t_.r_.y_.(_.)_.·_.o_.p_.e_.r_.a_.t_.o_.r_.=_\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 28, 91 lines modified | Offset 28, 213 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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="#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="#assign"·id="toc-entry-3">assign()</a></li> | ||
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="#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="#s | 35 | <li><a·class="reference·internal"·href="#hasher"·id="toc-entry-1">hasher</a><ul> |
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="#e | 36 | <li><a·class="reference·internal"·href="#hasher-operator"·id="toc-entry-2">hasher()·operator=()</a></li> |
46 | <li><a·class="reference·internal"·href="#dat | 37 | <li><a·class="reference·internal"·href="#update"·id="toc-entry-3">update()</a></li> |
47 | <li><a·class="reference·internal"·href="#swap"·id="toc-entry-13">swap()</a></li> | ||
48 | <li><a·class="reference·internal"·href="# | 38 | <li><a·class="reference·internal"·href="#final"·id="toc-entry-4">final()</a></li> |
49 | <li><a·class="reference·internal"·href="# | 39 | <li><a·class="reference·internal"·href="#reset"·id="toc-entry-5">reset()</a></li> |
50 | <li><a·class="reference·internal"·href="#find-last-clear"·id="toc-entry-16">find_last_clear()</a></li> | ||
51 | </ul> | 40 | </ul> |
52 | </li> | 41 | </li> |
53 | <li><a·class="reference·internal"·href="#hasher"·id="toc-entry- | 42 | <li><a·class="reference·internal"·href="#hasher256"·id="toc-entry-6">hasher256</a><ul> |
54 | <li><a·class="reference·internal"·href="#hasher-operator"·id="toc-entry- | 43 | <li><a·class="reference·internal"·href="#hasher256-operator"·id="toc-entry-7">hasher256()·operator=()</a></li> |
55 | <li><a·class="reference·internal"·href="#update"·id="toc-entry- | 44 | <li><a·class="reference·internal"·href="#update-1"·id="toc-entry-8">update()</a></li> |
56 | <li><a·class="reference·internal"·href="#final"·id="toc-entry- | 45 | <li><a·class="reference·internal"·href="#final-1"·id="toc-entry-9">final()</a></li> |
57 | <li><a·class="reference·internal"·href="#reset"·id="toc-entry- | 46 | <li><a·class="reference·internal"·href="#reset-1"·id="toc-entry-10">reset()</a></li> |
58 | </ul> | 47 | </ul> |
59 | </li> | 48 | </li> |
49 | <li><a·class="reference·internal"·href="#bitfield"·id="toc-entry-11">bitfield</a><ul> | ||
50 | <li><a·class="reference·internal"·href="#bitfield-1"·id="toc-entry-12">bitfield()</a></li> | ||
60 | <li><a·class="reference·internal"·href="# | 51 | <li><a·class="reference·internal"·href="#assign"·id="toc-entry-13">assign()</a></li> |
61 | <li><a·class="reference·internal"·href="#operator- | 52 | <li><a·class="reference·internal"·href="#operator-get-bit"·id="toc-entry-14">operator[]()·get_bit()</a></li> |
53 | <li><a·class="reference·internal"·href="#set-bit-clear-bit"·id="toc-entry-15">set_bit()·clear_bit()</a></li> | ||
54 | <li><a·class="reference·internal"·href="#all-set"·id="toc-entry-16">all_set()</a></li> | ||
55 | <li><a·class="reference·internal"·href="#none-set"·id="toc-entry-17">none_set()</a></li> | ||
56 | <li><a·class="reference·internal"·href="#size"·id="toc-entry-18">size()</a></li> | ||
57 | <li><a·class="reference·internal"·href="#num-words"·id="toc-entry-19">num_words()</a></li> | ||
58 | <li><a·class="reference·internal"·href="#num-bytes"·id="toc-entry-20">num_bytes()</a></li> | ||
59 | <li><a·class="reference·internal"·href="#empty"·id="toc-entry-21">empty()</a></li> | ||
62 | <li><a·class="reference·internal"·href="# | 60 | <li><a·class="reference·internal"·href="#data"·id="toc-entry-22">data()</a></li> |
63 | <li><a·class="reference·internal"·href="# | 61 | <li><a·class="reference·internal"·href="#swap"·id="toc-entry-23">swap()</a></li> |
64 | <li><a·class="reference·internal"·href="# | 62 | <li><a·class="reference·internal"·href="#count"·id="toc-entry-24">count()</a></li> |
63 | <li><a·class="reference·internal"·href="#find-first-set"·id="toc-entry-25">find_first_set()</a></li> | ||
64 | <li><a·class="reference·internal"·href="#find-last-clear"·id="toc-entry-26">find_last_clear()</a></li> | ||
65 | </ul> | 65 | </ul> |
66 | </li> | 66 | </li> |
67 | </ul> | 67 | </ul> |
68 | </div> | 68 | </div> |
69 | <a·name="hasher"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+hasher&labels=documentation&body=Documentation+under+heading+%22class+hasher%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="hasher"> | ||
70 | <h1>hasher</h1> | ||
71 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/hasher.hpp">libtorrent/hasher.hpp</a>"</p> | ||
72 | <p>this·is·a·SHA-1·hash·class.</p> | ||
73 | <p>You·use·it·by·first·instantiating·it,·then·call·<tt·class="docutils·literal">update()</tt>·to·feed·it | ||
74 | with·data.·i.e.·you·don't·have·to·keep·the·entire·buffer·of·which·you·want·to | ||
75 | create·the·hash·in·memory.·You·can·feed·the·<a·class="reference·external"·href="reference-Utility.html#hasher">hasher</a>·parts·of·it·at·a·time.·When | ||
76 | You·have·fed·the·<a·class="reference·external"·href="reference-Utility.html#hasher">hasher</a>·with·all·the·data,·you·call·<tt·class="docutils·literal">final()</tt>·and·it | ||
77 | will·return·the·sha1-hash·of·the·data.</p> | ||
78 | <p>The·constructor·that·takes·a·<tt·class="docutils·literal">char·const*</tt>·and·an·integer·will·construct·the | ||
79 | sha1·context·and·feed·it·the·data·passed·in.</p> | ||
80 | <p>If·you·want·to·reuse·the·<a·class="reference·external"·href="reference-Utility.html#hasher">hasher</a>·object·once·you·have·created·a·hash,·you·have·to | ||
81 | call·<tt·class="docutils·literal">reset()</tt>·to·reinitialize·it.</p> | ||
82 | <p>The·built-in·software·version·of·sha1-algorithm·was·implemented | ||
83 | by·Steve·Reid·and·released·as·public·domain. | ||
84 | For·more·info,·see·<tt·class="docutils·literal">src/sha1.cpp</tt>.</p> | ||
85 | <pre·class="literal-block"> | ||
86 | class·hasher | ||
87 | { | ||
88 | ···<strong>hasher</strong>·(); | ||
89 | ···<strong>hasher</strong>·(char·const*·data,·int·len); | ||
90 | ···explicit·<strong>hasher</strong>·(span<char·const>·data); | ||
91 | ···<strong>hasher</strong>·(hasher·const&); | ||
92 | ···hasher&·<strong>operator=</strong>·(hasher·const&)·&; | ||
93 | ···hasher&·<strong>update</strong>·(span<char·const>·data); | ||
94 | ···hasher&·<strong>update</strong>·(char·const*·data,·int·len); | ||
95 | ···sha1_hash·<strong>final</strong>·(); | ||
96 | ···void·<strong>reset</strong>·(); | ||
97 | }; | ||
98 | </pre> | ||
99 | <a·name="hasher()"></a> | ||
100 | <a·name="operator=()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher%3A%3A%5Bhasher%28%29+operator%3D%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher%3A%3A%5Bhasher%28%29+operator%3D%28%29%5D%22+could+be+improved">report·issue</a>]</span><div·class="section"·id="hasher-operator"> | ||
101 | <h2>hasher()·operator=()</h2> | ||
102 | <pre·class="literal-block"> | ||
103 | <strong>hasher</strong>·(char·const*·data,·int·len); | ||
104 | explicit·<strong>hasher</strong>·(span<char·const>·data); | ||
105 | <strong>hasher</strong>·(hasher·const&); | ||
106 | hasher&·<strong>operator=</strong>·(hasher·const&)·&; | ||
107 | </pre> | ||
108 | <p>this·is·the·same·as·default·constructing·followed·by·a·call·to | ||
109 | <tt·class="docutils·literal">update(data,·len)</tt>.</p> | ||
110 | <a·name="update()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher%3A%3A%5Bupdate%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher%3A%3A%5Bupdate%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | ||
111 | <div·class="section"·id="update"> | ||
112 | <h2>update()</h2> | ||
113 | <pre·class="literal-block"> | ||
114 | hasher&·<strong>update</strong>·(span<char·const>·data); | ||
115 | hasher&·<strong>update</strong>·(char·const*·data,·int·len); | ||
116 | </pre> | ||
117 | <p>append·the·following·bytes·to·what·is·being·hashed</p> | ||
118 | <a·name="final()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher%3A%3A%5Bfinal%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher%3A%3A%5Bfinal%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | ||
119 | <div·class="section"·id="final"> | ||
120 | <h2>final()</h2> | ||
121 | <pre·class="literal-block"> | ||
122 | sha1_hash·<strong>final</strong>·(); | ||
123 | </pre> | ||
124 | <p>returns·the·SHA-1·digest·of·the·buffers·previously·passed·to | ||
125 | <a·class="reference·external"·href="reference-Utility.html#update()">update()</a>·and·the·<a·class="reference·external"·href="reference-Utility.html#hasher">hasher</a>·constructor.</p> | ||
126 | <a·name="reset()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:hasher%3A%3A%5Breset%28%29%5D&labels=documentation&body=Documentation+under+heading+%22hasher%3A%3A%5Breset%28%29%5D%22+could+be+improved">report·issue</a>]</span></div> | ||
127 | <div·class="section"·id="reset"> | ||
128 | <h2>reset()</h2> | ||
129 | <pre·class="literal-block"> | ||
130 | void·<strong>reset</strong>·(); | ||
131 | </pre> | ||
132 | <p>restore·the·<a·class="reference·external"·href="reference-Utility.html#hasher">hasher</a>·state·to·be·as·if·the·<a·class="reference·external"·href="reference-Utility.html#hasher">hasher</a>·has·just·been | ||
133 | default·constructed.</p> | ||
134 | <a·name="hasher256"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:class+hasher256&labels=documentation&body=Documentation+under+heading+%22class+hasher256%22+could+be+improved">report·issue</a>]</span></div> | ||
135 | </div> | ||
136 | <div·class="section"·id="hasher256"> | ||
137 | <h1>hasher256</h1> | ||
138 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/hasher.hpp">libtorrent/hasher.hpp</a>"</p> | ||
139 | <pre·class="literal-block"> | ||
140 | class·hasher256 | ||
141 | { | ||
142 | ···<strong>hasher256</strong>·(); | ||
143 | ···explicit·<strong>hasher256</strong>·(span<char·const>·data); | ||
Max diff block lines reached; 16557/30889 bytes (53.60%) of diff not shown. |
Offset 1, 91 lines modified | Offset 1, 180 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
4 | _\x8h_\x8o_\x8m_\x8e | 4 | _\x8h_\x8o_\x8m_\x8e |
5 | Table·of·contents | 5 | Table·of·contents |
6 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r | ||
7 | ··········o·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | ||
8 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | ||
9 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) | ||
10 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) | ||
11 | ····*·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x82_\x85_\x86 | ||
12 | ··········o·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x82_\x85_\x86_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | ||
13 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | ||
14 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) | ||
15 | ··········o·_\x8r_\x8e_\x8s_\x8e_\x8t_\x8(_\x8) | ||
6 | ····*·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d | 16 | ····*·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d |
7 | ··········o·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8(_\x8) | 17 | ··········o·_\x8b_\x8i_\x8t_\x8f_\x8i_\x8e_\x8l_\x8d_\x8(_\x8) |
8 | ··········o·_\x8a_\x8s_\x8s_\x8i_\x8g_\x8n_\x8(_\x8) | 18 | ··········o·_\x8a_\x8s_\x8s_\x8i_\x8g_\x8n_\x8(_\x8) |
9 | ··········o·_\x8 | 19 | ··········o·_\x8o_.p_.e_.r_.a_.t_.o_.r_.[_.]_.(_.)_.·_.g_.e_.t_.__.b_.i_.t_\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) | 20 | ··········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) | 21 | ··········o·_\x8a_\x8l_\x8l_\x8__\x8s_\x8e_\x8t_\x8(_\x8) |
12 | ··········o·_\x8n_\x8o_\x8n_\x8e_\x8__\x8s_\x8e_\x8t_\x8(_\x8) | 22 | ··········o·_\x8n_\x8o_\x8n_\x8e_\x8__\x8s_\x8e_\x8t_\x8(_\x8) |
13 | ··········o·_\x8s_\x8i_\x8z_\x8e_\x8(_\x8) | 23 | ··········o·_\x8s_\x8i_\x8z_\x8e_\x8(_\x8) |
14 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8w_\x8o_\x8r_\x8d_\x8s_\x8(_\x8) | 24 | ··········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) | 25 | ··········o·_\x8n_\x8u_\x8m_\x8__\x8b_\x8y_\x8t_\x8e_\x8s_\x8(_\x8) |
16 | ··········o·_\x8e_\x8m_\x8p_\x8t_\x8y_\x8(_\x8) | 26 | ··········o·_\x8e_\x8m_\x8p_\x8t_\x8y_\x8(_\x8) |
17 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) | 27 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8(_\x8) |
18 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) | 28 | ··········o·_\x8s_\x8w_\x8a_\x8p_\x8(_\x8) |
19 | ··········o·_\x8c_\x8o_\x8u_\x8n_\x8t_\x8(_\x8) | 29 | ··········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) | 30 | ··········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) | 31 | ··········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·_\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) | ||
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·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x82_\x85_\x86_\x8(_\x8) | ||
29 | ··········o·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8) | ||
30 | ··········o·_\x8f_\x8i_\x8n_\x8a_\x8l_\x8(_\x8) | ||
31 | 32 | [_.r_.e_.p_.o_.r_.t_.·_.i_.s_.s_.u_.e] | |
33 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ha\x8as\x8sh\x8he\x8er\x8r·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
34 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x8._\x8h_\x8p_\x8p" | ||
35 | this·is·a·SHA-1·hash·class. | ||
36 | You·use·it·by·first·instantiating·it,·then·call·update()·to·feed·it·with·data. | ||
37 | i.e.·you·don't·have·to·keep·the·entire·buffer·of·which·you·want·to·create·the | ||
38 | hash·in·memory.·You·can·feed·the·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·parts·of·it·at·a·time.·When·You·have | ||
39 | fed·the·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·with·all·the·data,·you·call·final()·and·it·will·return·the·sha1- | ||
40 | hash·of·the·data. | ||
41 | The·constructor·that·takes·a·char·const*·and·an·integer·will·construct·the·sha1 | ||
42 | context·and·feed·it·the·data·passed·in. | ||
43 | If·you·want·to·reuse·the·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·object·once·you·have·created·a·hash,·you·have | ||
44 | to·call·reset()·to·reinitialize·it. | ||
45 | The·built-in·software·version·of·sha1-algorithm·was·implemented·by·Steve·Reid | ||
46 | and·released·as·public·domain.·For·more·info,·see·src/sha1.cpp. | ||
47 | class·hasher | ||
48 | { | ||
49 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r·(); | ||
50 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r·(char·const*·data,·int·len); | ||
51 | ···explicit·h\x8ha\x8as\x8sh\x8he\x8er\x8r·(span<char·const>·data); | ||
52 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r·(hasher·const&); | ||
53 | ···hasher&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(hasher·const&)·&; | ||
54 | ···hasher&·u\x8up\x8pd\x8da\x8at\x8te\x8e·(span<char·const>·data); | ||
55 | ···hasher&·u\x8up\x8pd\x8da\x8at\x8te\x8e·(char·const*·data,·int·len); | ||
56 | ···sha1_hash·f\x8fi\x8in\x8na\x8al\x8l·(); | ||
57 | ···void·r\x8re\x8es\x8se\x8et\x8t·(); | ||
58 | }; | ||
59 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
60 | *\x8**\x8**\x8**\x8**\x8*·h\x8ha\x8as\x8sh\x8he\x8er\x8r(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
61 | h\x8ha\x8as\x8sh\x8he\x8er\x8r·(char·const*·data,·int·len); | ||
62 | explicit·h\x8ha\x8as\x8sh\x8he\x8er\x8r·(span<char·const>·data); | ||
63 | h\x8ha\x8as\x8sh\x8he\x8er\x8r·(hasher·const&); | ||
64 | hasher&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(hasher·const&)·&; | ||
65 | this·is·the·same·as·default·constructing·followed·by·a·call·to·update(data, | ||
66 | len). | ||
67 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
68 | *\x8**\x8**\x8**\x8**\x8*·u\x8up\x8pd\x8da\x8at\x8te\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
69 | hasher&·u\x8up\x8pd\x8da\x8at\x8te\x8e·(span<char·const>·data); | ||
70 | hasher&·u\x8up\x8pd\x8da\x8at\x8te\x8e·(char·const*·data,·int·len); | ||
71 | append·the·following·bytes·to·what·is·being·hashed | ||
72 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
73 | *\x8**\x8**\x8**\x8**\x8*·f\x8fi\x8in\x8na\x8al\x8l(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
74 | sha1_hash·f\x8fi\x8in\x8na\x8al\x8l·(); | ||
75 | returns·the·SHA-1·digest·of·the·buffers·previously·passed·to·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8)·and·the | ||
76 | _\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·constructor. | ||
77 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
78 | *\x8**\x8**\x8**\x8**\x8*·r\x8re\x8es\x8se\x8et\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
79 | void·r\x8re\x8es\x8se\x8et\x8t·(); | ||
80 | restore·the·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·state·to·be·as·if·the·_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·has·just·been·default | ||
81 | constructed. | ||
82 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
83 | *\x8**\x8**\x8**\x8**\x8**\x8*·h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·*\x8**\x8**\x8**\x8**\x8**\x8* | ||
84 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8h_\x8a_\x8s_\x8h_\x8e_\x8r_\x8._\x8h_\x8p_\x8p" | ||
85 | class·hasher256 | ||
86 | { | ||
87 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·(); | ||
88 | ···explicit·h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·(span<char·const>·data); | ||
89 | ···hasher256&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(hasher256·const&)·&; | ||
90 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·(char·const*·data,·int·len); | ||
91 | ···h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·(hasher256·const&); | ||
92 | ···hasher256&·u\x8up\x8pd\x8da\x8at\x8te\x8e·(span<char·const>·data); | ||
93 | ···hasher256&·u\x8up\x8pd\x8da\x8at\x8te\x8e·(char·const*·data,·int·len); | ||
94 | ···sha256_hash·f\x8fi\x8in\x8na\x8al\x8l·(); | ||
95 | ···void·r\x8re\x8es\x8se\x8et\x8t·(); | ||
96 | ···~\x8~h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·(); | ||
97 | }; | ||
98 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
99 | *\x8**\x8**\x8**\x8**\x8*·h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86(\x8()\x8)·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
100 | explicit·h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·(span<char·const>·data); | ||
101 | hasher256&·o\x8op\x8pe\x8er\x8ra\x8at\x8to\x8or\x8r=\x8=·(hasher256·const&)·&; | ||
102 | h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·(char·const*·data,·int·len); | ||
103 | h\x8ha\x8as\x8sh\x8he\x8er\x8r2\x825\x856\x86·(hasher256·const&); | ||
104 | this·is·the·same·as·default·constructing·followed·by·a·call·to·update(data, | ||
105 | len). | ||
106 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
107 | *\x8**\x8**\x8**\x8**\x8*·u\x8up\x8pd\x8da\x8at\x8te\x8e(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
108 | hasher256&·u\x8up\x8pd\x8da\x8at\x8te\x8e·(span<char·const>·data); | ||
109 | hasher256&·u\x8up\x8pd\x8da\x8at\x8te\x8e·(char·const*·data,·int·len); | ||
110 | append·the·following·bytes·to·what·is·being·hashed | ||
111 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
112 | *\x8**\x8**\x8**\x8**\x8*·f\x8fi\x8in\x8na\x8al\x8l(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
113 | sha256_hash·f\x8fi\x8in\x8na\x8al\x8l·(); | ||
114 | returns·the·SHA-1·digest·of·the·buffers·previously·passed·to·_\x8u_\x8p_\x8d_\x8a_\x8t_\x8e_\x8(_\x8)·and·the | ||
115 | _\x8h_\x8a_\x8s_\x8h_\x8e_\x8r·constructor. | ||
116 | [_\x8r_\x8e_\x8p_\x8o_\x8r_\x8t_\x8·_\x8i_\x8s_\x8s_\x8u_\x8e] | ||
117 | *\x8**\x8**\x8**\x8**\x8*·r\x8re\x8es\x8se\x8et\x8t(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8* | ||
118 | void·r\x8re\x8es\x8se\x8et\x8t·(); | ||
Max diff block lines reached; 9947/16296 bytes (61.04%) of diff not shown. |
Offset 84, 18 lines modified | Offset 84, 18 lines modified | ||
84 | </pre> | 84 | </pre> |
85 | <p>Verifies·the·signature·on·the·given·message·using·<tt·class="docutils·literal">pk</tt></p> | 85 | <p>Verifies·the·signature·on·the·given·message·using·<tt·class="docutils·literal">pk</tt></p> |
86 | <a·name="ed25519_add_scalar()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:ed25519_add_scalar%28%29&labels=documentation&body=Documentation+under+heading+%22ed25519_add_scalar%28%29%22+could+be+improved">report·issue</a>]</span></div> | 86 | <a·name="ed25519_add_scalar()"></a><span·class="report-issue">[<a·href="http://github.com/arvidn/libtorrent/issues/new?title=docs:ed25519_add_scalar%28%29&labels=documentation&body=Documentation+under+heading+%22ed25519_add_scalar%28%29%22+could+be+improved">report·issue</a>]</span></div> |
87 | <div·class="section"·id="ed25519-add-scalar"> | 87 | <div·class="section"·id="ed25519-add-scalar"> |
88 | <h1>ed25519_add_scalar()</h1> | 88 | <h1>ed25519_add_scalar()</h1> |
89 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/kademlia/ed25519.hpp">libtorrent/kademlia/ed25519.hpp</a>"</p> | 89 | <p>Declared·in·"<a·class="reference·external"·href="include/libtorrent/kademlia/ed25519.hpp">libtorrent/kademlia/ed25519.hpp</a>"</p> |
90 | <pre·class="literal-block"> | 90 | <pre·class="literal-block"> |
91 | secret_key·<strong>ed25519_add_scalar</strong>·(secret_key·const&·sk | ||
92 | ···,·std::array<char,·32>·const&·scalar); | ||
93 | public_key·<strong>ed25519_add_scalar</strong>·(public_key·const&·pk | 91 | public_key·<strong>ed25519_add_scalar</strong>·(public_key·const&·pk |
94 | ···,·std::array<char,·32>·const&·scalar); | 92 | ···,·std::array<char,·32>·const&·scalar); |
93 | secret_key·<strong>ed25519_add_scalar</strong>·(secret_key·const&·sk | ||
94 | ···,·std::array<char,·32>·const&·scalar); | ||
95 | </pre> | 95 | </pre> |
96 | <p>Adds·a·scalar·to·the·given·key·pair·where·scalar·is·a·32·byte·buffer | 96 | <p>Adds·a·scalar·to·the·given·key·pair·where·scalar·is·a·32·byte·buffer |
97 | (possibly·generated·with·<cite>ed25519_create_seed</cite>),·generating·a·new·key·pair.</p> | 97 | (possibly·generated·with·<cite>ed25519_create_seed</cite>),·generating·a·new·key·pair.</p> |
98 | <p>You·can·calculate·the·public·key·sum·without·knowing·the·private·key·and | 98 | <p>You·can·calculate·the·public·key·sum·without·knowing·the·private·key·and |
99 | vice·versa·by·passing·in·null·for·the·key·you·don't·know.·This·is·useful | 99 | vice·versa·by·passing·in·null·for·the·key·you·don't·know.·This·is·useful |
100 | when·a·third·party·(an·authoritative·server·for·example)·needs·to·enforce | 100 | when·a·third·party·(an·authoritative·server·for·example)·needs·to·enforce |
101 | randomness·on·a·key·pair·while·only·knowing·the·public·key·of·the·other | 101 | randomness·on·a·key·pair·while·only·knowing·the·public·key·of·the·other |
Offset 39, 18 lines modified | Offset 39, 18 lines modified | ||
39 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8k_\x8a_\x8d_\x8e_\x8m_\x8l_\x8i_\x8a_\x8/_\x8e_\x8d_\x82_\x85_\x85_\x81_\x89_\x8._\x8h_\x8p_\x8p" | 39 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8k_\x8a_\x8d_\x8e_\x8m_\x8l_\x8i_\x8a_\x8/_\x8e_\x8d_\x82_\x85_\x85_\x81_\x89_\x8._\x8h_\x8p_\x8p" |
40 | bool·e\x8ed\x8d2\x825\x855\x851\x819\x89_\x8_v\x8ve\x8er\x8ri\x8if\x8fy\x8y·(signature·const&·sig | 40 | bool·e\x8ed\x8d2\x825\x855\x851\x819\x89_\x8_v\x8ve\x8er\x8ri\x8if\x8fy\x8y·(signature·const&·sig |
41 | ···,·span<char·const>·msg,·public_key·const&·pk); | 41 | ···,·span<char·const>·msg,·public_key·const&·pk); |
42 | Verifies·the·signature·on·the·given·message·using·pk | 42 | Verifies·the·signature·on·the·given·message·using·pk |
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**\x8*·e\x8ed\x8d2\x825\x855\x851\x819\x89_\x8_a\x8ad\x8dd\x8d_\x8_s\x8sc\x8ca\x8al\x8la\x8ar\x8r(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* | 44 | *\x8**\x8**\x8**\x8**\x8**\x8*·e\x8ed\x8d2\x825\x855\x851\x819\x89_\x8_a\x8ad\x8dd\x8d_\x8_s\x8sc\x8ca\x8al\x8la\x8ar\x8r(\x8()\x8)·*\x8**\x8**\x8**\x8**\x8**\x8* |
45 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8k_\x8a_\x8d_\x8e_\x8m_\x8l_\x8i_\x8a_\x8/_\x8e_\x8d_\x82_\x85_\x85_\x81_\x89_\x8._\x8h_\x8p_\x8p" | 45 | Declared·in·"_\x8l_\x8i_\x8b_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8/_\x8k_\x8a_\x8d_\x8e_\x8m_\x8l_\x8i_\x8a_\x8/_\x8e_\x8d_\x82_\x85_\x85_\x81_\x89_\x8._\x8h_\x8p_\x8p" |
46 | secret_key·e\x8ed\x8d2\x825\x855\x851\x819\x89_\x8_a\x8ad\x8dd\x8d_\x8_s\x8sc\x8ca\x8al\x8la\x8ar\x8r·(secret_key·const&·sk | ||
47 | ···,·std::array<char,·32>·const&·scalar); | ||
48 | public_key·e\x8ed\x8d2\x825\x855\x851\x819\x89_\x8_a\x8ad\x8dd\x8d_\x8_s\x8sc\x8ca\x8al\x8la\x8ar\x8r·(public_key·const&·pk | 46 | public_key·e\x8ed\x8d2\x825\x855\x851\x819\x89_\x8_a\x8ad\x8dd\x8d_\x8_s\x8sc\x8ca\x8al\x8la\x8ar\x8r·(public_key·const&·pk |
49 | ···,·std::array<char,·32>·const&·scalar); | 47 | ···,·std::array<char,·32>·const&·scalar); |
48 | secret_key·e\x8ed\x8d2\x825\x855\x851\x819\x89_\x8_a\x8ad\x8dd\x8d_\x8_s\x8sc\x8ca\x8al\x8la\x8ar\x8r·(secret_key·const&·sk | ||
49 | ···,·std::array<char,·32>·const&·scalar); | ||
50 | Adds·a·scalar·to·the·given·key·pair·where·scalar·is·a·32·byte·buffer·(possibly | 50 | Adds·a·scalar·to·the·given·key·pair·where·scalar·is·a·32·byte·buffer·(possibly |
51 | generated·withed25519_create_seed),·generating·a·new·key·pair. | 51 | generated·withed25519_create_seed),·generating·a·new·key·pair. |
52 | You·can·calculate·the·public·key·sum·without·knowing·the·private·key·and·vice | 52 | You·can·calculate·the·public·key·sum·without·knowing·the·private·key·and·vice |
53 | versa·by·passing·in·null·for·the·key·you·don't·know.·This·is·useful·when·a | 53 | versa·by·passing·in·null·for·the·key·you·don't·know.·This·is·useful·when·a |
54 | third·party·(an·authoritative·server·for·example)·needs·to·enforce·randomness | 54 | third·party·(an·authoritative·server·for·example)·needs·to·enforce·randomness |
55 | on·a·key·pair·while·only·knowing·the·public·key·of·the·other·side. | 55 | on·a·key·pair·while·only·knowing·the·public·key·of·the·other·side. |
56 | Warning:·the·last·bit·of·the·scalar·is·ignored·-·if·comparing·scalars·make·sure | 56 | Warning:·the·last·bit·of·the·scalar·is·ignored·-·if·comparing·scalars·make·sure |
Offset 21, 211 lines modified | Offset 21, 211 lines modified | ||
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">Stats</p> | 25 | <p·class="rubric">Stats</p> |
26 | <div·class="line-block"> | 26 | <div·class="line-block"> |
27 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#stats_metric">stats_metric</a></div> | ||
28 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#counters">counters</a></div> | 27 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#counters">counters</a></div> |
28 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#stats_metric">stats_metric</a></div> | ||
29 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#session_stats_metrics()">session_stats_metrics()</a></div> | 29 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#session_stats_metrics()">session_stats_metrics()</a></div> |
30 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#find_metric_idx()">find_metric_idx()</a></div> | 30 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#find_metric_idx()">find_metric_idx()</a></div> |
31 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#metric_type_t">metric_type_t</a></div> | 31 | <div·class="line"><a·class="reference·external"·href="reference-Stats.html#metric_type_t">metric_type_t</a></div> |
32 | </div> | 32 | </div> |
33 | <p·class="rubric">Add·Torrent</p> | ||
34 | <div·class="line-block"> | ||
35 | <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a></div> | ||
36 | <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#client_data_t">client_data_t</a></div> | ||
37 | </div> | ||
38 | <p·class="rubric">Session</p> | ||
39 | <div·class="line-block"> | ||
40 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a></div> | ||
41 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session">session</a></div> | ||
42 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_params">session_params</a></div> | ||
43 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_handle">session_handle</a></div> | ||
44 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params()">write_session_params()</a></div> | ||
45 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#read_session_params()">read_session_params()</a></div> | ||
46 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params_buf()">write_session_params_buf()</a></div> | ||
47 | </div> | ||
48 | <p·class="rubric">Torrent·Status</p> | ||
49 | <div·class="line-block"> | ||
50 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Status.html#torrent_status">torrent_status</a></div> | ||
51 | </div> | ||
52 | <p·class="rubric">Torrent·Info</p> | ||
53 | <div·class="line-block"> | ||
54 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#web_seed_entry">web_seed_entry</a></div> | ||
55 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#load_torrent_limits">load_torrent_limits</a></div> | ||
56 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Info.html#torrent_info">torrent_info</a></div> | ||
57 | </div> | ||
58 | <p·class="rubric">Core</p> | 33 | <p·class="rubric">Core</p> |
59 | <div·class="line-block"> | 34 | <div·class="line-block"> |
60 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_info">peer_info</a></div> | ||
61 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#info_hash_t">info_hash_t</a></div> | ||
62 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#piece_block">piece_block</a></div> | ||
63 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_request">peer_request</a></div> | 35 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_request">peer_request</a></div> |
36 | <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#info_hash_t">info_hash_t</a></div> | ||
38 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#peer_info">peer_info</a></div> | ||
39 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_peer_equal()">torrent_peer_equal()</a></div> | ||
40 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#make_magnet_uri()">make_magnet_uri()</a></div> | ||
41 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#parse_magnet_uri()">parse_magnet_uri()</a></div> | ||
42 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#truncate_files()">truncate_files()</a></div> | ||
64 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#version()">version()</a></div> | 43 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#version()">version()</a></div> |
65 | <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#load_torrent_file()">load_torrent_file()</a></div> |
66 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_parsed()">load_torrent_parsed()</a></div> | 45 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_parsed()">load_torrent_parsed()</a></div> |
67 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_buffer()">load_torrent_buffer()</a></div> | 46 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#load_torrent_buffer()">load_torrent_buffer()</a></div> |
68 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_peer_equal()">torrent_peer_equal()</a></div> | ||
69 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#truncate_files()">truncate_files()</a></div> | ||
70 | <div·class="line"><a·class="reference·external"·href="reference-Core.html# | 47 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#event_t">event_t</a></div> |
71 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#parse_magnet_uri()">parse_magnet_uri()</a></div> | ||
72 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_transport">portmap_transport</a></div> | 48 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_transport">portmap_transport</a></div> |
73 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_protocol">portmap_protocol</a></div> | 49 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#portmap_protocol">portmap_protocol</a></div> |
50 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#connection_type">connection_type</a></div> | ||
74 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#protocol_version">protocol_version</a></div> | 51 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#protocol_version">protocol_version</a></div> |
75 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#event_t">event_t</a></div> | ||
76 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#socket_type_t">socket_type_t</a></div> | 52 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#socket_type_t">socket_type_t</a></div> |
77 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#connection_type">connection_type</a></div> | ||
78 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_flags_t">torrent_flags_t</a></div> | 53 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#torrent_flags_t">torrent_flags_t</a></div> |
79 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#download_priority_t">download_priority_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> | ||
80 | <div·class="line"><a·class="reference·external"·href="reference- | 56 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#int">int</a></div> |
81 | <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#charconst*">char·const*</a></div> |
82 | <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#std::uint64_t">std::uint64_t</a></div> |
83 | <div·class="line"><a·class="reference·external"·href="reference-Core.html#pex_flags_t">pex_flags_t</a></div> | ||
84 | </div> | 59 | </div> |
85 | <p·class="rubric">T | 60 | <p·class="rubric">Trackers</p> |
86 | <div·class="line-block"> | 61 | <div·class="line-block"> |
87 | <div·class="line"><a·class="reference·external"·href="reference-T | 62 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_infohash">announce_infohash</a></div> |
63 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_endpoint">announce_endpoint</a></div> | ||
88 | <div·class="line"><a·class="reference·external"·href="reference-T | 64 | <div·class="line"><a·class="reference·external"·href="reference-Trackers.html#announce_entry">announce_entry</a></div> |
65 | </div> | ||
66 | <p·class="rubric">Torrent·Status</p> | ||
67 | <div·class="line-block"> | ||
89 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_ | 68 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Status.html#torrent_status">torrent_status</a></div> |
69 | </div> | ||
70 | <p·class="rubric">Session</p> | ||
71 | <div·class="line-block"> | ||
72 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_handle">session_handle</a></div> | ||
73 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_proxy">session_proxy</a></div> | ||
90 | <div·class="line"><a·class="reference·external"·href="reference- | 74 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session">session</a></div> |
75 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#session_params">session_params</a></div> | ||
76 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params()">write_session_params()</a></div> | ||
77 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#write_session_params_buf()">write_session_params_buf()</a></div> | ||
78 | <div·class="line"><a·class="reference·external"·href="reference-Session.html#read_session_params()">read_session_params()</a></div> | ||
91 | </div> | 79 | </div> |
92 | <p·class="rubric">Settings</p> | 80 | <p·class="rubric">Settings</p> |
93 | <div·class="line-block"> | 81 | <div·class="line-block"> |
94 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#overview">overview</a></div> | 82 | <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> | 83 | <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> | 84 | <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> | ||
99 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#n | 85 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#min_memory_usage()">min_memory_usage()</a></div> |
100 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#setting_by_name()">setting_by_name()</a></div> | 86 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#setting_by_name()">setting_by_name()</a></div> |
87 | <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> | 88 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#default_settings()">default_settings()</a></div> |
89 | <div·class="line"><a·class="reference·external"·href="reference-Settings.html#generate_fingerprint()">generate_fingerprint()</a></div> | ||
102 | </div> | 90 | </div> |
103 | <p·class="rubric"> | 91 | <p·class="rubric">Add·Torrent</p> |
104 | <div·class="line-block"> | 92 | <div·class="line-block"> |
93 | <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#client_data_t">client_data_t</a></div> | ||
94 | <div·class="line"><a·class="reference·external"·href="reference-Add_Torrent.html#add_torrent_params">add_torrent_params</a></div> | ||
95 | </div> | ||
96 | <p·class="rubric">Torrent·Handle</p> | ||
97 | <div·class="line-block"> | ||
105 | <div·class="line"><a·class="reference·external"·href="reference-Tr | 98 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#block_info">block_info</a></div> |
106 | <div·class="line"><a·class="reference·external"·href="reference-Tr | 99 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#partial_piece_info">partial_piece_info</a></div> |
100 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#torrent_handle">torrent_handle</a></div> | ||
101 | <div·class="line"><a·class="reference·external"·href="reference-Torrent_Handle.html#hash_value()">hash_value()</a></div> | ||
102 | </div> | ||
103 | <p·class="rubric">Torrent·Info</p> | ||
104 | <div·class="line-block"> | ||
107 | <div·class="line"><a·class="reference·external"·href="reference-Tr | 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> |
Max diff block lines reached; 19171/31532 bytes (60.80%) of diff not shown. |
Offset 1, 175 lines modified | Offset 1, 174 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 | Stats | 5 | Stats |
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 |
7 | _\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c | ||
8 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8s_\x8(_\x8) | 8 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8s_\x8(_\x8) |
9 | _\x8f_\x8i_\x8n_\x8d_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8i_\x8d_\x8x_\x8(_\x8) | 9 | _\x8f_\x8i_\x8n_\x8d_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8i_\x8d_\x8x_\x8(_\x8) |
10 | _\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | 10 | _\x8m_\x8e_\x8t_\x8r_\x8i_\x8c_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t |
11 | Add·Torrent | ||
12 | _\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
13 | _\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t | ||
14 | Session | ||
15 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y | ||
16 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n | ||
17 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
18 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | ||
19 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
20 | _\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
21 | _\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) | ||
22 | Torrent·Status | ||
23 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8u_\x8s | ||
24 | Torrent·Info | ||
25 | _\x8w_\x8e_\x8b_\x8__\x8s_\x8e_\x8e_\x8d_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | ||
26 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8l_\x8i_\x8m_\x8i_\x8t_\x8s | ||
27 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8f_\x8o | ||
28 | Core | 11 | Core |
29 | _\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | ||
30 | _\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t | ||
31 | _\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k | ||
32 | _\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t | 12 | _\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t |
13 | _\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8b_\x8l_\x8o_\x8c_\x8k | ||
14 | _\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t | ||
15 | _\x8p_\x8e_\x8e_\x8r_\x8__\x8i_\x8n_\x8f_\x8o | ||
16 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8e_\x8q_\x8u_\x8a_\x8l_\x8(_\x8) | ||
17 | _\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | ||
18 | _\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | ||
19 | _\x8t_\x8r_\x8u_\x8n_\x8c_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
33 | _\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | 20 | _\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) |
34 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) | 21 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\x8(_\x8) |
35 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8s_\x8e_\x8d_\x8(_\x8) | 22 | _\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8s_\x8e_\x8d_\x8(_\x8) |
36 | _\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__\x8b_\x8u_\x8f_\x8f_\x8e_\x8r_\x8(_\x8) |
24 | _\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t | ||
37 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8e_\x8q_\x8u_\x8a_\x8l_\x8(_\x8) | ||
38 | _\x8t_\x8r_\x8u_\x8n_\x8c_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
39 | _\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | ||
40 | _\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | ||
41 | _\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t | 25 | _\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t |
42 | _\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l | 26 | _\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l |
27 | _\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8y_\x8p_\x8e | ||
43 | _\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n | 28 | _\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n |
44 | _\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t | ||
45 | _\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | 29 | _\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t |
46 | _\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8y_\x8p_\x8e | ||
47 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | 30 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t |
48 | _\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\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 | ||
49 | _\x8i_\x8n_\x8t | 33 | _\x8i_\x8n_\x8t |
50 | _\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* | 34 | _\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* |
51 | _\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t | 35 | _\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t |
52 | _\x8p_\x8e_\x8x_\x8__\x8f_\x8l_\x8a_\x8g_\x8s_\x8__\x8t | ||
53 | Torrent·Handle | ||
54 | _\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8i_\x8n_\x8f_\x8o | ||
55 | 36 | Trackers | |
37 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h | ||
38 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t | ||
39 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8t_\x8r_\x8y | ||
40 | Torrent·Status | ||
56 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8 | 41 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8s_.t_.a_.t_.u_.s |
57 | 42 | Session | |
43 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | ||
44 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y | ||
45 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n | ||
46 | _\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
47 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
48 | _\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) | ||
49 | _\x8r_\x8e_\x8a_\x8d_\x8__\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s_\x8(_\x8) | ||
58 | Settings | 50 | Settings |
59 | _\x8o_\x8v_\x8e_\x8r_\x8v_\x8i_\x8e_\x8w | 51 | _\x8o_\x8v_\x8e_\x8r_\x8v_\x8i_\x8e_\x8w |
60 | _\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8__\x8p_\x8a_\x8c_\x8k | 52 | _\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) | 53 | _\x8h_\x8i_\x8g_\x8h_\x8__\x8p_\x8e_\x8r_\x8f_\x8o_\x8r_\x8m_\x8a_\x8n_\x8c_\x8e_\x8__\x8s_\x8e_\x8e_\x8d_\x8(_\x8) |
54 | _\x8m_\x8i_\x8n_\x8__\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8__\x8u_\x8s_\x8a_\x8g_\x8e_\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) | ||
64 | _\x8n_\x8a_\x8m_\x8e_\x8__\x8f_\x8o_\x8r_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8(_\x8) | ||
65 | _\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8y_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) | 55 | _\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8y_\x8__\x8n_\x8a_\x8m_\x8e_\x8(_\x8) |
56 | _\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) | 57 | _\x8d_\x8e_\x8f_\x8a_\x8u_\x8l_\x8t_\x8__\x8s_\x8e_\x8t_\x8t_\x8i_\x8n_\x8g_\x8s_\x8(_\x8) |
67 | Trackers | ||
68 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o_\x8h_\x8a_\x8s_\x8h | ||
69 | _\x8a_\x8n_\x8n_\x8o_\x8u_\x8n_\x8c_\x8e_\x8__\x8e_\x8n_\x8d_\x8p_\x8o_\x8i_\x8n_\x8t | ||
70 | _\x8a_. | 58 | _\x8g_.e_.n_.e_.r_.a_.t_.e_.__.f_.i_.n_.g_.e_.r_.p_.r_.i_.n_.t_.(_.) |
59 | Add·Torrent | ||
60 | _\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t | ||
61 | _\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
62 | Torrent·Handle | ||
63 | _\x8b_\x8l_\x8o_\x8c_\x8k_\x8__\x8i_\x8n_\x8f_\x8o | ||
64 | _\x8p_\x8a_\x8r_\x8t_\x8i_\x8a_\x8l_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8__\x8i_\x8n_\x8f_\x8o | ||
65 | _\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | ||
66 | _\x8h_\x8a_\x8s_\x8h_\x8__\x8v_\x8a_\x8l_\x8u_\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_\x8a_\x8t_\x8e | 72 | _\x8d_\x8h_\x8t_\x8__\x8s_\x8t_\x8a_\x8t_\x8e |
73 | _\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__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s |
74 | _\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_\x8o_\x8r_\x8a_\x8g_\x8e_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e |
75 | _\x8s_\x8i_\x8g_\x8n_\x8__\x8m_\x8u_\x8t_\x8a_\x8b_\x8l_\x8e_\x8__\x8i_\x8t_\x8e_\x8m_\x8(_\x8) | ||
76 | _\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) | ||
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 | _\x8r_\x8e_\x8a_\x8d_\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__\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(_\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) |
83 | _\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_\x8i_\x8l_\x8e_\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) | ||
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 | Filter | ||
86 | _\x8i_\x8p_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r | ||
87 | _\x8p_\x8o_\x8r_\x8t_\x8__\x8f_\x8i_\x8l_\x8t_\x8e_\x8r | ||
85 | Bdecoding | 88 | Bdecoding |
86 | _\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e | 89 | _\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e |
Max diff block lines reached; 6254/12024 bytes (52.01%) of diff not shown. |
Offset 28, 728 lines modified | Offset 28, 728 lines modified | ||
28 | <td>2.0.10</td></tr> | 28 | <td>2.0.10</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="#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> | ||
37 | <li><a·class="reference·internal"·href="#bdecode-node-operator"·id="toc-entry-3">bdecode_node()·operator=()</a></li> | ||
38 | <li><a·class="reference·internal"·href="#type"·id="toc-entry-4">type()</a></li> | ||
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> | ||
41 | <li><a·class="reference·internal"·href="#data-section-data-offset"·id="toc-entry-7">data_section()·data_offset()</a></li> | ||
42 | <li><a·class="reference·internal"·href="#list-at-list-int-value-at-list-string-value-at-list-size"·id="toc-entry-8">list_at()·list_int_value_at()·list_string_value_at()·list_size()</a></li> | ||
43 | <li><a·class="reference·internal"·href="#dict-find-dict-dict-find-dict-at-dict-find-list-dict-at-node-dict-find-int-dict-find-string-value-dict-find-string-dict-find-int-value-dict-size"·id="toc-entry-9">dict_find_dict()·dict_find()·dict_at()·dict_find_list()·dict_at_node()·dict_find_int()·dict_find_string_value()·dict_find_string()·dict_find_int_value()·dict_size()</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-ptr-string-offset-string-length-string-value"·id="toc-entry-11">string_ptr()·string_offset()·string_length()·string_value()</a></li> | ||
46 | <li><a·class="reference·internal"·href="#c | 35 | <li><a·class="reference·internal"·href="#counters"·id="toc-entry-1">counters</a><ul> |
36 | <li><a·class="reference·internal"·href="#operator-inc-stats-counter"·id="toc-entry-2">operator[]()·inc_stats_counter()</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> | ||
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> | ||
51 | <li><a·class="reference·internal"·href="#enum-type-t"·id="toc-entry-17">enum·type_t</a></li> | ||
52 | </ul> | 37 | </ul> |
53 | </li> | 38 | </li> |
54 | <li><a·class="reference·internal"·href="#print-entry"·id="toc-entry-18">print_entry()</a></li> | ||
55 | <li><a·class="reference·internal"·href="#bdecode"·id="toc-entry-19">bdecode()</a></li> | ||
56 | <li><a·class="reference·internal"·href="#stats-metric"·id="toc-entry- | 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> | ||
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> | ||
43 | <li><a·class="reference·internal"·href="#peer-request"·id="toc-entry-7">peer_request</a><ul> | ||
57 | <li><a·class="reference·internal"·href="# | 44 | <li><a·class="reference·internal"·href="#operator"·id="toc-entry-8">operator==()</a></li> |
58 | <li><a·class="reference·internal"·href="#operator-inc-stats-counter"·id="toc-entry-22">operator[]()·inc_stats_counter()</a></li> | ||
59 | </ul> | 45 | </ul> |
60 | </li> | 46 | </li> |
61 | <li><a·class="reference·internal"·href="#session-stats-metrics"·id="toc-entry-23">session_stats_metrics()</a></li> | ||
62 | <li><a·class="reference·internal"·href="#find-metric-idx"·id="toc-entry-24">find_metric_idx()</a></li> | ||
63 | <li><a·class="reference·internal"·href="# | 47 | <li><a·class="reference·internal"·href="#piece-block"·id="toc-entry-9">piece_block</a></li> |
64 | <li><a·class="reference·internal"·href="#add-torrent-params"·id="toc-entry-26">add_torrent_params</a></li> | ||
65 | <li><a·class="reference·internal"·href="# | 48 | <li><a·class="reference·internal"·href="#info-hash-t"·id="toc-entry-10">info_hash_t</a><ul> |
66 | <li><a·class="reference·internal"·href="# | 49 | <li><a·class="reference·internal"·href="#info-hash-t-1"·id="toc-entry-11">info_hash_t()</a></li> |
67 | <li><a·class="reference·internal"·href="# | 50 | <li><a·class="reference·internal"·href="#has-v1-has-has-v2"·id="toc-entry-12">has_v1()·has()·has_v2()</a></li> |
51 | <li><a·class="reference·internal"·href="#get"·id="toc-entry-13">get()</a></li> | ||
52 | <li><a·class="reference·internal"·href="#get-best"·id="toc-entry-14">get_best()</a></li> | ||
53 | <li><a·class="reference·internal"·href="#for-each"·id="toc-entry-15">for_each()</a></li> | ||
68 | </ul> | 54 | </ul> |
69 | </li> | 55 | </li> |
70 | <li><a·class="reference·internal"·href="#e | 56 | <li><a·class="reference·internal"·href="#peer-info"·id="toc-entry-16">peer_info</a><ul> |
71 | <li><a·class="reference·internal"·href="#type-1"·id="toc-entry-31">type()</a></li> | ||
72 | <li><a·class="reference·internal"·href="#entry-1"·id="toc-entry-32">entry()</a></li> | ||
73 | <li><a·class="reference·internal"·href="#entry-2"·id="toc-entry-33">entry()</a></li> | ||
74 | <li><a·class="reference·internal"·href="#entry-3"·id="toc-entry-34">entry()</a></li> | ||
75 | <li><a·class="reference·internal"·href="# | 57 | <li><a·class="reference·internal"·href="#i2p-destination"·id="toc-entry-17">i2p_destination()</a></li> |
76 | <li><a·class="reference·internal"·href="#integer-list-dict-preformatted-string"·id="toc-entry-36">integer()·list()·dict()·preformatted()·string()</a></li> | ||
77 | <li><a·class="reference·internal"·href="#swap-1"·id="toc-entry-37">swap()</a></li> | ||
78 | <li><a·class="reference·internal"·href="#operator-1"·id="toc-entry-38">operator[]()</a></li> | ||
79 | <li><a·class="reference·internal"·href="#find-key"·id="toc-entry-39">find_key()</a></li> | ||
80 | <li><a·class="reference·internal"·href="#to-string"·id="toc-entry-40">to_string()</a></li> | ||
81 | <li><a·class="reference·internal"·href="#enum-data-type"·id="toc-entry-41">enum·data_type</a></li> | ||
82 | </ul> | 58 | </ul> |
83 | </li> | 59 | </li> |
60 | <li><a·class="reference·internal"·href="#torrent-peer-equal"·id="toc-entry-18">torrent_peer_equal()</a></li> | ||
61 | <li><a·class="reference·internal"·href="#make-magnet-uri"·id="toc-entry-19">make_magnet_uri()</a></li> | ||
62 | <li><a·class="reference·internal"·href="#parse-magnet-uri"·id="toc-entry-20">parse_magnet_uri()</a></li> | ||
63 | <li><a·class="reference·internal"·href="#truncate-files"·id="toc-entry-21">truncate_files()</a></li> | ||
84 | <li><a·class="reference·internal"·href="# | 64 | <li><a·class="reference·internal"·href="#version"·id="toc-entry-22">version()</a></li> |
65 | <li><a·class="reference·internal"·href="#load-torrent-buffer-load-torrent-file-load-torrent-parsed"·id="toc-entry-23">load_torrent_buffer()·load_torrent_file()·load_torrent_parsed()</a></li> | ||
66 | <li><a·class="reference·internal"·href="#enum-event-t"·id="toc-entry-24">enum·event_t</a></li> | ||
67 | <li><a·class="reference·internal"·href="#enum-portmap-transport"·id="toc-entry-25">enum·portmap_transport</a></li> | ||
68 | <li><a·class="reference·internal"·href="#enum-portmap-protocol"·id="toc-entry-26">enum·portmap_protocol</a></li> | ||
69 | <li><a·class="reference·internal"·href="#enum-connection-type"·id="toc-entry-27">enum·connection_type</a></li> | ||
70 | <li><a·class="reference·internal"·href="#enum-protocol-version"·id="toc-entry-28">enum·protocol_version</a></li> | ||
71 | <li><a·class="reference·internal"·href="#enum-socket-type-t"·id="toc-entry-29">enum·socket_type_t</a></li> | ||
72 | <li><a·class="reference·internal"·href="#torrent-flags-t"·id="toc-entry-30">torrent_flags_t</a></li> | ||
73 | <li><a·class="reference·internal"·href="#download-priority-t"·id="toc-entry-31">download_priority_t</a></li> | ||
74 | <li><a·class="reference·internal"·href="#pex-flags-t"·id="toc-entry-32">pex_flags_t</a></li> | ||
75 | <li><a·class="reference·internal"·href="#int"·id="toc-entry-33">int</a></li> | ||
76 | <li><a·class="reference·internal"·href="#char-const"·id="toc-entry-34">char·const*</a></li> | ||
77 | <li><a·class="reference·internal"·href="#std-uint64-t"·id="toc-entry-35">std::uint64_t</a></li> | ||
78 | <li><a·class="reference·internal"·href="#file-slice"·id="toc-entry-36">file_slice</a></li> | ||
79 | <li><a·class="reference·internal"·href="#file-storage"·id="toc-entry-37">file_storage</a><ul> | ||
80 | <li><a·class="reference·internal"·href="#is-valid"·id="toc-entry-38">is_valid()</a></li> | ||
81 | <li><a·class="reference·internal"·href="#reserve"·id="toc-entry-39">reserve()</a></li> | ||
82 | <li><a·class="reference·internal"·href="#add-file-borrow-add-file"·id="toc-entry-40">add_file_borrow()·add_file()</a></li> | ||
83 | <li><a·class="reference·internal"·href="#rename-file"·id="toc-entry-41">rename_file()</a></li> | ||
84 | <li><a·class="reference·internal"·href="#map-block"·id="toc-entry-42">map_block()</a></li> | ||
85 | <li><a·class="reference·internal"·href="#map-file"·id="toc-entry-43">map_file()</a></li> | ||
86 | <li><a·class="reference·internal"·href="#num-files"·id="toc-entry-44">num_files()</a></li> | ||
85 | <li><a·class="reference·internal"·href="# | 87 | <li><a·class="reference·internal"·href="#end-file"·id="toc-entry-45">end_file()</a></li> |
86 | <li><a·class="reference·internal"·href="#a-word-of-caution"·id="toc-entry-44">a·word·of·caution</a></li> | ||
87 | <li><a·class="reference·internal"·href="# | 88 | <li><a·class="reference·internal"·href="#file-range"·id="toc-entry-46">file_range()</a></li> |
88 | <li><a·class="reference·internal"·href="# | 89 | <li><a·class="reference·internal"·href="#total-size"·id="toc-entry-47">total_size()</a></li> |
90 | <li><a·class="reference·internal"·href="#num-pieces-set-num-pieces"·id="toc-entry-48">num_pieces()·set_num_pieces()</a></li> | ||
89 | <li><a·class="reference·internal"·href="# | 91 | <li><a·class="reference·internal"·href="#end-piece"·id="toc-entry-49">end_piece()</a></li> |
92 | <li><a·class="reference·internal"·href="#last-piece"·id="toc-entry-50">last_piece()</a></li> | ||
90 | <li><a·class="reference·internal"·href="# | 93 | <li><a·class="reference·internal"·href="#piece-range"·id="toc-entry-51">piece_range()</a></li> |
94 | <li><a·class="reference·internal"·href="#piece-length-set-piece-length"·id="toc-entry-52">piece_length()·set_piece_length()</a></li> | ||
95 | <li><a·class="reference·internal"·href="#piece-size"·id="toc-entry-53">piece_size()</a></li> | ||
91 | <li><a·class="reference·internal"·href="# | 96 | <li><a·class="reference·internal"·href="#piece-size2"·id="toc-entry-54">piece_size2()</a></li> |
97 | <li><a·class="reference·internal"·href="#blocks-in-piece2"·id="toc-entry-55">blocks_in_piece2()</a></li> | ||
98 | <li><a·class="reference·internal"·href="#blocks-per-piece"·id="toc-entry-56">blocks_per_piece()</a></li> | ||
99 | <li><a·class="reference·internal"·href="#name-set-name"·id="toc-entry-57">name()·set_name()</a></li> | ||
92 | <li><a·class="reference·internal"·href="# | 100 | <li><a·class="reference·internal"·href="#swap"·id="toc-entry-58">swap()</a></li> |
101 | <li><a·class="reference·internal"·href="#canonicalize"·id="toc-entry-59">canonicalize()</a></li> | ||
102 | <li><a·class="reference·internal"·href="#root-symlink-hash-file-size-root-ptr-mtime-pad-file-at-file-offset-file-name-file-path"·id="toc-entry-60">root()·symlink()·hash()·file_size()·root_ptr()·mtime()·pad_file_at()·file_offset()·file_name()·file_path()</a></li> | ||
103 | <li><a·class="reference·internal"·href="#file-num-pieces-file-piece-range-file-num-blocks"·id="toc-entry-61">file_num_pieces()·file_piece_range()·file_num_blocks()</a></li> | ||
104 | <li><a·class="reference·internal"·href="#file-first-piece-node-file-first-block-node"·id="toc-entry-62">file_first_piece_node()·file_first_block_node()</a></li> | ||
105 | <li><a·class="reference·internal"·href="#file-path-hash"·id="toc-entry-63">file_path_hash()</a></li> | ||
106 | <li><a·class="reference·internal"·href="#all-path-hashes"·id="toc-entry-64">all_path_hashes()</a></li> | ||
107 | <li><a·class="reference·internal"·href="#file-flags"·id="toc-entry-65">file_flags()</a></li> | ||
108 | <li><a·class="reference·internal"·href="#file-absolute-path"·id="toc-entry-66">file_absolute_path()</a></li> | ||
109 | <li><a·class="reference·internal"·href="#file-index-at-offset-file-index-at-piece"·id="toc-entry-67">file_index_at_offset()·file_index_at_piece()</a></li> | ||
110 | <li><a·class="reference·internal"·href="#file-index-for-root"·id="toc-entry-68">file_index_for_root()</a></li> | ||
111 | <li><a·class="reference·internal"·href="#piece-index-at-file"·id="toc-entry-69">piece_index_at_file()</a></li> | ||
112 | <li><a·class="reference·internal"·href="#sanitize-symlinks"·id="toc-entry-70">sanitize_symlinks()</a></li> | ||
93 | <li><a·class="reference·internal"·href="# | 113 | <li><a·class="reference·internal"·href="#v2"·id="toc-entry-71">v2()</a></li> |
94 | <li><a·class="reference·internal"·href="#on-dht-request"·id="toc-entry-52">on_dht_request()</a></li> | ||
95 | <li><a·class="reference·internal"·href="#on-alert"·id="toc-entry-53">on_alert()</a></li> | ||
96 | <li><a·class="reference·internal"·href="#on-unknown-torrent"·id="toc-entry-54">on_unknown_torrent()</a></li> | ||
97 | <li><a·class="reference·internal"·href="#on-tick"·id="toc-entry-55">on_tick()</a></li> | ||
98 | <li><a·class="reference·internal"·href="#get-unchoke-priority"·id="toc-entry-56">get_unchoke_priority()</a></li> | ||
99 | <li><a·class="reference·internal"·href="#load-state"·id="toc-entry-57">load_state()</a></li> | ||
100 | </ul> | 114 | </ul> |
101 | </li> | 115 | </li> |
Max diff block lines reached; 1705499/1721764 bytes (99.06%) of diff not shown. |
Offset 1, 421 lines modified | Offset 1, 211 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.10 | 3 | V\x8Ve\x8er\x8rs\x8si\x8io\x8on\x8n:\x8:·2.0.10 |
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 | ||
7 | ··········o·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8) | ||
8 | ··········o·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8__\x8n_\x8o_\x8d_\x8e_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | ||
9 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) | ||
10 | ··········o·_\x8b_\x8o_\x8o_\x8l_\x8(_\x8) | ||
11 | ··········o·_\x8n_\x8o_\x8n_\x8__\x8o_\x8w_\x8n_\x8i_\x8n_\x8g_\x8(_\x8) | ||
12 | ··········o·_\x8d_\x8a_\x8t_\x8a_\x8__\x8s_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8)_\x8·_\x8d_\x8a_\x8t_\x8a_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\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__\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(_\x8)_\x8·_\x8d_\x8i_\x8c_\x8t_\x8__\x8f_\x8i_\x8n_\x8d_\x8__\x8l_\x8i_\x8s_\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__\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) | ||
16 | ············_\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__\x8i_\x8n_\x8t_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\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) | ||
18 | ··········o·_\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8p_\x8t_\x8r_\x8(_\x8)_\x8·_\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8o_\x8f_\x8f_\x8s_\x8e_\x8t_\x8(_\x8)_\x8·_\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8l_\x8e_\x8n_\x8g_\x8t_\x8h_\x8(_\x8)_\x8·_\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8__\x8v_\x8a_\x8l_\x8u_\x8e_\x8(_\x8) | ||
19 | ··········o·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8(_\x8) | ||
20 | ··········o·_\x8s_\x8w_\x8a_\x8p_\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) | ||
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 | ||
25 | ····*·_\x8p_\x8r_\x8i_\x8n_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | ||
26 | ····*·_\x8b_\x8d_\x8e_\x8c_\x8o_\x8d_\x8e_\x8(_\x8) | ||
27 | ····*·_\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c | ||
28 | ····*·_\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s | 6 | ····*·_\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8s |
29 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8[_\x8]_\x8(_\x8)_\x8·_\x8i_\x8n_\x8c_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8(_\x8) | 7 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8[_\x8]_\x8(_\x8)_\x8·_\x8i_\x8n_\x8c_\x8__\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8c_\x8o_\x8u_\x8n_\x8t_\x8e_\x8r_\x8(_\x8) |
8 | ····*·_\x8s_\x8t_\x8a_\x8t_\x8s_\x8__\x8m_\x8e_\x8t_\x8r_\x8i_\x8c | ||
30 | ····*·_\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) |
31 | ····*·_\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) |
32 | ····*·_\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 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t | ||
33 | ····*·_\x8a_\x8d_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8a_\x8m_\x8s | ||
34 | ····*·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t | ||
35 | ··········o·_\x8c_\x8l_\x8i_\x8e_\x8n_\x8t_\x8__\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8(_\x8) | ||
36 | ··········o·_\x8v_\x8o_\x8i_\x8d_\x8*_\x8(_\x8)_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8*_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | ||
37 | ····*·_\x8e_\x8n_\x8t_\x8r_\x8y | ||
38 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) | ||
39 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | ||
40 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | ||
41 | ··········o·_\x8e_\x8n_\x8t_\x8r_\x8y_\x8(_\x8) | ||
42 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | 13 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8=_.(_\x8) |
43 | ···· | 14 | ····*·_.p_.i_.e_.c_.e_.__.b_.l_.o_.c_.k |
15 | ····*·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t | ||
16 | ··········o·_\x8i_\x8n_\x8f_\x8o_\x8__\x8h_\x8a_\x8s_\x8h_\x8__\x8t_\x8(_\x8) | ||
17 | ··········o·_\x8h_\x8a_\x8s_\x8__\x8v_\x81_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8(_\x8)_\x8·_\x8h_\x8a_\x8s_\x8__\x8v_\x82_\x8(_\x8) | ||
44 | ··········o·_\x8 | 18 | ··········o·_\x8g_.e_.t_\x8(_\x8) |
45 | ··········o·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8[_\x8]_\x8(_\x8) | ||
46 | ··········o·_\x8f_\x8i_\x8n_\x8d_\x8__\x8k_\x8e_\x8y_\x8(_\x8) | ||
47 | ··········o·_\x8t_\x8o_\x8__\x8s_\x8t_\x8r_\x8i_\x8n_\x8g_\x8(_\x8) | ||
48 | ··········o·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8d_\x8a_\x8t_\x8a_\x8__\x8t_\x8y_\x8p_\x8e | ||
49 | ····*·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8<_\x8<_\x8(_\x8) | ||
50 | ····*·_\x8b_\x8e_\x8n_\x8c_\x8o_\x8d_\x8e_\x8(_\x8) | ||
51 | ····*·_\x8a_\x8·_\x8w_\x8o_\x8r_\x8d_\x8·_\x8o_\x8f_\x8·_\x8c_\x8a_\x8u_\x8t_\x8i_\x8o_\x8n | ||
52 | ····*·_\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8-_\x8i_\x8n_\x8t_\x8e_\x8r_\x8f_\x8a_\x8c_\x8e | ||
53 | ····*·_\x8c_\x8u_\x8s_\x8t_\x8o_\x8m_\x8·_\x8a_\x8l_\x8e_\x8r_\x8t_\x8s | ||
54 | ····*·_\x8p_\x8l_\x8u_\x8g_\x8i_\x8n | ||
55 | ··········o·_\x8i_\x8m_\x8p_\x8l_\x8e_\x8m_\x8e_\x8n_\x8t_\x8e_\x8d_\x8__\x8f_\x8e_\x8a_\x8t_\x8u_\x8r_\x8e_\x8s_\x8(_\x8) | ||
56 | ··········o·_\x8n_\x8e_\x8w_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) | ||
57 | ··········o·_\x8a_\x8d_\x8d_\x8e_\x8d_\x8(_\x8) | ||
58 | ··········o·_\x8a_\x8b_\x8o_\x8r_\x8t_\x8(_\x8) | ||
59 | ··········o·_\x8o_\x8n_\x8__\x8d_\x8h_\x8t_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8(_\x8) | ||
60 | ··········o·_\x8 | 19 | ··········o·_\x8g_.e_.t_.__.b_.e_.s_\x8t_\x8(_\x8) |
61 | ··········o·_\x8o_\x8n_\x8__\x8u_\x8n_\x8k_\x8n_\x8o_\x8w_\x8n_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8(_\x8) | ||
62 | ··········o·_\x8o_. | 20 | ··········o·_\x8f_.o_.r_.__.e_.a_.c_.h_\x8(_\x8) |
63 | ···· | 21 | ····*·_.p_.e_.e_.r_.__.i_.n_.f_.o |
64 | ··········o·_\x8 | 22 | ··········o·_\x8i_.2_.p_.__.d_.e_.s_.t_.i_.n_.a_.t_.i_.o_.n_\x8(_\x8) |
23 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8e_\x8e_\x8r_\x8__\x8e_\x8q_\x8u_\x8a_\x8l_\x8(_\x8) | ||
24 | ····*·_\x8m_\x8a_\x8k_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | ||
25 | ····*·_\x8p_\x8a_\x8r_\x8s_\x8e_\x8__\x8m_\x8a_\x8g_\x8n_\x8e_\x8t_\x8__\x8u_\x8r_\x8i_\x8(_\x8) | ||
26 | ····*·_\x8t_\x8r_\x8u_\x8n_\x8c_\x8a_\x8t_\x8e_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8(_\x8) | ||
27 | ····*·_\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
28 | ····*·_\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__\x8f_\x8i_\x8l_\x8e_\x8(_\x8)_\x8·_\x8l_\x8o_\x8a_\x8d_\x8__\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8r_\x8s_\x8e_\x8d_\x8(_\x8) | ||
29 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8e_\x8v_\x8e_\x8n_\x8t_\x8__\x8t | ||
30 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8t_\x8r_\x8a_\x8n_\x8s_\x8p_\x8o_\x8r_\x8t | ||
31 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8o_\x8r_\x8t_\x8m_\x8a_\x8p_\x8__\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l | ||
32 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8t_\x8y_\x8p_\x8e | ||
33 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8p_\x8r_\x8o_\x8t_\x8o_\x8c_\x8o_\x8l_\x8__\x8v_\x8e_\x8r_\x8s_\x8i_\x8o_\x8n | ||
34 | ····*·_\x8e_\x8n_\x8u_\x8m_\x8·_\x8s_\x8o_\x8c_\x8k_\x8e_\x8t_\x8__\x8t_\x8y_\x8p_\x8e_\x8__\x8t | ||
65 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8 | 35 | ····*·_\x8t_\x8o_\x8r_\x8r_\x8e_\x8n_\x8t_\x8__\x8f_.l_.a_.g_.s_.__.t |
36 | ····*·_\x8d_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8__\x8p_\x8r_\x8i_\x8o_\x8r_\x8i_\x8t_\x8y_\x8__\x8t | ||
66 | ··········o·_\x8n_\x8e_\x8w_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8(_\x8) | ||
67 | ··········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) | ||
68 | ··········o·_\x8t_\x8i_\x8c_\x8k_\x8(_\x8) | ||
69 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8a_\x8u_\x8s_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8r_\x8e_\x8s_\x8u_\x8m_\x8e_\x8(_\x8) | ||
70 | ··········o·_\x8o_\x8n_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8__\x8c_\x8h_\x8e_\x8c_\x8k_\x8e_\x8d_\x8(_\x8) | ||
71 | ··········o·_\x8o_\x8n_\x8__\x8s_\x8t_\x8a_\x8t_\x8e_\x8(_\x8) | ||
72 | ··········o·_\x8o_\x8n_\x8__\x8a_\x8d_\x8d_\x8__\x8p_\x8e_\x8e_\x8r_\x8(_\x8) | ||
73 | ····*·_\x8p_\x8e_\x8 | 37 | ····*·_\x8p_\x8e_\x8x_.__.f_.l_.a_.g_.s_.__.t |
38 | ····*·_\x8i_\x8n_\x8t | ||
39 | ····*·_\x8c_\x8h_\x8a_\x8r_\x8·_\x8c_\x8o_\x8n_\x8s_\x8t_\x8* | ||
40 | ····*·_\x8s_\x8t_\x8d_\x8:_\x8:_\x8u_\x8i_\x8n_\x8t_\x86_\x84_\x8__\x8t | ||
74 | ··········o·_\x8t_\x8y_\x8p_\x8e_\x8(_\x8) | ||
75 | ··········o·_\x8a_\x8d_\x8d_\x8__\x8h_\x8a_\x8n_\x8d_\x8s_\x8h_\x8a_\x8k_\x8e_\x8(_\x8) | ||
76 | ··········o·_\x8o_\x8n_\x8__\x8d_\x8i_\x8s_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8(_\x8) | ||
77 | ··········o·_\x8o_\x8n_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8e_\x8d_\x8(_\x8) | ||
78 | ··········o·_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8s_\x8h_\x8a_\x8k_\x8e_\x8(_\x8) | ||
79 | ··········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) | ||
80 | ··········o·_\x8o_\x8n_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\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)_\x8·_\x8o_\x8n_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8) | ||
81 | ············_\x8o_\x8n_\x8__\x8u_\x8n_\x8c_\x8h_\x8o_\x8k_\x8e_\x8(_\x8)_\x8·_\x8o_\x8n_\x8__\x8d_\x8o_\x8n_\x8t_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8)_\x8·_\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) | ||
82 | ············_\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) | ||
83 | ··········o·_\x8o_\x8n_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8) | ||
84 | ··········o·_\x8s_\x8e_\x8n_\x8t_\x8__\x8p_\x8i_\x8e_\x8c_\x8e_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8n_\x8o_\x8t_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8i_\x8n_\x8t_\x8e_\x8r_\x8e_\x8s_\x8t_\x8e_\x8d_\x8(_\x8)_\x8·_\x8s_\x8e_\x8n_\x8t_\x8__\x8h_\x8a_\x8v_\x8e_\x8(_\x8) | ||
85 | ············_\x8s_\x8e_\x8n_\x8t_\x8__\x8u_\x8n_\x8c_\x8h_\x8o_\x8k_\x8e_\x8(_\x8) | ||
86 | ··········o·_\x8s_\x8e_\x8n_\x8t_\x8__\x8p_\x8a_\x8y_\x8l_\x8o_\x8a_\x8d_\x8(_\x8) | ||
87 | ··········o·_\x8c_\x8a_\x8n_\x8__\x8d_\x8i_\x8s_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8(_\x8) | ||
88 | ··········o·_\x8o_\x8n_\x8__\x8e_\x8x_\x8t_\x8e_\x8n_\x8d_\x8e_\x8d_\x8(_\x8) | ||
89 | ··········o·_\x8o_\x8n_\x8__\x8u_\x8n_\x8k_\x8n_\x8o_\x8w_\x8n_\x8__\x8m_\x8e_\x8s_\x8s_\x8a_\x8g_\x8e_\x8(_\x8) | ||
90 | ··········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) | ||
91 | ··········o·_\x8t_\x8i_\x8c_\x8k_\x8(_\x8) | ||
92 | ··········o·_\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8(_\x8) | ||
93 | ····*·_\x8c_\x8r_\x8y_\x8p_\x8t_\x8o_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n | ||
94 | ··········o·_\x8d_\x8e_\x8c_\x8r_\x8y_\x8p_\x8t_\x8(_\x8) | ||
95 | ····*·_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e | ||
96 | ····*·_\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 | ||
97 | ····*·_\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) | ||
98 | ····*·_\x8c_\x8r_\x8e_\x8a_\x8t_\x8e_\x8__\x8u_\x8t_\x8__\x8p_\x8e_\x8x_\x8__\x8p_\x8l_\x8u_\x8g_\x8i_\x8n_\x8(_\x8) | ||
99 | ····*·_\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) | ||
100 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y | ||
101 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y_\x8(_\x8)_\x8·_\x8~_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8__\x8p_\x8r_\x8o_\x8x_\x8y_\x8(_\x8)_\x8·_\x8o_\x8p_\x8e_\x8r_\x8a_\x8t_\x8o_\x8r_\x8=_\x8(_\x8) | ||
102 | ····*·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n | ||
103 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
104 | ··········o·_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
105 | ··········o·_\x8~_\x8s_\x8e_\x8s_\x8s_\x8i_\x8o_\x8n_\x8(_\x8) | ||
106 | ··········o·_\x8a_\x8b_\x8o_\x8r_\x8t_\x8(_\x8) | ||
Max diff block lines reached; 1043015/1055406 bytes (98.83%) of diff not shown. |
Offset 459, 258 lines modified | Offset 459, 15 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_handle.cpp:672</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:672</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 | ||
473 | » } | ||
474 | » void·session_handle::dht_get_item(std::array<char,·32>·key | ||
475 | » » ,·std::string·salt) | ||
476 | » { | ||
477 | #ifndef·TORRENT_DISABLE_DHT | ||
478 | » » async_call(&session_impl::dht_get_mutable_item,·key,·salt); | ||
479 | #else | ||
480 | » » TORRENT_UNUSED(key); | ||
481 | » » TORRENT_UNUSED(salt); | ||
482 | #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 | » » sha1_hash·const·ret·=·hasher(buf).final(); | ||
489 | #ifndef·TORRENT_DISABLE_DHT | ||
490 | » » async_call(&session_impl::dht_put_immutable_item,·data,·ret); | ||
491 | #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 | » { | ||
499 | #ifndef·TORRENT_DISABLE_DHT | ||
500 | » » async_call(&session_impl::dht_put_mutable_item,·key,·cb,·salt); | ||
501 | #else | ||
502 | » » TORRENT_UNUSED(key); | ||
503 | » » TORRENT_UNUSED(cb); | ||
504 | » » TORRENT_UNUSED(salt); | ||
505 | #endif | ||
506 | » } | ||
507 | » void·session_handle::dht_get_peers(sha1_hash·const&·info_hash) | ||
508 | » { | ||
509 | #ifndef·TORRENT_DISABLE_DHT | ||
510 | » » async_call(&session_impl::dht_get_peers,·info_hash); | ||
511 | #else | ||
512 | </pre></td></tr><tr·style="background:·#fcc"><td>relevance 3</td><td><a·href="javascript:expand(10)">../src/peer_connection.cpp:3119</a></td><td>instead·of·having·to·ask·the·torrent·whether·it's·in·graceful·pause·mode·or·not,·the·peers·should·keep·that·state·(and·the·torrent·should·update·them·when·it·enters·graceful·pause).·When·a·peer·enters·graceful·pause·mode,·it·should·cancel·all·outstanding·requests·and·clear·its·request·queue.</td></tr><tr·id="10"·style="display:·none;"·colspan="3"><td·colspan="3"><h2>instead·of·having·to·ask·the·torrent·whether·it's·in·graceful | ||
513 | pause·mode·or·not,·the·peers·should·keep·that·state·(and·the·torrent | ||
514 | should·update·them·when·it·enters·graceful·pause).·When·a·peer·enters | ||
515 | graceful·pause·mode,·it·should·cancel·all·outstanding·requests·and | ||
516 | clear·its·request·queue.</h2><h4>../src/peer_connection.cpp:3119</h4><pre·style="background:·#f6f6f6;·border:·solid·1px·#ddd;">» » //·to·disk·or·are·in·the·disk·write·cache | ||
517 | » » if·(picker.is_piece_finished(p.piece)·&&·!was_finished) | ||
518 | » » { | ||
519 | #if·TORRENT_USE_INVARIANT_CHECKS | ||
520 | » » » check_postcondition·post_checker2_(t,·false); | ||
521 | #endif | ||
522 | » » » t->verify_piece(p.piece); | ||
523 | » » } | ||
524 | » » check_graceful_pause(); | ||
525 | » » if·(is_disconnecting())·return; | ||
526 | » » if·(request_a_block(*t,·*this)) | ||
527 | » » » m_counters.inc_stats_counter(counters::incoming_piece_picks); | ||
528 | » » send_block_requests(); | ||
529 | » } | ||
530 | » void·peer_connection::check_graceful_pause() | ||
531 | » { | ||
532 | <div·style="background:·#ffff00"·width="100%">» » std::shared_ptr<torrent>·t·=·m_torrent.lock(); | ||
533 | </div>» » if·(!t·||·!t->graceful_pause())·return; | ||
534 | » » if·(m_outstanding_bytes·>·0)·return; | ||
535 | #ifndef·TORRENT_DISABLE_LOGGING | ||
536 | » » peer_log(peer_log_alert::info,·"GRACEFUL_PAUSE",·"NO·MORE·DOWNLOAD"); | ||
537 | #endif | ||
538 | » » disconnect(errors::torrent_paused,·operation_t::bittorrent); | ||
539 | » } | ||
540 | » void·peer_connection::on_disk_write_complete(storage_error·const&·error | ||
541 | » » ,·peer_request·const&·p,·std::shared_ptr<torrent>·t) | ||
542 | » { | ||
543 | » » TORRENT_ASSERT(is_single_thread()); | ||
544 | #ifndef·TORRENT_DISABLE_LOGGING | ||
545 | » » if·(should_log(peer_log_alert::info)) | ||
546 | » » { | ||
547 | » » » peer_log(peer_log_alert::info,·"FILE_ASYNC_WRITE_COMPLETE",·"piece:·%d·s:·%x·l:·%x·e:·%s" | ||
548 | » » » » ,·static_cast<int>(p.piece),·p.start,·p.length,·error.ec.message().c_str()); | ||
549 | » » } | ||
550 | #endif | ||
551 | » » m_counters.inc_stats_counter(counters::queued_write_bytes,·-p.length); | ||
552 | » » m_outstanding_writing_bytes·-=·p.length; | ||
553 | » » TORRENT_ASSERT(m_outstanding_writing_bytes·>=·0); | ||
554 | » » //·every·peer·is·entitled·to·allocate·a·disk·buffer·if·it·has·no·writes·outstanding | ||
555 | » » //·see·the·comment·in·incoming_piece | ||
556 | » » if·(m_outstanding_writing_bytes·==·0 | ||
557 | </pre></td></tr><tr·style="background:·#fcc"><td>relevance 3</td><td><a·href="javascript:expand(11)">../src/peer_connection.cpp:4027</a></td><td>once·peers·are·properly·put·in·graceful·pause·mode,·they·can·cancel·all·outstanding·requests·and·this·test·can·be·removed.</td></tr><tr·id="11"·style="display:·none;"·colspan="3"><td·colspan="3"><h2>once·peers·are·properly·put·in·graceful·pause·mode,·they·can | ||
558 | cancel·all·outstanding·requests·and·this·test·can·be·removed.</h2><h4>../src/peer_connection.cpp:4027</h4><pre·style="background:·#f6f6f6;·border:·solid·1px·#ddd;"> | ||
559 | » » » if·(!p->m_deferred_send_block_requests) | ||
560 | » » » » return; | ||
561 | » » » p->m_deferred_send_block_requests·=·false; | ||
562 | » » » p->send_block_requests_impl(); | ||
563 | » » }); | ||
564 | » » m_deferred_send_block_requests·=·true; | ||
565 | » } | ||
566 | » void·peer_connection::send_block_requests_impl() | ||
567 | » { | ||
Max diff block lines reached; 654586/665926 bytes (98.30%) of diff not shown. |
Offset 454, 267 lines modified | Offset 454, 14 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__\x8h_\x8a_\x8n_\x8d_\x8l_\x8e_\x8._\x8c_\x8p_\x8p_\x8:_\x86_\x87_\x82_\x8·_\x8|_\x8e_\x8x_\x8p_\x8o_\x8s_\x8e_\x8·_\x8t_\x8h_\x8e_\x8·_\x8s_\x8e_\x8q_\x8u_\x8e_\x8n_\x8c_\x8e_\x8__\x8n_\x8u_\x8m_\x8b_\x8e_\x8r_\x8,_\x8·_\x8p_\x8u_\x8b_\x8l_\x8i_\x8c_\x8__\x8k_\x8e_\x8y_\x8,_\x8·_\x8s_\x8e_\x8c_\x8r_\x8e_\x8t_\x8__\x8k_\x8e_\x8y_\x8·_\x8a_\x8n_\x8d_\x8·_\x8s_\x8i_\x8g_\x8n_\x8a_\x8t_\x8u_\x8r_\x8e_\x8·_\x8t_\x8y_\x8p_\x8e_\x8s_\x8·_\x8t_\x8o_\x8·_\x8t_\x8h_\x8e_\x8·_\x8c_\x8l_\x8i_\x8e_\x8n_\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·| | ||
462 | |*\x8**\x8**\x8**\x8**\x8*·e\x8ex\x8xp\x8po\x8os\x8se\x8e·t\x8th\x8he\x8e·s\x8se\x8eq\x8qu\x8ue\x8en\x8nc\x8ce\x8e_\x8_n\x8nu\x8um\x8mb\x8be\x8er\x8r,\x8,·p\x8pu\x8ub\x8bl\x8li\x8ic\x8c_\x8_k\x8ke\x8ey\x8y,\x8,·s\x8se\x8ec\x8cr\x8re\x8et\x8t_\x8_k\x8ke\x8ey\x8y·a\x8an\x8nd\x8d·s\x8si\x8ig\x8gn\x8na\x8at\x8tu\x8ur\x8re\x8e·t\x8ty\x8yp\x8pe\x8es\x8s·t\x8to\x8o·t\x8th\x8he\x8e·c\x8cl\x8li\x8ie\x8en\x8nt\x8t·*\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_h\x8ha\x8an\x8nd\x8dl\x8le\x8e.\x8.c\x8cp\x8pp\x8p:\x8:6\x867\x872\x82·*\x8**\x8**\x8*··········································································································································| | ||
464 | |void·session_handle::dht_get_item(sha1_hash·const&·target)·····················································································································| | ||
465 | |» {·············································································································································································| | ||
466 | |#ifndef·TORRENT_DISABLE_DHT····················································································································································| | ||
467 | |» » async_call(&session_impl::dht_get_immutable_item,·target);···················································································································| | ||
468 | |#else··········································································································································································| | ||
469 | |» » TORRENT_UNUSED(target);······················································································································································| | ||
470 | |#endif·········································································································································································| | ||
471 | |» }·············································································································································································| | ||
472 | |···············································································································································································| | ||
473 | |» void·session_handle::dht_get_item(std::array<char,·32>·key····················································································································| | ||
474 | |» » ,·std::string·salt)··························································································································································| | ||
475 | |» {·············································································································································································| | ||
476 | |#ifndef·TORRENT_DISABLE_DHT····················································································································································| | ||
477 | |» » async_call(&session_impl::dht_get_mutable_item,·key,·salt);··················································································································| | ||
478 | |#else··········································································································································································| | ||
479 | |» » TORRENT_UNUSED(key);·························································································································································| | ||
480 | |» » TORRENT_UNUSED(salt);························································································································································| | ||
481 | |#endif·········································································································································································| | ||
482 | |» }·············································································································································································| | ||
483 | |···············································································································································································| | ||
484 | |sha1_hash·session_handle::dht_put_item(entry·data)·····························································································································| | ||
485 | |{··············································································································································································| | ||
486 | |» » std::vector<char>·buf;·······················································································································································| | ||
487 | |» » bencode(std::back_inserter(buf),·data);······································································································································| | ||
488 | |» » sha1_hash·const·ret·=·hasher(buf).final();···································································································································| | ||
489 | |···············································································································································································| | ||
490 | |#ifndef·TORRENT_DISABLE_DHT····················································································································································| | ||
491 | |» » async_call(&session_impl::dht_put_immutable_item,·data,·ret);················································································································| | ||
492 | |#endif·········································································································································································| | ||
493 | |» » return·ret;··································································································································································| | ||
494 | |» }·············································································································································································| | ||
495 | |···············································································································································································| | ||
496 | |» void·session_handle::dht_put_item(std::array<char,·32>·key····················································································································| | ||
497 | |» » ,·std::function<void(entry&,·std::array<char,64>&····························································································································| | ||
498 | |» » » ,·std::int64_t&,·std::string·const&)>·cb····································································································································| | ||
499 | |» » ,·std::string·salt)··························································································································································| | ||
500 | |» {·············································································································································································| | ||
501 | |#ifndef·TORRENT_DISABLE_DHT····················································································································································| | ||
502 | |» » async_call(&session_impl::dht_put_mutable_item,·key,·cb,·salt);··············································································································| | ||
503 | |#else··········································································································································································| | ||
504 | |» » TORRENT_UNUSED(key);·························································································································································| | ||
505 | |» » TORRENT_UNUSED(cb);··························································································································································| | ||
506 | |» » TORRENT_UNUSED(salt);························································································································································| | ||
507 | |#endif·········································································································································································| | ||
508 | |» }·············································································································································································| | ||
509 | |···············································································································································································| | ||
510 | |» void·session_handle::dht_get_peers(sha1_hash·const&·info_hash)················································································································| | ||
511 | |» {·············································································································································································| | ||
512 | |#ifndef·TORRENT_DISABLE_DHT····················································································································································| | ||
513 | |» » async_call(&session_impl::dht_get_peers,·info_hash);·························································································································| | ||
514 | |_\x8#_\x8e_\x8l_\x8s_\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·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\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 | |···········|_\x8._\x8._\x8/_\x8s_\x8r_\x8c_\x8/_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8._\x8c_\x8p_\x8p_\x8:···|instead·of·having·to·ask·the·torrent·whether·it's·in·graceful·pause·mode·or·not,·the·peers·should·keep·that·state·(and·the·torrent··| | ||
516 | |relevance 3|_\x83_\x81_\x81_\x89··························|should·update·them·when·it·enters·graceful·pause).·When·a·peer·enters·graceful·pause·mode,·it·should·cancel·all·outstanding·requests| | ||
517 | |_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8a_\x8n_\x8d_\x8·_\x8c_\x8l_\x8e_\x8a_\x8r_\x8·_\x8i_\x8t_\x8s_\x8·_\x8r_\x8e_\x8q_\x8u_\x8e_\x8s_\x8t_\x8·_\x8q_\x8u_\x8e_\x8u_\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·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
518 | |*\x8**\x8**\x8**\x8**\x8*·i\x8in\x8ns\x8st\x8te\x8ea\x8ad\x8d·o\x8of\x8f·h\x8ha\x8av\x8vi\x8in\x8ng\x8g·t\x8to\x8o·a\x8as\x8sk\x8k·t\x8th\x8he\x8e·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·w\x8wh\x8he\x8et\x8th\x8he\x8er\x8r·i\x8it\x8t'\x8's\x8s·i\x8in\x8n·g\x8gr\x8ra\x8ac\x8ce\x8ef\x8fu\x8ul\x8l·p\x8pa\x8au\x8us\x8se\x8e·m\x8mo\x8od\x8de\x8e·o\x8or\x8r·n\x8no\x8ot\x8t,\x8,·t\x8th\x8he\x8e·p\x8pe\x8ee\x8er\x8rs\x8s·s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d·k\x8ke\x8ee\x8ep\x8p·t\x8th\x8ha\x8at\x8t·s\x8st\x8ta\x8at\x8te\x8e·(\x8(a\x8an\x8nd\x8d·t\x8th\x8he\x8e·t\x8to\x8or\x8rr\x8re\x8en\x8nt\x8t·s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d·u\x8up\x8pd\x8da\x8at\x8te\x8e·t\x8th\x8he\x8em\x8m·w\x8wh\x8he\x8en\x8n·i\x8it\x8t·e\x8en\x8nt\x8te\x8er\x8rs\x8s·····| | ||
519 | |g\x8gr\x8ra\x8ac\x8ce\x8ef\x8fu\x8ul\x8l·p\x8pa\x8au\x8us\x8se\x8e)\x8).\x8.·W\x8Wh\x8he\x8en\x8n·a\x8a·p\x8pe\x8ee\x8er\x8r·e\x8en\x8nt\x8te\x8er\x8rs\x8s·g\x8gr\x8ra\x8ac\x8ce\x8ef\x8fu\x8ul\x8l·p\x8pa\x8au\x8us\x8se\x8e·m\x8mo\x8od\x8de\x8e,\x8,·i\x8it\x8t·s\x8sh\x8ho\x8ou\x8ul\x8ld\x8d·c\x8ca\x8an\x8nc\x8ce\x8el\x8l·a\x8al\x8ll\x8l·o\x8ou\x8ut\x8ts\x8st\x8ta\x8an\x8nd\x8di\x8in\x8ng\x8g·r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8ts\x8s·a\x8an\x8nd\x8d·c\x8cl\x8le\x8ea\x8ar\x8r·i\x8it\x8ts\x8s·r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8t·q\x8qu\x8ue\x8eu\x8ue\x8e.\x8.·*\x8**\x8**\x8**\x8**\x8*··········································| | ||
520 | |*\x8**\x8**\x8*·.\x8..\x8./\x8/s\x8sr\x8rc\x8c/\x8/p\x8pe\x8ee\x8er\x8r_\x8_c\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8ti\x8io\x8on\x8n.\x8.c\x8cp\x8pp\x8p:\x8:3\x831\x811\x819\x89·*\x8**\x8**\x8*········································································································································| | ||
521 | |//·to·disk·or·are·in·the·disk·write·cache······································································································································| | ||
522 | |» » if·(picker.is_piece_finished(p.piece)·&&·!was_finished)······················································································································| | ||
523 | |» » {············································································································································································| | ||
524 | |#if·TORRENT_USE_INVARIANT_CHECKS···············································································································································| | ||
525 | |» » » check_postcondition·post_checker2_(t,·false);·······························································································································| | ||
526 | |#endif·········································································································································································| | ||
527 | |» » » t->verify_piece(p.piece);···················································································································································| | ||
528 | |» » }············································································································································································| | ||
529 | |···············································································································································································| | ||
530 | |» » check_graceful_pause();······················································································································································| | ||
531 | |···············································································································································································| | ||
532 | |» » if·(is_disconnecting())·return;··············································································································································| | ||
533 | |···············································································································································································| | ||
534 | |» » if·(request_a_block(*t,·*this))··············································································································································| | ||
535 | |» » » m_counters.inc_stats_counter(counters::incoming_piece_picks);···············································································································| | ||
536 | |» » send_block_requests();·······················································································································································| | ||
537 | |» }·············································································································································································| | ||
538 | |···············································································································································································| | ||
539 | |» void·peer_connection::check_graceful_pause()··································································································································| | ||
540 | |» {·············································································································································································| | ||
541 | |std::shared_ptr<torrent>·t·=·m_torrent.lock();·································································································································| | ||
542 | |if·(!t·||·!t->graceful_pause())·return;········································································································································| | ||
543 | |···············································································································································································| | ||
544 | |» » if·(m_outstanding_bytes·>·0)·return;·········································································································································| | ||
545 | |···············································································································································································| | ||
546 | |#ifndef·TORRENT_DISABLE_LOGGING················································································································································| | ||
547 | |» » peer_log(peer_log_alert::info,·"GRACEFUL_PAUSE",·"NO·MORE·DOWNLOAD");········································································································| | ||
548 | |#endif·········································································································································································| | ||
549 | |» » disconnect(errors::torrent_paused,·operation_t::bittorrent);·················································································································| | ||
550 | |» }·············································································································································································| | ||
551 | |···············································································································································································| | ||
552 | |» void·peer_connection::on_disk_write_complete(storage_error·const&·error·······································································································| | ||
553 | |» » ,·peer_request·const&·p,·std::shared_ptr<torrent>·t)·························································································································| | ||
554 | |» {·············································································································································································| | ||
555 | |» » TORRENT_ASSERT(is_single_thread());··········································································································································| | ||
556 | |#ifndef·TORRENT_DISABLE_LOGGING················································································································································| | ||
557 | |» » if·(should_log(peer_log_alert::info))········································································································································| | ||
558 | |» » {············································································································································································| | ||
559 | |» » » peer_log(peer_log_alert::info,·"FILE_ASYNC_WRITE_COMPLETE",·"piece:·%d·s:·%x·l:·%x·e:·%s"···················································································| | ||
560 | |» » » » ,·static_cast<int>(p.piece),·p.start,·p.length,·error.ec.message().c_str());·······························································································| | ||
561 | |» » }············································································································································································| | ||
562 | |#endif·········································································································································································| | ||
563 | |···············································································································································································| | ||
564 | |» » m_counters.inc_stats_counter(counters::queued_write_bytes,·-p.length);·······································································································| | ||
565 | |» » m_outstanding_writing_bytes·-=·p.length;·····································································································································| | ||
566 | |···············································································································································································| | ||
567 | |» » TORRENT_ASSERT(m_outstanding_writing_bytes·>=·0);····························································································································| | ||
568 | |···············································································································································································| | ||
569 | |» » //·every·peer·is·entitled·to·allocate·a·disk·buffer·if·it·has·no·writes·outstanding··························································································| | ||
570 | |» » //·see·the·comment·in·incoming_piece·········································································································································| | ||
571 | |_\x8» _\x8» _\x8i_\x8f_\x8·_\x8(_\x8m_\x8__\x8o_\x8u_\x8t_\x8s_\x8t_\x8a_\x8n_\x8d_\x8i_\x8n_\x8g_\x8__\x8w_\x8r_\x8i_\x8t_\x8i_\x8n_\x8g_\x8__\x8b_\x8y_\x8t_\x8e_\x8s_\x8·_\x8=_\x8=_\x8·_\x80_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
572 | |relevance 3|_\x8._\x8._\x8/_\x8s_\x8r_\x8c_\x8/_\x8p_\x8e_\x8e_\x8r_\x8__\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8i_\x8o_\x8n_\x8._\x8c_\x8p_\x8p_\x8:···|once·peers·are·properly·put·in·graceful·pause·mode,·they·can·cancel·all·outstanding·requests·and·this·test·can·be·removed.··········| | ||
573 | |_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x84_\x80_\x82_\x87_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8|_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·_\x8·| | ||
574 | |*\x8**\x8**\x8**\x8**\x8*·o\x8on\x8nc\x8ce\x8e·p\x8pe\x8ee\x8er\x8rs\x8s·a\x8ar\x8re\x8e·p\x8pr\x8ro\x8op\x8pe\x8er\x8rl\x8ly\x8y·p\x8pu\x8ut\x8t·i\x8in\x8n·g\x8gr\x8ra\x8ac\x8ce\x8ef\x8fu\x8ul\x8l·p\x8pa\x8au\x8us\x8se\x8e·m\x8mo\x8od\x8de\x8e,\x8,·t\x8th\x8he\x8ey\x8y·c\x8ca\x8an\x8n·c\x8ca\x8an\x8nc\x8ce\x8el\x8l·a\x8al\x8ll\x8l·o\x8ou\x8ut\x8ts\x8st\x8ta\x8an\x8nd\x8di\x8in\x8ng\x8g·r\x8re\x8eq\x8qu\x8ue\x8es\x8st\x8ts\x8s·a\x8an\x8nd\x8d·t\x8th\x8hi\x8is\x8s·t\x8te\x8es\x8st\x8t·c\x8ca\x8an\x8n·b\x8be\x8e·r\x8re\x8em\x8mo\x8ov\x8ve\x8ed\x8d.\x8.·*\x8**\x8**\x8**\x8**\x8*·········································| | ||
575 | |*\x8**\x8**\x8*·.\x8..\x8./\x8/s\x8sr\x8rc\x8c/\x8/p\x8pe\x8ee\x8er\x8r_\x8_c\x8co\x8on\x8nn\x8ne\x8ec\x8ct\x8ti\x8io\x8on\x8n.\x8.c\x8cp\x8pp\x8p:\x8:4\x840\x802\x827\x87·*\x8**\x8**\x8*········································································································································| | ||
576 | |» » » if·(!p->m_deferred_send_block_requests)·····································································································································| | ||
577 | |» » » » return;····································································································································································| | ||
578 | |···············································································································································································| | ||
579 | |» » » p->m_deferred_send_block_requests·=·false;··································································································································| | ||
580 | |» » » p->send_block_requests_impl();··············································································································································| | ||
Max diff block lines reached; 2343661/2396009 bytes (97.82%) of diff not shown. |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-02-28·20:35:15.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-02-28·20:35:15.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····10 | 2 | -rw-r--r--···0········0········0·····1020·2024-02-28·20:35:15.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···6359 | 3 | -rw-r--r--···0········0········0···635932·2024-02-28·20:35:15.000000·data.tar.xz |
Offset 1, 15 lines modified | Offset 1, 15 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/lib/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/lib/ |
4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/lib/python3/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/lib/python3/ |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/ |
6 | -rw-r--r--···0·root·········(0)·root·········(0)··4115076·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.cpython-311-arm-linux-gnueabihf.so | 6 | -rw-r--r--···0·root·········(0)·root·········(0)··4115076·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.cpython-311-arm-linux-gnueabihf.so |
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.egg-info/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.egg-info/ |
8 | -rw-r--r--···0·root·········(0)·root·········(0)······27 | 8 | -rw-r--r--···0·root·········(0)·root·········(0)······274·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.egg-info/PKG-INFO |
9 | -rw-r--r--···0·root·········(0)·root·········(0)········1·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.egg-info/dependency_links.txt | 9 | -rw-r--r--···0·root·········(0)·root·········(0)········1·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.egg-info/dependency_links.txt |
10 | -rw-r--r--···0·root·········(0)·root·········(0)·······17·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.egg-info/top_level.txt | 10 | -rw-r--r--···0·root·········(0)·root·········(0)·······17·2024-02-28·20:35:15.000000·./usr/lib/python3/dist-packages/libtorrent.egg-info/top_level.txt |
11 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/share/ | 11 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/share/ |
12 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/share/doc/ | 12 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/share/doc/ |
13 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/share/doc/python3-libtorrent/ | 13 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-02-28·20:35:15.000000·./usr/share/doc/python3-libtorrent/ |
14 | -rw-r--r--···0·root·········(0)·root·········(0)·····2217·2024-02-28·20:35:15.000000·./usr/share/doc/python3-libtorrent/changelog.Debian.gz | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····2217·2024-02-28·20:35:15.000000·./usr/share/doc/python3-libtorrent/changelog.Debian.gz |
15 | -rw-r--r--···0·root·········(0)·root·········(0)····33112·2024-02-19·12:14:14.000000·./usr/share/doc/python3-libtorrent/changelog.gz | 15 | -rw-r--r--···0·root·········(0)·root·········(0)····33112·2024-02-19·12:14:14.000000·./usr/share/doc/python3-libtorrent/changelog.gz |
Offset 2, 10 lines modified | Offset 2, 10 lines modified | ||
2 | Name:·libtorrent | 2 | Name:·libtorrent |
3 | Version:·2.0.10 | 3 | Version:·2.0.10 |
4 | Summary:·Python·bindings·for·libtorrent-rasterbar | 4 | Summary:·Python·bindings·for·libtorrent-rasterbar |
5 | Home-page:·http://libtorrent.org | 5 | Home-page:·http://libtorrent.org |
6 | Author:·Arvid·Norberg | 6 | Author:·Arvid·Norberg |
7 | Author-email:·arvid@libtorrent.org | 7 | Author-email:·arvid@libtorrent.org |
8 | License:·BSD | 8 | License:·BSD |
9 | Platform:·Linux-ar | 9 | Platform:·Linux-aarch64 |
10 | Python·bindings·for·libtorrent-rasterbar | 10 | Python·bindings·for·libtorrent-rasterbar |