2005-08-17 19:19:20 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
2006-11-28 19:18:37 +01:00
|
|
|
<meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" />
|
2005-08-17 19:19:20 +02:00
|
|
|
<title>client_test example program</title>
|
2008-10-17 05:23:30 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="../../css/base.css" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../css/rst.css" />
|
2006-06-21 19:28:45 +02:00
|
|
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
2008-10-17 05:23:30 +02:00
|
|
|
<style type="text/css">
|
|
|
|
/* Hides from IE-mac \*/
|
|
|
|
* html pre { height: 1%; }
|
|
|
|
/* End hide from IE-mac */
|
|
|
|
</style>
|
2005-08-17 19:19:20 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="document" id="client-test-example-program">
|
2008-10-17 05:23:30 +02:00
|
|
|
<div id="container">
|
|
|
|
<div id="headerNav">
|
|
|
|
<ul>
|
|
|
|
<li class="first"><a href="/">Home</a></li>
|
|
|
|
<li><a href="../../products.html">Products</a></li>
|
|
|
|
<li><a href="../../contact.html">Contact</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="header">
|
|
|
|
<h1><span>Rasterbar Software</span></h1>
|
|
|
|
<h2><span>Software developement and consulting</span></h2>
|
|
|
|
<span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div id="main">
|
2005-08-17 19:19:20 +02:00
|
|
|
<h1 class="title">client_test example program</h1>
|
2006-11-28 19:18:37 +01:00
|
|
|
|
2005-08-17 19:19:20 +02:00
|
|
|
<p>Client test is a, more or less, complete bittorrent client. It lacks most
|
|
|
|
settings and you can't start or stop torrents once you've started it. All
|
|
|
|
the settings are hardcoded. The commandline arguments are:</p>
|
|
|
|
<pre class="literal-block">
|
|
|
|
client_test <filename1.torrent> <filename2.torrent> ...
|
|
|
|
</pre>
|
|
|
|
<p>You can start any number of torrent downloads/seeds via the commandline.
|
|
|
|
If one argument starts with <tt class="docutils literal"><span class="pre">http://</span></tt> it is interpreted as a tracker
|
|
|
|
announce url, and it expects an info-hash as the next argument. The info-hash
|
2007-02-21 18:16:29 +01:00
|
|
|
has to be hex-encoded. For example: <tt class="docutils literal"><span class="pre">2410d4554d5ed856d69f426c38791673c59f4418</span></tt>.
|
2005-08-17 19:19:20 +02:00
|
|
|
If you pass an announce url and info-hash, a torrent-less download is started.
|
|
|
|
It relies on that at least one peer on the tracker is running a libtorrent based
|
|
|
|
client and has the metadata (.torrent file). The metadata extension in
|
|
|
|
libtorrent will then download it from that peer (or from those peers if more
|
|
|
|
than one).</p>
|
|
|
|
<p>While running, the <tt class="docutils literal"><span class="pre">client_test</span></tt> sample will look something like this:</p>
|
2006-11-28 19:18:37 +01:00
|
|
|
<img alt="client_test.png" src="client_test.png" />
|
2005-08-17 19:19:20 +02:00
|
|
|
<p>The commands available in the client are:</p>
|
|
|
|
<ul class="simple">
|
|
|
|
<li><tt class="docutils literal"><span class="pre">q</span></tt> quits the client (there will be a delay while the client waits
|
|
|
|
for tracker responses)</li>
|
|
|
|
<li><tt class="docutils literal"><span class="pre">l</span></tt> toggle log. Will display the log at the bottom, informing about
|
|
|
|
tracker and peer events.</li>
|
|
|
|
<li><tt class="docutils literal"><span class="pre">i</span></tt> toggles torrent info. Will show the peer list for each torrent.</li>
|
|
|
|
<li><tt class="docutils literal"><span class="pre">d</span></tt> toggle download info. Will show the block list for each torrent,
|
|
|
|
showing downloaded and requested blocks.</li>
|
|
|
|
<li><tt class="docutils literal"><span class="pre">p</span></tt> pause all torrents.</li>
|
|
|
|
<li><tt class="docutils literal"><span class="pre">u</span></tt> unpause all torrents.</li>
|
|
|
|
<li><tt class="docutils literal"><span class="pre">r</span></tt> force tracker reannounce for all torrents.</li>
|
2006-06-11 15:50:49 +02:00
|
|
|
<li><tt class="docutils literal"><span class="pre">f</span></tt> toggle show file progress. Displays a list of all files and the
|
|
|
|
download progress for each file.</li>
|
2005-08-17 19:19:20 +02:00
|
|
|
</ul>
|
|
|
|
<p>The list at the bottom (shown if you press <tt class="docutils literal"><span class="pre">d</span></tt>) shows which blocks has
|
|
|
|
been requested from which peer. The green background means that it has been
|
|
|
|
downloaded. It shows that fast peers will prefer to request whole pieces
|
|
|
|
instead of dowloading parts of pieces. It may make it easier to determine
|
|
|
|
which peer that sent the corrupt data if a piece fails the hash test.</p>
|
2006-11-28 19:18:37 +01:00
|
|
|
<img alt="unicode_support.png" src="unicode_support.png" />
|
2005-08-17 19:19:20 +02:00
|
|
|
<p>There's unicode support on linux, MacOS X and Windows.</p>
|
2008-10-17 05:23:30 +02:00
|
|
|
</div>
|
|
|
|
<div id="footer">
|
|
|
|
<span>Copyright © 2005 Rasterbar Software.</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
_uacct = "UA-1599045-1";
|
|
|
|
urchinTracker();
|
|
|
|
</script>
|
2005-08-17 19:19:20 +02:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|