regenerate html
This commit is contained in:
parent
99b4d4a183
commit
89554179f6
|
@ -135,7 +135,7 @@ uint32_t seed = rand & 0x7;
|
||||||
int mod_shift = 6 * 4 / num_octets; // 6 or 3, depending on IPv4 and IPv6
|
int mod_shift = 6 * 4 / num_octets; // 6 or 3, depending on IPv4 and IPv6
|
||||||
while (num_octets)
|
while (num_octets)
|
||||||
{
|
{
|
||||||
seed = (uint64_t(seed) * ip[num_octets]) & (modulus-1);
|
seed = (uint64_t(seed) * ip[num_octets-1]) & (modulus-1);
|
||||||
modulus <<= mod_shift;
|
modulus <<= mod_shift;
|
||||||
--num_octets;
|
--num_octets;
|
||||||
}
|
}
|
||||||
|
@ -159,7 +159,7 @@ uint32_t seed = node_id[19] & 0x7;
|
||||||
int mod_shift = 6 * 4 / num_octets; // 6 or 3, depending on IPv4 and IPv6
|
int mod_shift = 6 * 4 / num_octets; // 6 or 3, depending on IPv4 and IPv6
|
||||||
while (num_octets)
|
while (num_octets)
|
||||||
{
|
{
|
||||||
seed = (uint64_t(seed) * ip[num_octets]) & (modulus-1);
|
seed = (uint64_t(seed) * ip[num_octets-1]) & (modulus-1);
|
||||||
modulus <<= mod_shift;
|
modulus <<= mod_shift;
|
||||||
--num_octets;
|
--num_octets;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1392,6 +1392,7 @@ struct feed_settings
|
||||||
|
|
||||||
std::string url;
|
std::string url;
|
||||||
bool auto_download;
|
bool auto_download;
|
||||||
|
bool auto_map_handles;
|
||||||
int default_ttl;
|
int default_ttl;
|
||||||
add_torrent_params add_args;
|
add_torrent_params add_args;
|
||||||
};
|
};
|
||||||
|
@ -1401,10 +1402,17 @@ the feed will be downloaded. Set this to false in order to manually
|
||||||
add torrents to the session. You may react to the <a class="reference internal" href="#rss-alert">rss_alert</a> when
|
add torrents to the session. You may react to the <a class="reference internal" href="#rss-alert">rss_alert</a> when
|
||||||
a feed has been updated to poll it for the new items in the feed
|
a feed has been updated to poll it for the new items in the feed
|
||||||
when adding torrents manually. When torrents are added automatically,
|
when adding torrents manually. When torrents are added automatically,
|
||||||
you have to call <tt class="docutils literal"><span class="pre">session::get_torrents()</span></tt> to get the handles to
|
an <a class="reference internal" href="#add-torrent-alert">add_torrent_alert</a> is posted which includes the torrent handle
|
||||||
the new torrents.</p>
|
as well as the error code if it failed to be added. You may also call
|
||||||
|
<tt class="docutils literal"><span class="pre">session::get_torrents()</span></tt> to get the handles to the new torrents.</p>
|
||||||
<p>Before adding the feed, you must set the <tt class="docutils literal"><span class="pre">url</span></tt> field to the
|
<p>Before adding the feed, you must set the <tt class="docutils literal"><span class="pre">url</span></tt> field to the
|
||||||
feed's url. It may point to an RSS or an atom feed.</p>
|
feed's url. It may point to an RSS or an atom feed.</p>
|
||||||
|
<p><tt class="docutils literal"><span class="pre">auto_map_handles</span></tt> defaults to true and determines whether or
|
||||||
|
not to set the <tt class="docutils literal"><span class="pre">handle</span></tt> field in the <tt class="docutils literal"><span class="pre">feed_item</span></tt>, returned
|
||||||
|
as the feed status. If auto-download is enabled, this setting
|
||||||
|
is ignored. If auto-download is not set, setting this to false
|
||||||
|
will save one pass through all the feed items trying to find
|
||||||
|
corresponding torrents in the session.</p>
|
||||||
<p>The <tt class="docutils literal"><span class="pre">default_ttl</span></tt> is the default interval for refreshing a feed.
|
<p>The <tt class="docutils literal"><span class="pre">default_ttl</span></tt> is the default interval for refreshing a feed.
|
||||||
This may be overridden by the feed itself (by specifying the <tt class="docutils literal"><span class="pre"><ttl></span></tt>
|
This may be overridden by the feed itself (by specifying the <tt class="docutils literal"><span class="pre"><ttl></span></tt>
|
||||||
tag) and defaults to 30 minutes. The field specifies the number of
|
tag) and defaults to 30 minutes. The field specifies the number of
|
||||||
|
@ -2466,7 +2474,6 @@ struct torrent_handle
|
||||||
void rename_file(int index, boost::filesystem::wpath) const;
|
void rename_file(int index, boost::filesystem::wpath) const;
|
||||||
storage_interface* get_storage_impl() const;
|
storage_interface* get_storage_impl() const;
|
||||||
|
|
||||||
bool super_seeding() const;
|
|
||||||
void super_seeding(bool on) const;
|
void super_seeding(bool on) const;
|
||||||
|
|
||||||
enum flags_t { overwrite_existing = 1 };
|
enum flags_t { overwrite_existing = 1 };
|
||||||
|
@ -2676,13 +2683,11 @@ storage contructor function that was passed to <tt class="docutils literal"><spa
|
||||||
<h2>super_seeding()</h2>
|
<h2>super_seeding()</h2>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
bool super_seeding() const;
|
|
||||||
void super_seeding(bool on) const;
|
void super_seeding(bool on) const;
|
||||||
</pre>
|
</pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p>Enables or disabled super seeding/initial seeding for this torrent. The torrent
|
<p>Enables or disabled super seeding/initial seeding for this torrent. The torrent
|
||||||
needs to be a seed for this to take effect. The overload that returns a bool
|
needs to be a seed for this to take effect.</p>
|
||||||
tells you of super seeding is enabled or not.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="add-piece">
|
<div class="section" id="add-piece">
|
||||||
<h2>add_piece()</h2>
|
<h2>add_piece()</h2>
|
||||||
|
@ -3532,6 +3537,7 @@ struct torrent_status
|
||||||
bool seed_mode;
|
bool seed_mode;
|
||||||
bool upload_mode;
|
bool upload_mode;
|
||||||
bool share_mode;
|
bool share_mode;
|
||||||
|
bool super_seeding;
|
||||||
|
|
||||||
int priority;
|
int priority;
|
||||||
|
|
||||||
|
@ -3765,6 +3771,7 @@ take it out of the upload mode by calling <a class="reference internal" href="#s
|
||||||
<a class="reference internal" href="#torrent-handle">torrent_handle</a>.</p>
|
<a class="reference internal" href="#torrent-handle">torrent_handle</a>.</p>
|
||||||
<p><tt class="docutils literal"><span class="pre">share_mode</span></tt> is true if the torrent is currently in share-mode, i.e.
|
<p><tt class="docutils literal"><span class="pre">share_mode</span></tt> is true if the torrent is currently in share-mode, i.e.
|
||||||
not downloading the torrent, but just helping the swarm out.</p>
|
not downloading the torrent, but just helping the swarm out.</p>
|
||||||
|
<p><tt class="docutils literal"><span class="pre">super_seeding</span></tt> is true if the torrent is in super seeding mode.</p>
|
||||||
<p><tt class="docutils literal"><span class="pre">added_time</span></tt> is the posix-time when this torrent was added. i.e. what
|
<p><tt class="docutils literal"><span class="pre">added_time</span></tt> is the posix-time when this torrent was added. i.e. what
|
||||||
<tt class="docutils literal"><span class="pre">time(NULL)</span></tt> returned at the time.</p>
|
<tt class="docutils literal"><span class="pre">time(NULL)</span></tt> returned at the time.</p>
|
||||||
<p><tt class="docutils literal"><span class="pre">completed_time</span></tt> is the posix-time when this torrent was finished. If
|
<p><tt class="docutils literal"><span class="pre">completed_time</span></tt> is the posix-time when this torrent was finished. If
|
||||||
|
@ -4819,6 +4826,14 @@ used to bind outgoing sockets to. This may be useful for users whose router
|
||||||
allows them to assign QoS classes to traffic based on its local port. It is
|
allows them to assign QoS classes to traffic based on its local port. It is
|
||||||
a range instead of a single port because of the problems with failing to reconnect
|
a range instead of a single port because of the problems with failing to reconnect
|
||||||
to peers if a previous socket to that peer and port is in <tt class="docutils literal"><span class="pre">TIME_WAIT</span></tt> state.</p>
|
to peers if a previous socket to that peer and port is in <tt class="docutils literal"><span class="pre">TIME_WAIT</span></tt> state.</p>
|
||||||
|
<div class="warning">
|
||||||
|
<p class="first admonition-title">Warning</p>
|
||||||
|
<p class="last">setting outgoing ports will limit the ability to keep multiple
|
||||||
|
connections to the same client, even for different torrents. It is not
|
||||||
|
recommended to change this setting. Its main purpose is to use as an
|
||||||
|
escape hatch for cheap routers with QoS capability but can only classify
|
||||||
|
flows based on port numbers.</p>
|
||||||
|
</div>
|
||||||
<p><tt class="docutils literal"><span class="pre">peer_tos</span></tt> determines the TOS byte set in the IP header of every packet
|
<p><tt class="docutils literal"><span class="pre">peer_tos</span></tt> determines the TOS byte set in the IP header of every packet
|
||||||
sent to peers (including web seeds). The default value for this is <tt class="docutils literal"><span class="pre">0x0</span></tt>
|
sent to peers (including web seeds). The default value for this is <tt class="docutils literal"><span class="pre">0x0</span></tt>
|
||||||
(no marking). One potentially useful TOS mark is <tt class="docutils literal"><span class="pre">0x20</span></tt>, this represents
|
(no marking). One potentially useful TOS mark is <tt class="docutils literal"><span class="pre">0x20</span></tt>, this represents
|
||||||
|
@ -6466,7 +6481,7 @@ struct peer_disconnected_alert: peer_alert
|
||||||
<div class="section" id="invalid-request-alert">
|
<div class="section" id="invalid-request-alert">
|
||||||
<h2>invalid_request_alert</h2>
|
<h2>invalid_request_alert</h2>
|
||||||
<p>This is a debug alert that is generated by an incoming invalid piece request.
|
<p>This is a debug alert that is generated by an incoming invalid piece request.
|
||||||
<tt class="docutils literal"><span class="pre">Ïp</span></tt> is the address of the peer and the <tt class="docutils literal"><span class="pre">request</span></tt> is the actual incoming
|
<tt class="docutils literal"><span class="pre">ìp</span></tt> is the address of the peer and the <tt class="docutils literal"><span class="pre">request</span></tt> is the actual incoming
|
||||||
request from the peer.</p>
|
request from the peer.</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
struct invalid_request_alert: peer_alert
|
struct invalid_request_alert: peer_alert
|
||||||
|
@ -6721,6 +6736,24 @@ torrent-less download, with the metadata extension provided by libtorrent.</p>
|
||||||
can start downloading. It is not generated on torrents that are started with metadata, but
|
can start downloading. It is not generated on torrents that are started with metadata, but
|
||||||
only those that needs to download it from peers (when utilizing the libtorrent extension).</p>
|
only those that needs to download it from peers (when utilizing the libtorrent extension).</p>
|
||||||
<p>There are no additional data members in this alert.</p>
|
<p>There are no additional data members in this alert.</p>
|
||||||
|
<p>Typically, when receiving this alert, you would want to save the torrent file in order
|
||||||
|
to load it back up again when the session is restarted. Here's an example snippet of
|
||||||
|
code to do that:</p>
|
||||||
|
<pre class="literal-block">
|
||||||
|
torrent_handle h = alert->handle();
|
||||||
|
if (h.is_valid()) {
|
||||||
|
torrent_info const& ti = h.get_torrent_info();
|
||||||
|
create_torrent ct(ti);
|
||||||
|
entry te = ct.generate();
|
||||||
|
std::vector<char> buffer;
|
||||||
|
bencode(std::back_inserter(buffer), te);
|
||||||
|
FILE* f = fopen((to_hex(ti.info_hash().to_string()) + ".torrent").c_str(), "w+");
|
||||||
|
if (f) {
|
||||||
|
fwrite(&buffer[0], 1, buffer.size(), f);
|
||||||
|
fclose(f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="fastresume-rejected-alert">
|
<div class="section" id="fastresume-rejected-alert">
|
||||||
<h2>fastresume_rejected_alert</h2>
|
<h2>fastresume_rejected_alert</h2>
|
||||||
|
@ -8029,13 +8062,13 @@ std::string error_code_to_string(boost::system::error_code const& ec)
|
||||||
static const char const* swedish[] =
|
static const char const* swedish[] =
|
||||||
{
|
{
|
||||||
"inget fel",
|
"inget fel",
|
||||||
"en fil i torrenten kolliderar med en fil frÂn en annan torrent",
|
"en fil i torrenten kolliderar med en fil från en annan torrent",
|
||||||
"hash check misslyckades",
|
"hash check misslyckades",
|
||||||
"torrent filen ‰r inte en dictionary",
|
"torrent filen är inte en dictionary",
|
||||||
"'info'-nyckeln saknas eller ‰r korrupt i torrentfilen",
|
"'info'-nyckeln saknas eller är korrupt i torrentfilen",
|
||||||
"'info'-f‰ltet ‰r inte en dictionary",
|
"'info'-fältet är inte en dictionary",
|
||||||
"'piece length' f‰ltet saknas eller ‰r korrupt i torrentfilen",
|
"'piece length' fältet saknas eller är korrupt i torrentfilen",
|
||||||
"torrentfilen saknar namnf‰ltet",
|
"torrentfilen saknar namnfältet",
|
||||||
"ogiltigt namn i torrentfilen (kan vara en attack)",
|
"ogiltigt namn i torrentfilen (kan vara en attack)",
|
||||||
// ... more strings here
|
// ... more strings here
|
||||||
};
|
};
|
||||||
|
|
|
@ -110,13 +110,13 @@ connects to the daemon. One GUI
|
||||||
(ncurses) and one web interface
|
(ncurses) and one web interface
|
||||||
(accessable through a web browser).
|
(accessable through a web browser).
|
||||||
Written by Michael Wojciechowski
|
Written by Michael Wojciechowski
|
||||||
and Johan Strˆm.</p>
|
and Johan Ström.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="entry container">
|
<div class="entry container">
|
||||||
<a class="reference external image-reference" href="http://www.tvblob.com"><img align="right" alt="tvblob.jpg" class="align-right" src="tvblob.jpg" /></a>
|
<a class="reference external image-reference" href="http://www.tvblob.com"><img align="right" alt="tvblob.jpg" class="align-right" src="tvblob.jpg" /></a>
|
||||||
<p><strong>tvblob</strong></p>
|
<p><strong>tvblob</strong></p>
|
||||||
<p>The <a class="reference external" href="http://www.tvblob.com">BLOBbox</a> represents the ability to harness all of the content available
|
<p>The <a class="reference external" href="http://www.tvblob.com">BLOBbox</a> represents the ability to harness all of the content available
|
||||||
on the web, without any filtering or pre-selection by a third party ø just
|
on the web, without any filtering or pre-selection by a third party ¿ just
|
||||||
like surfing the web.</p>
|
like surfing the web.</p>
|
||||||
<p>This means that anyone will have the ability to reach viewers via the Internet
|
<p>This means that anyone will have the ability to reach viewers via the Internet
|
||||||
directly on TV, without them having to connect a PC.</p>
|
directly on TV, without them having to connect a PC.</p>
|
||||||
|
|
Loading…
Reference in New Issue